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
 

 

Replace $ with * using icetool

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

Active User


Joined: 01 Feb 2007
Posts: 113
Location: India

PostPosted: Wed Oct 24, 2007 3:12 pm    Post subject: Replace $ with * using icetool
Reply with quote

Hi,

I had PS file of LRECL=80, RECFM=F or RECFM=FB
In that file where ever i find '$' i should replace it with '*'.
How can i do this using ICETOOL.

I had seen the below post. But i am not clear about that. I didnt understan that.
[url]Replace 'ab' 'cd' using sort[/url]

How to do this.
Back to top
View user's profile Send private message

bhaskar_kanteti

Active User


Joined: 01 Feb 2007
Posts: 113
Location: India

PostPosted: Wed Oct 24, 2007 4:25 pm    Post subject: Reply to: Replace $ with * using icetool
Reply with quote

Hi,

In my previous post i mentioned it as RECFM=FB. But it is not FB. It is VB format.

How to proceed in this regard.
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1439
Location: Bangalore,India

PostPosted: Wed Oct 24, 2007 4:27 pm    Post subject:
Reply with quote

Bhaskar,

I believe you're referring to this post -

http://www.ibmmainframes.com/viewtopic.php?t=25365&sid=0b2d81b2af4eeff354a8a889a12d2349

So let us know what you didn't understand ?
Back to top
View user's profile Send private message
bhaskar_kanteti

Active User


Joined: 01 Feb 2007
Posts: 113
Location: India

PostPosted: Wed Oct 24, 2007 4:43 pm    Post subject: Reply to: Replace $ with * using icetool
Reply with quote

Hi,

What is the purpose of using CTL1 where REPEAT=79.
And how the condition is written in CTL2. The pupose of using SEQNUM.

and one more thing. how can i use this if my file is VB format.
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Moderator


Joined: 15 Feb 2005
Posts: 7130
Location: San Jose, CA

PostPosted: Wed Oct 24, 2007 9:42 pm    Post subject:
Reply with quote

Bhaskar,

You don't need that complex solution to replace one character (e.g. '$') with another character (e.g. '*'). You can do that quite easily with DFSORT's TRAN=ALTSEQ function. Here's a DFSORT job that will do what you asked for:

Code:

//S1    EXEC  PGM=ICEMAN
//SYSOUT    DD  SYSOUT=*
//SORTIN DD DSN=...  input file (VB)
//SORTOUT DD DSN=...  output file (VB)
//SYSIN    DD    *
  OPTION COPY
  ALTSEQ CODE=(5B5C)
  INREC BUILD=(1,4,5,TRAN=ALTSEQ)
/*
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 How to delete second instance from Fl... Gunapala CN DFSORT/ICETOOL 6 Tue Oct 18, 2016 11:42 pm
No new posts Replace repeated JCL with looping REXX prino CLIST & REXX 3 Thu Oct 13, 2016 5:30 am
No new posts ICETOOL/SYNCSORT - SYSPRINT output nartcr DFSORT/ICETOOL 17 Wed Oct 05, 2016 10:46 pm
This topic is locked: you cannot edit posts or make replies. Sort card to replace text using cross... Susanta SYNCSORT 32 Tue Sep 13, 2016 4:17 pm
No new posts Replace function abdulrafi COBOL Programming 13 Mon Sep 12, 2016 10:12 am


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