View previous topic :: View next topic
|
Author |
Message |
caleb ong
New User
Joined: 27 Mar 2008 Posts: 1 Location: philippines
|
|
|
|
Hi,
Using the DFSORT control statements below, I am able to convert a binary record into hexadecimal characters.
SORT FIELDS=(7,2,BI,A)
OUTREC FIELDS=(1,1055,HEX)
Is there a way to convert the same binary record into its BINARY format instead?
So instead of the hex characters E3E300, the output will be the binary characters 111000111110001100000000.
Thank you. |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
DFSORT does not have any built-in features for converting to bit representation. You could create bit representation using IFTHEN clauses, but it wouldn't be practical for 1055 bytes = 8440 bits. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello Caleb and welcome to the forums,
Just curious. . . How would you use 8k+ ones and zeros? |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
With z/OS DFSORT V1R10 PTF UK90025 or z/OS DFSORT V1R12 PTF UK90026 (Oct,2010), you can now use DFSORT's new TRAN=BIT function to do this easily like this:
Code: |
SORT FIELDS=(7,2,BI,A)
OUTREC BUILD=(1,1055,TRAN=BIT)
|
For complete details on the new functions for DFSORT and DFSORT's ICETOOL available with the Oct, 2010 PTF, see:
www.ibm.com/support/docview.wss?rs=114&uid=isg3T7000242 |
|
Back to top |
|
|
|