Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 attchmvs from rexx subroutine that re... harisukumaran CLIST & REXX 1 Fri Jan 19, 2018 5:29 am
This topic is locked: you cannot edit posts or make replies. Incrementing current time field by 30... arunsoods DFSORT/ICETOOL 11 Thu Oct 26, 2017 3:22 pm
No new posts Extend the decimal values in DIVISION Balaryan DFSORT/ICETOOL 3 Thu Oct 05, 2017 4:05 pm
No new posts Working with hex values in Filemanage... Emile Straker IBM Tools 1 Tue Sep 12, 2017 1:42 am
No new posts DB2 NULL Values display V S Amarendra Reddy DB2 3 Thu Sep 07, 2017 6:59 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us