-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathPASSARAY.PL1
51 lines (28 loc) · 884 Bytes
/
PASSARAY.PL1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
passaray:
proc options(main);
/***************************************************************************/
/* This program is for testing the compilers ability to pass array members */
/* as arguments to subroutines. */
/***************************************************************************/
dcl argument(10) bin(15);
dcl I bin(15);
dcl J bin(15);
dcl one bin(15);
one = 1;
do I = 1 to 10;
argument(I) = I;
end;
do I = 1 to 10;
call inner (argument(I));
end;
inner:
proc (val);
dcl val bin(15);
put skip(one) list ('Ive just been called to loop.');
do J = 1 to val;
put skip (one) list ('Ive been called.');
end;
put skip (one) list ('Im finished for now.');
end;
end;