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

Replace a part of text in a record


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
h4hemanth

New User


Joined: 27 Jun 2008
Posts: 3
Location: chennai

PostPosted: Fri Jul 04, 2008 9:47 am
Reply with quote

Hi all,

Here is my requirement- i need to replace a part of text in a record of an PS file. Can anyone please help me in doing that in JCL or REXX. please provide a relavent code if available

i.e., my record is AE425635656734JHNEHJHDRLJF and that coloured number need to be replaced by some other text like 0LDHE24

Thanks,
Hemanth
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Fri Jul 04, 2008 10:10 am
Reply with quote

Hi Hemanth,

there are may examples in the forum. there are many utilities you can use.

Here is an example


Code:
//S1       EXEC PGM=ICEMAN                           
//SYSOUT   DD SYSOUT=*                               
//SORTIN   DD *                                       
AE425635656734JHNEHJHDRLJF                           
//SORTOUT  DD SYSOUT=*                               
//SYSIN    DD    *                                   
  OPTION COPY                                         
  INREC IFTHEN=(WHEN=(5,7,CH,EQ,C'5635656'),         
  OVERLAY=(5:C'0LDHE24'))                             
/*                                                   


Gerry
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 How to save SYSLOG as text data via P... All Other Mainframe Topics 2
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
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
Search our Forums:

Back to Top