View previous topic :: View next topic
|
Author |
Message |
cvishu
Active User
Joined: 31 Jul 2007 Posts: 136 Location: india
|
|
|
|
Is there really any difference or advantage over using CHANGE/NOMATCH and ALTSEQ ?
Or they both just two different ways of replacing a character ? |
|
Back to top |
|
|
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 1702 Location: Australia
|
|
|
|
Hi,
the one difference between CHANGE and ALTSEQ that I'm aware is that ALTSEQ will only handle a single byte.
Gerry |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
The other difference is that TRAN=ALTSEQ can change bytes in the variable part of a record whereas CHANGE cannot.
Code: |
OUTREC BUILD=(1,4,5,TRAN=ALTSEQ)
|
will change the bytes from position 5 to the end of each record. You can't do that with CHANGE. Of course, you CAN use FINDREP to do the same thing and more. FINDREP is more flexible than CHANGE or TRAN=ALTSEQ. |
|
Back to top |
|
|
|