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 DB2 - TERMINATE utility vasanthz DB2 5 Mon May 15, 2017 11:49 pm
No new posts HLIST Utility In Batch Virendra Shambharkar TSO/ISPF 4 Fri Apr 07, 2017 3:38 pm
No new posts TSO or command line utility to genera... kishpra JCL & VSAM 3 Thu Mar 09, 2017 1:11 am
No new posts outrec field outside range Danielle.Filteau SYNCSORT 10 Sat Mar 04, 2017 2:37 am
No new posts SYNCSORT SEQNUM and FI fields. nartcr SYNCSORT 7 Sat Jan 21, 2017 4:02 am


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