|
|
| Author |
Message |
mohitsaini
New User
Joined: 15 May 2006 Posts: 41
|
|
|
|
well I am just replying to my post ...
two replacementw would be done like
ALTSEQ CODE=(5BF0,40F0)
also we can have more separated by commas
Thanks,
Mohit |
|
| Back to top |
|
 |
References
|
|
 |
Frank Yaeger
DFSORT Moderator
Joined: 15 Feb 2005 Posts: 4618 Location: San Jose, CA
|
|
|
|
vinoth_316 wrote
| Quote: |
| I have a doubt similar to the question in this thread. I need to find out the low and high values in a file and replace them by space. |
If by low values you mean X'00', and by high values you mean X'FF', you can use the DFSORT technique shown previously with:
| Code: |
ALTSEQ CODE=(0040,FF40)
|
If you mean something else by low and high values, you need to be more specific about what exactly you mean. |
|
| Back to top |
|
 |
vinoth_316
New User
Joined: 20 Jun 2006 Posts: 4
|
|
|
|
Hi Frank,
By low values and high values, I do not mean 00 and FF. One of my friends said to find out low values, the command " F P'.' " can be used and this command shows low values in the form of dots, but the hex value of these dots vary(to name some 12, 2D, 05 etc).
Similarly is there any command to find out the high values and also how to replace such characters using space.
Thanks
Vinoth |
|
| Back to top |
|
 |
IQofaGerbil
Active User
Joined: 05 May 2006 Posts: 190 Location: Scotland
|
|
|
|
I think what you are describing is the picture-string FIND command for 'invalid' characters
and that what you want to do is change those characters with spaces.
In ISPF edit you would do it such;
C p'.' ' ' all
are you looking for a batch method to do this? |
|
| Back to top |
|
 |
vinoth_316
New User
Joined: 20 Jun 2006 Posts: 4
|
|
|
|
Hi all,
Yes, I want to replace the invalid characters with blank space, any batch method to do that would be really helpful.
Thanks,
Vinoth |
|
| Back to top |
|
 |
Frank Yaeger
DFSORT Moderator
Joined: 15 Feb 2005 Posts: 4618 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:
www.ibm.com/systems/support/storage/software/sort/mvs/ugpf/ |
|
| Back to top |
|
 |
|
|