Author: Pruthuvainya
Subject: Reply to: Difference bw NULLFILE & DUMMY
Posted: Mon Oct 17, 2016 9:02 am (GMT 5.5)
First of all, Dummy is a positional parameter whereas nullfile is a keyword parameter.
Consider the below example:-
//STEP1 EXEC PGM=XYZ
//DD1 DD DSN=ABC.DEF,DISP=SHR
// DD DUMMY
// DD DSN=GHI.JKL,DISP=SHR
// DD DSN=MNO.PQR,DISP=SHR
In the above example files GHI.JKL and MNO.PQR will be ignored and only ABC.DEF is considered if DUMMY is used in between. On the other hand if nullfile is used, all the three files are considered.
Hope this helps![icon_exclaim.gif]()
_________________
Pruthu
Subject: Reply to: Difference bw NULLFILE & DUMMY
Posted: Mon Oct 17, 2016 9:02 am (GMT 5.5)
First of all, Dummy is a positional parameter whereas nullfile is a keyword parameter.
Consider the below example:-
//STEP1 EXEC PGM=XYZ
//DD1 DD DSN=ABC.DEF,DISP=SHR
// DD DUMMY
// DD DSN=GHI.JKL,DISP=SHR
// DD DSN=MNO.PQR,DISP=SHR
In the above example files GHI.JKL and MNO.PQR will be ignored and only ABC.DEF is considered if DUMMY is used in between. On the other hand if nullfile is used, all the three files are considered.
Hope this helps

_________________
Pruthu