Can anyone explain point of SYSUT2 DUMMY?
Posted: Fri May 13, 2016 3:54 pm
Hey guys.
So I have been coming across a lot of JCL online and something that grabbed my interest was the use of DUMMY DD's in IEBGENER.
This is the job I just ran to see what would happen:
//STEP1 EXEC PGM=IEBGENER
//SYSPRINT DD SYSOUT=*
//SYSUT1 DD DSN=DATASET.INPUT,DISP=SHR
//SYSUT2 DD DUMMY
//SYSIN DD DUMMY
I ran the job and it got an RC=00.
I checked the output but there was no indication as to what exactly happened.
Why would someone copy a dataset to a dummy DD?
Is there any reason at all for this syntax?
Any advice is appreciated.
Thank you!
So I have been coming across a lot of JCL online and something that grabbed my interest was the use of DUMMY DD's in IEBGENER.
This is the job I just ran to see what would happen:
//STEP1 EXEC PGM=IEBGENER
//SYSPRINT DD SYSOUT=*
//SYSUT1 DD DSN=DATASET.INPUT,DISP=SHR
//SYSUT2 DD DUMMY
//SYSIN DD DUMMY
I ran the job and it got an RC=00.
I checked the output but there was no indication as to what exactly happened.
Why would someone copy a dataset to a dummy DD?
Is there any reason at all for this syntax?
Any advice is appreciated.
Thank you!