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 to replace a value in a file using syncsort

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

New User


Joined: 20 Sep 2006
Posts: 4
Location: Bangalore

PostPosted: Mon Mar 02, 2009 7:43 am    Post subject: How to replace a value in a file using syncsort
Reply with quote

Hello,

I have a flat file (FB) recl 2004. I have a header and a detail records.
I have to change the value of the hearder only. I have to change 159th and 160th position. And we use syncsort in our shop.

Please help.
Back to top
View user's profile Send private message

dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Mon Mar 02, 2009 7:50 am    Post subject:
Reply with quote

Hello,

How is a header known from a detail? What is the recfm? Do you want to change "from" some particular value "to" some other or do you want to change all of the headers to the same "to" value?

What release of Syncsort is used on the system?
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Mon Mar 02, 2009 10:48 am    Post subject:
Reply with quote

Hi,

In addition to what Dick has asked - it's always good to show a bit of your input, rules & the expected output for such questions. . .
Back to top
View user's profile Send private message
Abhushan_s

New User


Joined: 28 Jul 2008
Posts: 34
Location: Ahmedabad

PostPosted: Mon Mar 02, 2009 3:50 pm    Post subject: Reply to: How to replace a value in a file using syncsort
Reply with quote

First of all the header would be just a single record in the file so you could just change it manually as the change is only for 2 bytes from FILE-AID if you know the value that would be move to those 2 positions. icon_confused.gif

And if thats not the case

Quote:
I have to change the value of the hearder only


Just check how is a header identified in the file, and then based on it use a SORT condition first which should only filter out the header, after that you could use OUTREC function that would allow you to change the value at that particular position in the header.
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 COB2 file processing rizwanaccy COBOL Programming 8 Tue Jan 02, 2018 1:00 pm
No new posts KSDS and Index file in cobol deepak14450 COBOL Programming 9 Fri Dec 22, 2017 9:36 am
No new posts Preserve order in Input File pshongal DFSORT/ICETOOL 13 Thu Dec 21, 2017 4:20 pm
No new posts ISSUE IN copying Sequential file reco... thesumitk JCL & VSAM 2 Wed Dec 13, 2017 3:07 pm
No new posts File Tailoring -- Temporary dataset i... samzee71 CLIST & REXX 3 Fri Dec 01, 2017 3:12 am

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