Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Can any1 explain me about OUTREC in syncsort utility?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
muthukannan

New User


Joined: 03 Aug 2006
Posts: 42
Location: Chennai

PostPosted: Sat Feb 10, 2007 3:41 pm    Post subject: Can any1 explain me about OUTREC in syncsort utility?
Reply with quote

Hi,

Can any1 please explain me about the OUTREC and CHANGE statement in SYNC SORT utility and how its working?

Thank you,
Mk icon_smile.gif
Back to top
View user's profile Send private message

William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3158
Location: Tucson AZ

PostPosted: Sat Feb 10, 2007 4:46 pm    Post subject:
Reply with quote

The CHANGE subparameter changes an input field to a replacement value in the reformatted output record if the input field equals a search constant. The input field remains unchanged on the input side.
Back to top
View user's profile Send private message
guptae

Moderator


Joined: 14 Oct 2005
Posts: 1187
Location: Bangalore,India

PostPosted: Tue Feb 13, 2007 10:02 am    Post subject:
Reply with quote

Hi MK,

Please find an example for this

Code:
//STEP001  EXEC PGM=SORT                                             
//SORTLIB  DD DSN=SYS1.SORTLIB,DISP=SHR                             
//SORTWK01 DD SPACE=(CYL,(100)),UNIT=DISK                           
//SYSIN    DD  *                                                     
   OPTION COPY                                                       
   OUTFIL OUTREC=(1:1,4,                                             
   5:5,3,CHANGE=(3,C'123',C'A01'),NOMATCH=(5,3),                     
   8:8,73)                                                           
/*                                                                   
//SORTIN   DD  DSN=TBH2.SCHNOMTC.SORTIN.DATA,DISP=SHR               
//SORTOUT  DD  DSN=TBH2.SCHNOMTC.SORTOUT.DATA,                       
//             UNIT=DISK,SPACE=(TRK,(1,1),RLSE),DISP=(,CATLG,DELETE),
//             DCB=(LRECL=80,BLKSIZE=800,RECFM=FB)                   
//SYSOUT   DD  SYSOUT=*                                             
//SYSOUT   DD SYSOUT=*                                               
//STATOUT DD SYSOUT=*                                               
//SYSUDUMP DD SYSOUT=*     


Here the output file contain first 4 byte of i/p file then from 5 th to 7 byte it will contain A01 if i/p file contain 123 otherwise the value of i/p file from 5th to 7 byte then from 8th to 80 byte again it will be containg value of 8th to 80 th byte of i/p file.

Hope it will helpful
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts SYNCSORT SEQNUM and FI fields. nartcr SYNCSORT 5 Sat Jan 21, 2017 4:02 am
No new posts Syncsort Help to group fields sudhakarraju SYNCSORT 6 Thu Dec 29, 2016 1:38 am
No new posts TAPE VERIFY utility?? MrExtraordinare JCL & VSAM 3 Fri Dec 09, 2016 10:57 pm
No new posts syncsort: copy lines after the keyword shreya19 SYNCSORT 7 Fri Dec 02, 2016 9:47 am
No new posts Syncsort - Hard coded Value in output PORYES SYNCSORT 1 Thu Nov 03, 2016 9:23 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us