Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
How can we replace Field Values using SYNCSORT ?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: How can we replace Field Values using SYNCSORT ?
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    Post subject: Re: How can we replace Field Values using SYNCSORT ?
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    Post subject: Re: How can we replace Field Values using SYNCSORT ?
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    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 LOW VALUES as a KEY juares castro DB2 10 Sat Apr 07, 2018 1:06 am
No new posts How to include a particular field val... sakrat DFSORT/ICETOOL 8 Fri Apr 06, 2018 8:27 pm
No new posts Reformatting and adding additional fi... Badbeef SYNCSORT 6 Thu Apr 05, 2018 4:45 pm
No new posts Extract the records with a PD field's... sudhakar84 DFSORT/ICETOOL 11 Mon Apr 02, 2018 7:26 pm
No new posts Searching a table for the field name? socker_dad COBOL Programming 8 Sat Mar 31, 2018 2:57 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us