PLI
文章平均质量分 71
Mainframer
这个作者很懒,什么都没留下…
展开
-
PLI Logical Testing
Logical Testing1. Logical operators§ &§ |§ ¬ 2. IF cond THEN stmt;3. IF cond THEN stmt1; ELSEstmt2;3. IF cond THEN原创 2008-05-11 16:22:00 · 558 阅读 · 0 评论 -
PLI Loop
Loop1. DO WHILE(cond);Stmt1;Stmt2;END;2. DO UNTIL(cond);Stmt1;Stmt2;END;3. DO i=1 TO J BY K;Stmt1;Stmt2;END;原创 2008-05-11 16:23:00 · 516 阅读 · 0 评论 -
PLI File Declarations
File Declarations1. DECLARATIONDCL filename FILE [INPUT|OUTPUT] [STREAM|RECORD] ENV (options).2. ENVIRONMENT Attributel It can be omitted if equivalent information is g原创 2008-05-11 16:25:00 · 660 阅读 · 0 评论 -
PLI Storage Classes
Storage Classes1. Automatic StorageUnless declared to have another storage class most variables have the AUTOMATIC attribute.e.g.MAIN : PROC OPTIONS (MAIN);DCL 1 STRUCTURE,原创 2008-05-11 16:21:00 · 709 阅读 · 0 评论 -
PLI Stream I/O
Stream I/O1. LIST Directed I/O1.1 Advantages and Disadvantages Advantages of LIST directed I/O- It is easy to code and is a useful debugging tool Disadvantages of L原创 2008-05-11 16:26:00 · 923 阅读 · 0 评论 -
PLI Exception Handling (ON CONDTION)
Exception Handling (ON CONDTION) 1. A CONDITION is the occurrence within a PL/I program that causes a program interrupt. l In the absence of a program specifying an action, for most condi原创 2008-05-11 16:27:00 · 743 阅读 · 0 评论 -
PLI Data Type
PLI Data Type1. Numericl FIXED DEC(p,q)l FLOAT DEC(p,q)l FIXED BIN(p,q)l FLOAT BIN(p,q)2. Character & Stringl BIT(n)l CHAR(n)2原创 2008-05-11 16:20:00 · 798 阅读 · 0 评论 -
PLI Array
Array1. DECLARATIONDCL days(365) FIXED DEC(4);2. BOUNDSDefault LOWER BOUND is 1We can also specify the upper and the lower bounde.g. DCL TABLE(0:11) FIXED DEC(4,1);Bounds may原创 2008-05-11 16:24:00 · 980 阅读 · 0 评论