|
View previous topic :: View next topic
|
| Author |
Message |
Pallavi_khopkar
New User
Joined: 01 Apr 2006 Posts: 6
|
|
|
|
Hi,
How do I read COMP variables from a flat file? I know that we can read COMP-3 variables using 'hex on'. Do we have something similar for COMP variables?
Thanks |
|
| Back to top |
|
 |
Devzee
Active Member
Joined: 20 Jan 2007 Posts: 684 Location: Hollywood
|
|
|
|
Your question is not clear.
Do you want to ISPF Edit/Browse/View the COMP data from a flat file ? or
Do you want to read COMP field with in a COBOL program? |
|
| Back to top |
|
 |
ajayvamsi
New User
.jpg)
Joined: 21 Jul 2005 Posts: 56 Location: Hyderabad
|
|
|
|
| we are not clear with ur question could u be clear |
|
| Back to top |
|
 |
Pallavi_khopkar
New User
Joined: 01 Apr 2006 Posts: 6
|
|
|
|
Sorry about that.
I want to ISPF browse COMP data from a flat file. |
|
| Back to top |
|
 |
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
| Pallavi_khopkar wrote: |
| How do I read COMP variables from a flat file? I know that we can read COMP-3 variables using 'hex on'. Do we have something similar for COMP variables? |
'hex on' will show COMP values just as it does COMP-3 values.
Example 2 byte field with a value of 10 in COMP-3:
..
00
1C
and the same in COMP:
..
00
0A
Do you understand? |
|
| Back to top |
|
 |
Pallavi_khopkar
New User
Joined: 01 Apr 2006 Posts: 6
|
|
|
|
| Got it! Thanks. |
|
| Back to top |
|
 |
Phrzby Phil
Senior Member
Joined: 31 Oct 2006 Posts: 1056 Location: Richmond, Virginia
|
|
|
|
| Remember that the Windows calculator scientific mode can convert bases 2, 8, 10, and 16. |
|
| Back to top |
|
 |
|
|