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 

Remove fields from output. New JCL person

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
wolves
Beginner


Joined: 11 Jun 2004
Posts: 17
Topics: 8

PostPosted: Fri Jun 18, 2004 4:34 pm    Post subject: Remove fields from output. New JCL person Reply with quote

I have figured out my JCL, but I do not want to output certain fields from the input DSN to the newly made DSN. How do I do this part.

thx in advance.
Code:

//SORTIN   DD  DSN=JUNK.DATA,DISP=SHR
//SORTOUT  DD  DSN=JUNK.DATA.SORTED,
//             DISP=(NEW,CATLG,DELETE),
//             UNIT=DISK,
//             SPACE=(CYL,(5,5),RLSE),
//             DCB=(RECFM=FB,LRECL=50,BLKSIZE=30000)
//SYSIN    DD  *
   SORT FIELDS=(17,20,CH,A,51,5,CH,A,57,12,CH,A)
   SUM FIELDS=(79,9,PD)

(I am sorting on fields 2, 4 and 5, summing on field 8.
I want to remove fields 1, 3, 6 & 7 from my output DSN. How?

11111111111111112222222222222222222233333333333444445555555555556666666666888888888)
Back to top
View user's profile Send private message
Frank Yaeger
Sort Forum Moderator
Sort Forum Moderator


Joined: 02 Dec 2002
Posts: 1618
Topics: 31
Location: San Jose

PostPosted: Fri Jun 18, 2004 4:47 pm    Post subject: Reply with quote

Just add an OUTREC statement to specify the fields you want in your output records, e.g.

Code:

  OUTREC FIELDS=(17,20,51,5,57,12,79,9)

_________________
Frank Yaeger - DFSORT Development Team (IBM)
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
DFSORT is on the Web at:
www.ibm.com/storage/dfsort
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities All times are GMT - 5 Hours
Page 1 of 1

 
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