Simplest: I would pass it in like this:
//STEP2 EXEC PGM=IRXJCL,PARM='MAINBATC DD(FILEI) '
Also, I think MAINBATC should have a programming interface. One of the requirements should be to use a specific DD name.
Thanks for the reply,
The main objective is this MAINBATC (which is a member of IDF.REXX.COCOV.DAUG15.TARGO)
have rexx code it will take a pds(IDF.REXX.DAUG15.NEW(TESTPGM1)) as input file and perform some operation and after that it will write a report like thing to a output file
I am using this JCL above(its not the full JCL i have used its a part) and IRXJCL utility for executing MAINBATC
i want this input file IDF.REXX.DAUG15.NEW(TESTPGM1)
to be stored in a variable in (MAINBATC)
so that i can use this variable for a display purpose