Converting BIT String Value
Posted:
Wed May 14, 2014 4:21 pm
by ravisankarc
Hi,
I want to convert a BIT string value into a readable format using ICETOOL control card. My input is as below:
Offset Type Length Description
74(X'4A') Bitstring 2 Dataset Organization
Can somebody help me on writing a control card.
Regards
Ravi
Re: Converting BIT String Value
Posted:
Wed May 14, 2014 4:27 pm
by BillyBoyo
Which specific ICETOOL operator are you using?
Re: Converting BIT String Value
Posted:
Wed May 14, 2014 5:20 pm
by ravisankarc
Hi Billy,
I am using the below operator :
OUTFIL VTOF,BUILD=(29,05,2X,13,4,2X,29,44,2X,160:X)
In the above control card I want to include the bit string field to get the readable output.
"I don't know how to use 'code' while giving replies. Can somebody teach me so that it will be helpful for me to display the requirement in a professional way."
Regards
Ravi
Re: Converting BIT String Value
Posted:
Wed May 14, 2014 6:38 pm
by BillyBoyo
enrico, bits, not hex.
More politely than usual, may I suggest that you should prefer BUILD over FIELDS on OUTREC and BUILD over OUTREC on OUTFIL. BUILD is not overloaded, FIELDS and OUTREC are. BUILD is a synonym of FIELDS on INREC, OUTREC and OUTREC on OUTFIL. DFSORT/SyncSort don't care, just a bit clearer for us
Re: Converting BIT String Value
Posted:
Wed May 14, 2014 6:59 pm
by enrico-sorichetti
enrico, bits, not hex.
I have seen that, but nowhere I know
will be displayed as
I feel strongly that the people asking should take the replies as starting points to investigate further
and not lazily use what is posted without understanding it.
Re: Converting BIT String Value
Posted:
Wed May 14, 2014 7:24 pm
by ravisankarc
Hi All,
I have given the bit string field in INCLUDE COND statement and got the desired output. Thank you for the above suggestions will keep the same for future reference.
Hence, closing this topic.
Regards
Ravi
Re: Converting BIT String Value
Posted:
Wed May 14, 2014 7:36 pm
by enrico-sorichetti
I have given the bit string field in INCLUDE COND statement and got the desired output.
that' s not what You asked in the initial question
Re: Converting BIT String Value
Posted:
Wed May 14, 2014 7:57 pm
by BillyBoyo
Yes. Bitstring on INCLUDE for SORT. Not really very close to the original question.