-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPCRMAKE.EXEC
55 lines (46 loc) · 1.31 KB
/
PCRMAKE.EXEC
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
52
53
54
55
/*
Used to Compile and GENMOD the PCR ASSEMBLE file.
It will also Compile the PCRPLI PLI program as needed, which is
used to include a PLISTART text deck for TERMing the PLI Environment.
*/
address '';
'GLOBAL MACLIB PCR DMSGPI OSMACRO'
'GLOBAL TXTLIB SCEELKED'
/* Is the PCRPLI program compiled? */
'STATE PCRPLI TEXT *';
if rc^=0 then do;
options = 'NCT F(I) NIS LC(125)' ,
'M SYSTEM(MVS)' ,
'STMT NSEQ OPT(TIME) MAR(1,72)';
say 'PCRMAKE: Compiling PCRPLI...'
fntm = PCRPLI
address 'CMS' 'CMDCALL PLIOPT' fntm '(' options;
if rc^=0 then do;
say 'PCRMAKE: Could not compile PCRPLI, rc('rc')';
exit rc;
end;
end;
/* Now compile the PCR ASSEMBLE file */
fn = 'PCR';
'COPYFILE' fn 'ASSEMBLE A ( REPLACE RECFM F LRECL 80 OLDD'
say 'PCRMAKE: Compiling' fn 'ASSEMBLE...'
'HLASM' fn;
trc=rc;
address '' 'COPYFILE' fn 'ASSEMBLE A ( REPLACE RECFM V TRUNC OLDD';
if trc^=0 then do;
say 'PCRMAKE: Could not compile PCR ASSEMBLE, rc('trc')';
exit trc;
end;
/* Now GENMOD the PCR program */
'EXECIO 1 DISKW' fn 'TEXT * 0 (FINIS STRING ENTRY' fn;
'LOAD' fn '(CLEAR RLDSAVE NODUP';
if rc=0 then do;
'GENMOD' fn '(FROM' fn;
end;
trc = rc;
if trc^=0 then do;
say 'PCRMAKE: Could not LOAD/GENMOD PCR, rc('trc')';
exit trc;
end;
say 'PCRMAKE: PCR is ready for your use'
exit trc;