Pli PPT Extra
Pli PPT Extra
Pli PPT Extra
• (CHECK):
• AVERAGE: PROCEDURE OPTIONS(MAIN);
• GET LIST(A,B,C,D,E);
• SUM = A + B + C + D + E ;
• AVERAGE_GRADE = SUM / 5 ;
• PUT LIST(‘AVERAGE GRADE IS’, ACERAGE_GRADE);
• END AVERAGE;
• Example 2: To trace the output of a limited number of program
variables, then these variables may be listed in parentheses following
the keyword CHECK :--
• (CHECK(A,B,SUM)):
• AVERAGE: PROCEDURE OPTIONS(MAIN);
• :
• :
• END AVERAGE
ACRT (ATTRIBUTE AND
CROSS-REFERENCE TABLE)
• When the program is compiled, the PL/I
compiler prints a source listing of the
program and if requested through the
PROCESS statement, other information that
is most useful using a tool called ACRT.
Example of a ATTRIBUTE AND CROSS REFERENCE TABLE :--
•
• FIXED BINARY :
• Data Format Name : fixed point
• Type of data : coded arithmetic
– Default Precision : 15 bits(equivalent to 32,767 in decimal)
– Maximum Precision : 31 bits(equivalent to 2,147,483,647 in decimal)
• Examples:
• DEC ECONOMICAL_ORDER_QUANTITY FIXED BIN(15);
• DEC MAXIMUM FIXED BIN(31) INIT(2147483647);
• DEC DELTA FIXED BIN(31,6);
• :
FLOAT DECIMAL