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
 

 

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 Changing of LRECL of a file abdulrafi DFSORT/ICETOOL 2 Fri Mar 24, 2017 3:25 pm
No new posts splitting a file abdulrafi DFSORT/ICETOOL 3 Fri Mar 24, 2017 11:51 am
No new posts Receive a file using PCOMM macro Harald.v.K IBM Tools 0 Thu Mar 23, 2017 6:50 pm
No new posts Export flat file data into excel sheet murali.andaluri DFSORT/ICETOOL 2 Mon Mar 20, 2017 5:39 pm
No new posts Formatting VB File Learncoholic DFSORT/ICETOOL 3 Mon Mar 20, 2017 12:29 pm


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