View previous topic :: View next topic
|
Author |
Message |
atik
New User
Joined: 29 Jul 2005 Posts: 20
|
|
|
|
Hi
I have a situation where I am using a job as a model for my new job. The job takes some 8 input files and creates 8 reports. In my new job I want only 3 reports to be generated using the same proc. So I assigned NULLFILE to the files which are not necessary. But how to assing null value to the reports? The symbolic parameter used are used in the sysout in proc like
In job
//P100CRD='NULLFILE',
In Proc
//P100RPT DD SYSOUT=&P100RPT
If I give like this it gives as
CAY6042E OPERAND "NULLFILE" IS TOO LONG FOR "CLASS" PARAMETER OF
"SYSOUT"
Please tell me how to assign Null value in this situation.
Atik |
|
Back to top |
|
|
MGIndaco
Active User
Joined: 10 Mar 2005 Posts: 432 Location: Milan, Italy
|
|
|
|
You can override the report in your jcl where you call the proc or use a variable in your proc with default.
Here you will find two samples:
1)Override DD:
Code: |
//TRYPROC PROC VARSYS='SYSOUT=*'
//STEP010I EXEC PGM=IEFBR14
//DD1 DD &VARSYS
// PEND
//CALLPROC EXEC TRYPROC
//STEP010I.DD1 DD SYSOUT=B |
2) Using a variable:
Code: |
//TRYPROC PROC VARSYS='SYSOUT=*'
//STEP010I EXEC PGM=IEFBR14
//DD1 DD &VARSYS
// PEND
//CALLPROC EXEC TRYPROC |
|
|
Back to top |
|
|
Kevin
Active User
Joined: 25 Aug 2005 Posts: 234
|
|
|
|
Wouldn't you want to specify:
//STEPxxxx EXEC procname
//*
//PROCSTEP.P100RPT DD DSN=NULLFILE,DISP=SHR
or
//PROCSTEP.P100RPT DD DUMMY |
|
Back to top |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
You might want to try:
//P100RPT DD &RPTYPE
Then exec the proc:
//S1 EXEC PROC1,RPTYPE=DUMMY
or
//S1 EXEC PROC1,RPTYPE='SYSOUT=A'
You can do something similar w/the I/P DS. |
|
Back to top |
|
|
|