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 Partial color change of a field in CI... waseem0424 CICS 5 Fri Sep 29, 2017 7:56 pm
No new posts column with count of rows within dist... ronald wouterson DB2 4 Sun Sep 17, 2017 9:48 pm
No new posts Split 1 file into 10 output Files - S... Prasanth Kumar SYNCSORT 5 Sat Sep 16, 2017 12:02 am
No new posts Convert rows and column into JSON for... Dinesh Manivannan DB2 2 Sun Sep 03, 2017 6:50 pm
No new posts How to change a string containing the... chong.zhou TSO/ISPF 6 Tue Aug 29, 2017 4:54 pm

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