Hi all,
I have a requirement where the name of PS file A will be present in another PS file B. My requirement is to take the backup of PS FILE A into a GDG base by reading the data in PS FIle B. I am able to meet the above requirement.
THe issue /query is the attributes of PS file A changes on a daily basis. So, while creating the PROC, how do i get the DCB attributes of the PS FileA? if we can get the PS file A attributes dynamically then we can create a generalised PROC for the same
Thank you all in advance
//*
// JCLLIB ORDER=WJ.REF.LIB
//*
//P1 PROC DS=,REFM=
// INCLUDE MEMBER=&REFM
//G1 EXEC PGM=IEBGENER
//SYSPRINT DD SYSOUT=*
//SYSIN DD DUMMY
//SYSUT1 DD DISP=SHR,DSN=&DS
//SYSUT2 DD DISP=(,PASS),SPACE=(CYL,(1,40)),LIKE=&REFNAME
// PEND
//*
//DSA EXEC P1,DS=WJ.TEST.DS1,REFM=NAMEA
//DSB EXEC P1,DS=WJ.TEST.DS2,REFM=NAMEB