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
 
change '123' to 'A01' from 5th column using syncsort

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

New User


Joined: 01 Sep 2006
Posts: 17
Location: Delhi

PostPosted: Mon Sep 11, 2006 8:59 pm    Post subject: change '123' to 'A01' from 5th column using syncsort
Reply with quote

I want to change '123' to 'A01' from 5th column in all my records using syncsort where first 2 characters of the records are "NY".

Pls help me provide appropriate sort card.
Back to top
View user's profile Send private message

priyesh.agrawal

Senior Member


Joined: 28 Mar 2005
Posts: 1452
Location: Chicago, IL

PostPosted: Tue Sep 12, 2006 7:07 am    Post subject: Re: change '123' to 'A01' from 5th column using syncsort
Reply with quote

Well, MFLAX... I am not a Syncsort player... but am learning too now a days; due to changed weather...

I could only reach up to changing all "123" to "A01" but not for specific records... Will update this thread once I reach the final destination...Try the code below...

Code:
SORT FIELDS = COPY
OUTREC = (1:1,4,
5:5,3,CHANGE=(3,C'123',C'A01'),NOMATCH=(5,3)
8:8,L-7)


Here L = LRCEL of your I/p file...
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 Reformatting and adding additional fi... Badbeef SYNCSORT 6 Thu Apr 05, 2018 4:45 pm
No new posts Repeat Sequence Number Until change i... rahulabvp DFSORT/ICETOOL 6 Thu Mar 29, 2018 12:51 pm
No new posts Query to compare 2 values of 1 column... Poha Eater DB2 13 Fri Mar 09, 2018 10:45 am
No new posts How to change the logon screen info o... sakthikumarT TSO/ISPF 4 Fri Dec 29, 2017 6:44 pm
No new posts Change NULL indicator in UNLOAD utility Khadhar Basha DB2 2 Fri Dec 15, 2017 3:01 pm

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