View previous topic :: View next topic
|
Author |
Message |
NARAYANAM Warnings : 1 New User
Joined: 22 Sep 2006 Posts: 5
|
|
|
|
How can i CHANGE QUOTE TO HYPHEN using SORT. Please explain.
Thanking you,
Regards,
Narayanam Rama Rao. |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
Is the quote you want to change in fixed locations or just anywhere in the record? |
|
Back to top |
|
|
NARAYANAM Warnings : 1 New User
Joined: 22 Sep 2006 Posts: 5
|
|
|
|
i want to change Quote to Hyphen using SORT in entire Sequencial file i.e., where ever QUOTE is present. |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
I don't think you will have any luck with any sort, maybe another utility will be more suitable. |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
Narayanam,
You can use DFSORT's TRAN=ALTSEQ function to do what you want. I assumed you mean double quote " (X'7F') and hyphen (X'60') but you can use the hex values for any characters you need. I assumed your input file has RECFM=FB and LRECL=80, but the job can be changed for other attributes.
Code: |
//S1 EXEC PGM=ICEMAN
//SYSOUT DD SYSOUT=*
//SORTIN DD DSN=... input file (FB/80)
//SORTOUT DD DSN=... output file (FB/80)
//SYSIN DD *
OPTION COPY
ALTSEQ CODE=(7F60)
INREC FIELDS=(1,80,TRAN=ALTSEQ)
/*
|
|
|
Back to top |
|
|
|