IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Reformatting and Incrementing hex values.


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Mira

New User


Joined: 08 Mar 2010
Posts: 2
Location: Germany

PostPosted: Tue Mar 09, 2010 2:34 pm
Reply with quote

Hi All,

In the output file, I need to reformat the hex values in incrementing order
Currently it shows 01,0A and 0B.

XX NUMBER IS 12
EE00DEDCCD4CE4FF4444444444444
77015442590920120000000000000
-----------------------------
YY NAME IS AB
EE00DCDC4CE444CC4444444444444
880A5145092000120000000000000
-----------------------------
ZZ ADDRESS IS MAX STR
EE00CCCDCEE44CE4DCE4EED444444
990B1449522009204170239000000
-----------------------------

After reformat, hex values should be 01,02 and 03 instead of 01,0A and 0B

Can you help here.Thanks

Regards
Mira
Back to top
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2146
Location: At my coffee table

PostPosted: Tue Mar 09, 2010 8:34 pm
Reply with quote

As Dick would say welcome, etc....

Just describe the field as a binary field and add one to it each time.

SEQNUM?
For a BI format sequence number, the maximum value DFSORT can create is limited to the lesser of 8 bytes of ones (X'FFFFFFFFFFFFFFFF') or the number of ones that will fit in the specified output field length (n). If a sequence number overflows this limit, it will be truncated to the lesser of 8 bytes or the output field length, and then subsequently incremented as usual.
Back to top
View user's profile Send private message
Mira

New User


Joined: 08 Mar 2010
Posts: 2
Location: Germany

PostPosted: Tue Mar 09, 2010 10:53 pm
Reply with quote

Thanks a lot for the quick hint on SEQNUM. It has worked as required!
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts Null values are considered in Total c... DFSORT/ICETOOL 6
No new posts Converting ASCII values to COMP-3 (ZD... JCL & VSAM 2
No new posts Generate output lines (SYSIN card for... DFSORT/ICETOOL 4
Search our Forums:

Back to Top