Joined: 05 Sep 2006
|Using macros Open (file name),mode
DCB for the filename has to be defined with in the program.
Here is the example below listed
//F13222I DD DSN=USER.USRTBL.TABLE(TBLNAME),DISP=SHR
F13222I DCB DDNAME=F13222I,DSORG=PS,MACRF=(GL),EODAD=E0FIP
Where EOFIP will be executed once the End Of File reaches
Let me know if you need anymore.