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
 

 

Need to replace the data in the File

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
loverj24

New User


Joined: 05 Jul 2007
Posts: 16
Location: bangalore

PostPosted: Wed Dec 10, 2008 3:23 pm    Post subject: Need to replace the data in the File
Reply with quote

Hi, I have the following file
Code:

|UHC|MHS
|UHC|MHS
|UHC|MHS
|UHC|MHS
|UHC|MHS
|UHC|SA
|UHC|SA


I need to replace all UHC with TNT. The total length of the file is 93.
The Data that needs to be replaced starts at 86th postion and is of 3 bytes.
I need to use sort to acheive this.
Please help
Back to top
View user's profile Send private message

mainframeracf

New User


Joined: 27 Nov 2008
Posts: 5
Location: bangalore

PostPosted: Wed Dec 10, 2008 3:39 pm    Post subject: Reply to: Need to replace the data in the File
Reply with quote

do u need the code using sort or any other coding is ok for u.
Back to top
View user's profile Send private message
loverj24

New User


Joined: 05 Jul 2007
Posts: 16
Location: bangalore

PostPosted: Wed Dec 10, 2008 3:47 pm    Post subject:
Reply with quote

Need the code using sort as i will be using that code in a Jclparm inside a Proc.
Back to top
View user's profile Send private message
Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2180
Location: @my desk

PostPosted: Wed Dec 10, 2008 4:53 pm    Post subject:
Reply with quote

loverj24,

The below sort might help.
Code:
//SYSIN DD *
  OPTION COPY
  INREC IFTHEN=(WHEN=(86,3,CH,EQ,C'UHC'),OVERLAY=(86:C'TNT'))
/*
Back to top
View user's profile Send private message
loverj24

New User


Joined: 05 Jul 2007
Posts: 16
Location: bangalore

PostPosted: Wed Dec 10, 2008 5:03 pm    Post subject:
Reply with quote

Thanks a Lot Arun. It worked icon_biggrin.gif
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 -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts Storing huge volume of data, compare ... Pradeep K M All Other Mainframe Topics 3 Mon Jan 16, 2017 5:08 pm
No new posts how to recover an uncataloged VSAM da... archanamuthukrishnan All Other Mainframe Topics 3 Wed Jan 11, 2017 6:18 pm
No new posts HALDB data refresh/copy from producti... vineetanand2007 IMS DB/DC 1 Mon Jan 02, 2017 11:16 am
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm


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