dick scherrer wrote:Hello and welcome to the forum
MAINFRAME GURU
Perhaps someday. . . Not yet. . .
Did you test this "solution" before posting it? DSN1 and LOCATION1 are not part of IEBGENER. . . Actually LOCATION1 is an invalid dataset name. . .
Please do not post untested solutions.
Thanks for your warm welcome my friend!!
Yes, you are right...
Correction:
Program needs to be written to write a dynamic Proc instead of parm...
Here is the code for the same
//STEP1 EXEC PGM=IEBGENER
//STATOUT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
//SYSIN DD DUMMY
//SYSOUT DD SYSOUT=*
//SYSUT1 DD DSN=ABCD.XYZ(0),
// DISP=SHR
//SYSUT2 DD DSN=ABCD.XYZ.AMMDDYY,DISP=(NEW,CATLG,DELETE),
// SPACE=<SAME AS OF ABCD.XYZ.G0001V00>,
// UNIT=SYSDA,
// DCB=*.SYSUT1
I do agree with you on DSN1....However, LOCATION1 is not the exact location...it can be any valid location like abx.xyz.xyz etc...
I should have written <location1> instead of that.
I will take care of tested solutions going forward
Hope it works for you Raja..
Regards..