IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How can we replace Field Values using SYNCSORT ?


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
leo_sangha

New User


Joined: 11 Aug 2005
Posts: 85
Location: England

PostPosted: Mon Sep 19, 2005 7:21 pm
Reply with quote

I have a requirement to convert field values from 28 to 41 in all the records in the INPUT File using SYNCSORT. Rest all the field values should not change .

Input File :

Position 17,18
Data : 28
Data Type : ZD

Output File :

Position 17,18
Data : 41
Data Type : ZD

Can someone help me in this ???
Back to top
View user's profile Send private message
prakash271082

New User


Joined: 09 Sep 2005
Posts: 53

PostPosted: Mon Sep 19, 2005 7:36 pm
Reply with quote

Hi,
You Could make use of " Change " option in OUTREC to accomplish your task.

Hope this helps.
Back to top
View user's profile Send private message
leo_sangha

New User


Joined: 11 Aug 2005
Posts: 85
Location: England

PostPosted: Mon Sep 19, 2005 9:03 pm
Reply with quote

thanks it worked well for me .... this is what i tried ....

//STEP EXEC PGM=SORT
//SYSOUT DD SYSOUT=*
//SORTIN DD DSN=INPUT.FILE,DISP=SHR
//SORTOUT DD DSN=OUTPUT1.FILE,
// DISP=(NEW,CATLG,DELETE)
//SYSIN DD *
OPTION COPY
OUTFIL OUTREC=(1,16,
17,2,
CHANGE=(2,C'28',C'41'),
19,62)
/*
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts Null values are considered in Total c... DFSORT/ICETOOL 6
Search our Forums:

Back to Top