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 SQL query to run through list of valu... Ni3-db2 DB2 14 Wed Dec 14, 2016 9:52 am
No new posts Overlaying one set of charater values... Kevin Lindsley SYNCSORT 7 Sat Nov 05, 2016 3:21 am
No new posts Low values Results from VARCHAR FORMAT balaji81_k DB2 10 Thu Oct 20, 2016 1:18 am
No new posts How can we create a flat file in JAVA... rakesh.v18 Java & MQSeries 7 Fri Sep 23, 2016 10:46 pm
No new posts Using 'parm' to vary SORTOUT record v... Sysaron DFSORT/ICETOOL 13 Wed Sep 07, 2016 9:24 pm


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