Writing to the same generation file from one ICETOOL
Posted: Wed Jul 06, 2011 7:34 pm
Hello again,
I have a question regarding the use of ICETOOL if I want to write to a generation dataset the first time with DISP=SHR and the second time with DISP=MOD.
If I use a "normal" PO-File this works without any problems:
When I try this the job hangs several minutes until I manually stop it...
What do I have to do?
Thank you very much!
Regards
Oliver
I have a question regarding the use of ICETOOL if I want to write to a generation dataset the first time with DISP=SHR and the second time with DISP=MOD.
If I use a "normal" PO-File this works without any problems:
//IEFNULL-Step to create new OUT.TEST5210(+1)
//ICETOOL EXEC PGM=ICETOOL
//TOOLMSG DD SYSOUT=A
//DFSMSG DD SYSOUT=A
//IN1 DD DSN=FILE1.DATASET(+0),DISP=SHR
//IN2 DD DSN=FILE2.DATASET(+0),DISP=SHR
//OUT1 DD DSN=OUT.TEST5210(+1),DISP=SHR
//OUT2 DD DSN=OUT.TEST5210(+1),DISP=MOD
//TOOLIN DD *
COPY FROM(IN1) TO(OUT1) USING(CTL1)
COPY FROM(IN2) TO(OUT2) USING(CTL2)
//CTL1CNTL DD *
SORT FIELDS=COPY
//CTL2CNTL DD *
INCLUDE COND=(1728,7,CH,NE,C' ')
SORT FIELDS=COPY
//ICETOOL EXEC PGM=ICETOOL
//TOOLMSG DD SYSOUT=A
//DFSMSG DD SYSOUT=A
//IN1 DD DSN=FILE1.DATASET(+0),DISP=SHR
//IN2 DD DSN=FILE2.DATASET(+0),DISP=SHR
//OUT1 DD DSN=OUT.TEST5210(+1),DISP=SHR
//OUT2 DD DSN=OUT.TEST5210(+1),DISP=MOD
//TOOLIN DD *
COPY FROM(IN1) TO(OUT1) USING(CTL1)
COPY FROM(IN2) TO(OUT2) USING(CTL2)
//CTL1CNTL DD *
SORT FIELDS=COPY
//CTL2CNTL DD *
INCLUDE COND=(1728,7,CH,NE,C' ')
SORT FIELDS=COPY
When I try this the job hangs several minutes until I manually stop it...
What do I have to do?
Thank you very much!
Regards
Oliver