+ All Categories
Home > Documents > Pli Training Class-1

Pli Training Class-1

Date post: 06-Oct-2015
Category:
Upload: sharathraj
View: 9 times
Download: 0 times
Share this document with a friend
Description:
Pli Training Class-1
11
 www.mainframes-online-training.weebly.com  Polsani Anil Kumar IBM-Mainframes PLI Training Class- 01
Transcript
  • Background and HistoryPLI is an acronym for: Programming Language/ 1 with a Roman I

    PL/I is a procedural, imperative computer programming language and designed for scientific, engineering, business and systems programming applications. PL/I was designed to solve business problemsPL/I was designed to be English-like, so that the reader, even a non-programmer, could get an idea of what was going on in the program simply by reading the code

  • Background and History

    PLI was developed by IBM in mid 1960s and was originally named as NPL ( New Programming Language ) and is actively used as of 2012.The first compiler was delivered in 1966. The Standard for PL/I was approved in 1976.PLI was the first large scale attempt to design a language that could be used in a variety of application areas.

  • Features of PLIPL/I's principal domains are:

    Data processing Numerical computationScientific computing Systems programming

    Its supports recursion, structured programming, linked data structure handling, fixed-point, floating-point, complex, character string handling, and bit string handling.

    The language syntax is English-like and suited for describing complex data formats, with a wide set of functions available to verify and manipulate them.

  • Structure of PLI Program

    LABELNAME: PROCEDURE OPTIONS(MAIN); STATEMENT1;STATEMENT2;END LABELNAME;End of the label name is specified by colon (:)End of statement is specified by semi colon (;)

  • Structure of PLI ProgramA PL/I program consists of a set of procedures, each of which is written as a sequence of statements. Block of code is called as a Procedure or simply PROC.First statement in program is the PROCEDURE statement Procedure statement is not executable, it is simply a way of telling the computer that this statement marks the beginning of the block of PLI statementProcedure statement must always be labeledDISPGM: PROCEDURE OPTIONS(MAIN);DISPGM is label, MAIN is main program

  • Internal & External ProceduresProcedure are of two types: External Procedure and Internal ProcedureNames of external procedures can have a maximum of 8 characters-,#,@ should not be used while naming external proceduresExternal procedure names are known to OS by PROCEDURE with OPTIONS(MAIN)Internal procedures are nested within the external procedureEND statement is used to mark end of procedures.

  • Character Set in PLIExtended alphabet of charactersA-Z , @, #,$.10 DECIMAL digits0-921 special characters Blank , = , + , - , ( , ) , * , & , % , ~ , = ,< ,> ,_ ,? ,/ ,or ,not, , ;, :.

  • PLI Layout/PLI Code Sheet (1 - 80)

    1 Reserved for Operating System.2-72 PLI STATEMENTS.73-80 Sequence number / commentsComments can be specified in between /* COMMENT LINE */

  • My First PLI ProgramHello world! Program/* This Is My First Program */DISPGM: PROCEDURE OPTIONS(MAIN);PUT LIST(HELLO WORLD!);PUT SKIP LIST(HELLO ALL);END DSIPGM;This Program gives HELLO WORLD! As Output.

    www.mainframes-online-training.weebly.com Polsani Anil Kumar

    Thank You


Recommended