IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Need to replace the data in the File


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
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
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
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
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: 2481
Location: @my desk

PostPosted: Wed Dec 10, 2008 4:53 pm
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 1
No new posts Store the data for fixed length COBOL Programming 1
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Replace each space in cobol string wi... COBOL Programming 3
Search our Forums:

Back to Top