Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
Quote: |
Frank, Thanks for your reply. If I want to make a change as follows. Can the DFSORT also solve it?
Change all 'C' to 'cat' and all 'B' to 'boys'. It means the length may extend.
i.e.
Input:
CAAAC
AACBBC
Output:
catAAAcat
AAcatboysboyscat
Regards,
David
|
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:
Code: |
//S1 EXEC PGM=ICEMAN
//SYSOUT DD SYSOUT=*
//SORTIN DD DSN=... input file
//SORTOUT DD DSN=... output file
//SYSIN DD *
OPTION COPY
INREC FINDREP=(INOUT=(C'C',C'cat',C'B',C'boys'))
/*
|
For complete details on the new FINDREP function and the other new functions available with PTF UK90013, see:
Use [URL] BBCode for External Links |
|