Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
Convert certain fields of a file from characters to hexa

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
Author Message
gomu_mm

New User


Joined: 05 Dec 2006
Posts: 1
Location: Chennai

PostPosted: Fri May 09, 2008 5:21 pm    Post subject: Convert certain fields of a file from characters to hexa
Reply with quote

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
View user's profile Send private message
References
PostPosted: Fri May 09, 2008 5:21 pm    Post subject: Re: Convert certain fields of a file from characters to hexa Reply with quote

CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 956
Location: At my desk

PostPosted: Fri May 09, 2008 5:45 pm    Post subject:
Reply with quote

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
View user's profile Send private message
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

PostPosted: Fri May 09, 2008 9:07 pm    Post subject:
Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1