MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

copying a portion of a file
Goto page Previous  1, 2
 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Thu Jul 22, 2004 4:03 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
vallishar
Beginner


Joined: 17 Dec 2002
Posts: 53
Topics: 14
Location: BengaLuru

PostPosted: Thu Jul 22, 2004 4:26 pm    Post subject: Reply with quote

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
View user's profile Send private message Yahoo Messenger
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Thu Jul 22, 2004 5:19 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
vallishar
Beginner


Joined: 17 Dec 2002
Posts: 53
Topics: 14
Location: BengaLuru

PostPosted: Thu Jul 22, 2004 5:24 pm    Post subject: Reply with quote

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
View user's profile Send private message Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities All times are GMT - 5 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
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


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group