Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Reformatting and Incrementing hex values.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
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    Post subject: Reformatting and Incrementing hex values.
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: 2150
Location: At my coffee table

PostPosted: Tue Mar 09, 2010 8:34 pm    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Check Binary Values for symbols gandikk CA Products 3 Tue Mar 21, 2017 5:11 am
No new posts To display values of multiple rows in... vinu78 DB2 2 Thu Mar 09, 2017 1:20 pm
No new posts Replacing same string with different ... vickey_dw DFSORT/ICETOOL 6 Wed Feb 22, 2017 10:44 pm
No new posts setting new limit Key values for inde... srilata83 DB2 1 Fri Feb 10, 2017 9:24 pm
No new posts Remove junk values in a file and rite... KP1125 DFSORT/ICETOOL 2 Wed Jan 25, 2017 9:58 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us