Time for an 2014 update…
This commit is contained in:
parent
372c577f83
commit
09687c4926
2520 changed files with 34227 additions and 7318 deletions
|
|
@ -2,15 +2,15 @@
|
|||
PROGRAM-ID. no-args PROTOTYPE.
|
||||
END PROGRAM no-args.
|
||||
|
||||
*> A subprogram taking two 8-digit numbers as arguments (passed by
|
||||
*> value), and returning an 8-digit number.
|
||||
*> A subprogram taking two 8-digit numbers as arguments, and returning
|
||||
*> an 8-digit number.
|
||||
PROGRAM-ID. two-args PROTOTYPE.
|
||||
DATA DIVISION.
|
||||
LINKAGE SECTION.
|
||||
01 arg-1 PIC 9(8).
|
||||
01 arg-2 PIC 9(8).
|
||||
01 ret PIC 9(8).
|
||||
PROCEDURE DIVISION USING BY VALUE arg-1, arg-2 RETURNING ret.
|
||||
PROCEDURE DIVISION USING arg-1, arg-2 RETURNING ret.
|
||||
END PROGRAM two-args.
|
||||
|
||||
*> A subprogram taking two optional arguments which are 8-digit
|
||||
|
|
|
|||
7
Task/Function-prototype/PL-I/function-prototype.pli
Normal file
7
Task/Function-prototype/PL-I/function-prototype.pli
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
declare s1 entry;
|
||||
declare s2 entry (fixed);
|
||||
declare s3 entry (fixed, float);
|
||||
|
||||
declare f1 entry returns (fixed);
|
||||
declare f2 entry (float) returns (float);
|
||||
declare f3 entry (character(*), character(*)) returns (character (20));
|
||||
Loading…
Add table
Add a link
Reference in a new issue