View previous topic :: View next topic
|
Author |
Message |
sandy_mcs
New User
Joined: 01 Apr 2006 Posts: 17 Location: Pune
|
|
|
|
How to read HEX data from a dataset?
options available are 1) SET HEX ON
2) HEX ON
3) ... |
|
Back to top |
|
|
aavugari mayuri
New User
Joined: 15 Aug 2006 Posts: 10
|
|
|
|
i think you can just say HEX ON in the command line.. |
|
Back to top |
|
|
Gautam512
Active User
Joined: 05 Oct 2005 Posts: 308 Location: Vizag / US
|
|
|
|
a small request: did u search the forum before posting the query....
just
HEX
is enough........
if u want to close....
HEX OFF |
|
Back to top |
|
|
PeD
Active User
Joined: 26 Nov 2005 Posts: 459 Location: Belgium
|
|
|
|
3) HEX DATA
4) ... |
|
Back to top |
|
|
vijay_bn79
New User
Joined: 20 Nov 2006 Posts: 48 Location: Hyderabad
|
|
|
|
Hi..,
This example may helps you to understand clearly
WORKING-STORAGE SECTION.
05 CURR-BILL-DTE PIC S9(6) COMP-3.
PROCEDURE DIVISION.
MOVE 051505 TO CURR-BILL-DTE.
In the Data set it looks as follows
when HEX is OFF
---
***
&*
When HEX is ON
----
&*
0555
010C
you should read in zig zag manner
like top bottom top bottem....... as 051505C
Thanks |
|
Back to top |
|
|
UmeySan
Active Member
Joined: 22 Aug 2006 Posts: 771 Location: Germany
|
|
|
|
Hi !
@vijay_bn79
You can define the hex-value directly in a Cobol-programm as a constant.
FIELD PIC X(04) VALUE X'A49485A8'.
@sandy_mcs
In which environment would you do that. In TSO editor or in a Cobol-programm. Here in the COBOL-Section you posted your question.
Regards, UmeySan |
|
Back to top |
|
|
|