Posted: Wed Feb 29, 2012 1:56 am Post subject: Can I pass parameters to DFSORT?
I want to use DFSORT in a jcl proc. This proc is called with some parameters and i should use those parameters in DFSORT sysin.
Is there a way to call DFSORT with parameters, something like
//step1 exec pgm=icetool, parm='123456abcdef'
Trying to be more exact, I have a proc like this: (this is from jes2 output queue)
//JOB1 JOB 'XXXXX',MSGCLASS=F,CLASS=A,
//PROCLIB JCLLIB ORDER=PRD1..JCLLIB
//PASO1 EXEC PROC1,PARM1='E',PARM2='7'
XX PROC PARM1=,PARM2=
XXPASO1 EXEC PGM=USERPGM,
IEFC653I SUBSTITUTION JCL - PGM=ZTBGB140,PARM='E7'
I need to include a dfsort after userpgm, using parm1 and parm2 inside the dfsort sysin.
Is there anyway? Can i refer parm1 and parm2? I know that in a proc, i can not use sysin dd *, I have to place the dfsort sentences in another file or library member, so I can not figure what is the correct way to do that.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum