| Author |
Message |
gomu_mm
New User
Joined: 05 Dec 2006 Posts: 1 Location: Chennai
|
|
|
|
I have a file with 49 columns. I want the first 12 columns to be as such but columns from 13 to 49 should change to hexadecimal.
The file looks like this,
6203759820060000000000265084730000000000000
6203424720060000000000188060031000000000000 |
|
| Back to top |
|
 |
References
|
Posted: Fri May 09, 2008 5:21 pm Post subject: Re: Convert certain fields of a file from characters to hexa |
 |
|
|
 |
CICS Guy
Senior Member
Joined: 18 Jul 2007 Posts: 956 Location: At my desk
|
|
|
|
Please produce an example of what you want the output to look like.
Please provide a list of methods available to perform this change. |
|
| Back to top |
|
 |
Moved: Fri May 09, 2008 7:32 pm by superk From JCL to DFSORT/ICETOOL |
Frank Yaeger
DFSORT Moderator
Joined: 15 Feb 2005 Posts: 3777 Location: San Jose, CA
|
|
|
|
gomu_mm,
Well, going by what I think you said you want, the DFSORT control statements would be:
| Code: |
OPTION COPY
INREC BUILD=(1,12,13,37,HEX)
|
The output for your input example would be:
| Code: |
620375982006F0F0F0F0F0F0F0F0F0F0F2F6F5F0F8F4F7F3F0F0F0F0F0F0F0F0F0F0F0F0F0404040404040
620342472006F0F0F0F0F0F0F0F0F0F0F1F8F8F0F6F0F0F3F1F0F0F0F0F0F0F0F0F0F0F0F0404040404040
|
Whether that's really what you want is another question. |
|
| Back to top |
|
 |
|
|