View previous topic :: View next topic
|
Author |
Message |
bhaskar_kanteti
Active User
Joined: 01 Feb 2007 Posts: 123 Location: Hyderabad
|
|
|
|
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 |
|
|
bhaskar_kanteti
Active User
Joined: 01 Feb 2007 Posts: 123 Location: Hyderabad
|
|
|
|
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 |
|
|
murmohk1
Senior Member
Joined: 29 Jun 2006 Posts: 1436 Location: Bangalore,India
|
|
Back to top |
|
|
bhaskar_kanteti
Active User
Joined: 01 Feb 2007 Posts: 123 Location: Hyderabad
|
|
|
|
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 |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
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 |
|
|
|