0

In the effective JCL, with what value will the symbolic parameter &DEPT be replaced by? Procedure

//ABC9999 PROC DEPT=’A’
//ABC9090 EXEC PGM=ABC9090
//SYSOUT  DD SYSOUT=&DEPT
//ABCREAD DD DSNAME=AAX1.MASTER.FILE,DISP=SHR

Invoking JCL

//AAX1BN JOB (12345),'CANDIDATE TEST',NOTIFY=CANDIDATE,
//MSGCLASS=X,MSGLEVEL=(1,1)
//SET DEPT=’*’
//STEPX1 EXEC ABC9999
Bruce Martin
  • 10,358
  • 1
  • 27
  • 38

2 Answers2

0

As currently supplied, nothing. After you fix the syntax errors, &DEPT will be replaced with an asterisk.

cschneid
  • 10,237
  • 1
  • 28
  • 39
0

Currently DEPT will be A because it initialized to that in the proc

//ABC9999 PROC DEPT=’A’

You need to either code

//AAX1BN JOB (12345),'CANDIDATE TEST',NOTIFY=CANDIDATE,
//MSGCLASS=X,MSGLEVEL=(1,1)
//*
//STEPX1 EXEC ABC9999,DEPT=’*’

or remove the initialize (remove DEPT=’A’) from the proc:

//ABC9999 PROC 
//ABC9090 EXEC PGM=ABC9090
//SYSOUT  DD SYSOUT=&DEPT
//ABCREAD DD DSNAME=AAX1.MASTER.FILE,DISP=SHR
Bruce Martin
  • 10,358
  • 1
  • 27
  • 38
  • I believe the SET statement will accomplish the same as specifying the value on the EXEC statement (making DEPT=*). – cschneid Jul 13 '14 at 22:12
  • 1
    If you have mainframe handy try it, I do not have access to a mainframe any more; My Feeling is you do have to actually override proc parameters. The – Bruce Martin Jul 13 '14 at 22:39