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
 

 

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 SYNCSORT SEQNUM and FI fields. nartcr SYNCSORT 7 Sat Jan 21, 2017 4:02 am
No new posts Fail to change physical VSAM filename... jacobdng CICS 7 Fri Jan 20, 2017 12:36 pm
This topic is locked: you cannot edit posts or make replies. DB2 query Using Recursion, Converting... smilewithashu2 DB2 3 Tue Jan 03, 2017 12:50 pm
No new posts Syncsort Help to group fields sudhakarraju SYNCSORT 6 Thu Dec 29, 2016 1:38 am
No new posts syncsort: copy lines after the keyword shreya19 SYNCSORT 7 Fri Dec 02, 2016 9:47 am


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