MVSFORUMS.com A Community of and for MVS Professionals
View previous topic :: View next topic
Author
Message
kolusu Site Admin Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
Posted: Thu Jul 22, 2004 4:03 pm Post subject:
Valishar,
1.You are missing a comma after the startrec.I changed to have the comma in the CTL1CNTL control card
2.You cannot use OUTREC FIELDS when you are using OUTFIL. If you are using outfil it should be outrec
change your control cards to the following.
Code:
OUTFIL FNAMES=OUT,STARTREC=00000002,
OUTREC=(1,114,115,5,CHANGE=(13,C'PAGE:',C'PAGE: 1'),
NOMATCH=(115,13),128,4)
Hope this helps...
Cheers
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu
Back to top
vallishar Beginner Joined: 17 Dec 2002 Posts: 53 Topics: 14 Location: BengaLuru
Posted: Thu Jul 22, 2004 4:26 pm Post subject:
Sorry.. But I didn't find the difference.. this is my jcl:
Quote:
//TOOLIN DD *
COPY FROM(IN) USING(CTL1)
COPY FROM(IN) USING(CTL2)
//CTL1CNTL DD *
OUTREC FIELDS=(1,133,SEQNUM,8,ZD)
OUTFIL FNAMES=CTL2CNTL,
INCLUDE=(2,18,CH,EQ,C'SUMMARY FOR REPORT'),
OUTREC=(C' OUTFIL FNAMES=OUT,STARTREC=',+8,SUB,134,8,ZD,
EDIT=(TTTTTTTT),80:X)
//CTL2CNTL DD DSN=&C1,DISP=(,PASS),SPACE=(CYL,(1,1),RLSE)
// DD *
OUTREC=(1,114,115,5,CHANGE=(13,C'PAGE:',C'PAGE: 1'),
NOMATCH=(115,13),128,4)
/*
Where I am missing the comma?
_________________ If you're not failing every now and again, it's a sign you're not doing anything very innovative.
Back to top
kolusu Site Admin Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
Posted: Thu Jul 22, 2004 5:19 pm Post subject:
vallishar,
Since you are creating dynamic control cards, you need to change your CTL1CNTL . You need to code ,C',' after the EDIT=(TTTTTTTT).
I.e
Quote:
//CTL1CNTL DD *
OUTREC FIELDS=(1,133,SEQNUM,8,ZD)
OUTFIL FNAMES=CTL2CNTL,
INCLUDE=(2,18,CH,EQ,C'SUMMARY FOR REPORT'),
OUTREC=(C' OUTFIL FNAMES=OUT,STARTREC=',+8,SUB,134,8,ZD,
EDIT=(TTTTTTTT),C',' ,80:X)
Notice the bold characters after the EDIT mask.
Hope this helps...
Cheers
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu
Back to top
vallishar Beginner Joined: 17 Dec 2002 Posts: 53 Topics: 14 Location: BengaLuru
Posted: Thu Jul 22, 2004 5:24 pm Post subject:
I tried to put C',' after ZD. However, thanks a ton! _________________ If you're not failing every now and again, it's a sign you're not doing anything very innovative.
Back to top
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