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 Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am
No new posts Garbage on output file Hervey Martinez SYNCSORT 4 Wed Sep 27, 2017 12:50 am
No new posts File Aid tool to compare numeric data balaji81_k Compuware & Other Tools 2 Tue Sep 26, 2017 3:35 am
No new posts Compare yesterday's date to the one o... migusd SYNCSORT 11 Fri Sep 22, 2017 11:35 pm

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