Joined: 25 Jun 2007 Posts: 196 Location: Bangalore
arcvns,
Please check with the following code for your requirement.
The below code will work fine for LRECL=80 and RECFM=F or RECFM=FB
Change the below code according to your LRECL and RECFM.
Joined: 28 Jul 2006 Posts: 1702 Location: Australia
kRISPREMS,
why don't you explain why you would want to change my parameters as by changing them the results are not the same.
The OUT=0 parameter processes the entire file. no OUT parameter defaults to 999999999, which is a fairly high number but still not necessarily the entire file.
The EDIT parameter only changes the first occurrence of matched compare-data in a record.
To change all occurrences, use the EDITALL parameter.
why don't you explain why you would want to change my parameters as by changing them the results are not the same.
wanted to know the exact usage of the OUT=0 and EDITALL, the example i took was with only 3 records so i couldn't realize these things.
Anways thank you.
Joined: 29 Jun 2006 Posts: 1436 Location: Bangalore,India
Frank,
Quote:
But the original request was to replace 'ab' with 'cd', not to replace 'a' with 'b' and 'c' with 'd'. ALTSEQ doesn't apply for the original request.
Quote:
For what, giving bad information?
I was not advising anyone to use ALTSEQ for the original requirement ('ab' to 'cd'). I know, altseq cannot be usde for replacing combination of characters.
Rather my intention was to correct Aaru as he provided the sort step using ALTSEQ for the orginial issue.
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
I read back through all of the posts carefully - it was all quite confusing but I see now that you were trying to correct the error. There were so many off-topic posts that it was difficult to follow who was saying what to who. At any rate, I deleted all of the off-topic posts to avoid confusion. I seem to be doing that more and more lately - its tiresome and keeps me from working on more productive stuff and makes me cranky.
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
You can now use DFSORT's new FINDREP function available with z/OS DFSORT V1R5 PTF UK90013 (July, 2008) to do this kind of thing quite easily like this: