View previous topic :: View next topic
|
Author |
Message |
ramanatcs
New User
Joined: 23 Dec 2008 Posts: 7 Location: Bangalore
|
|
|
|
A Cobol Program populating the data from a table into a file. The file contains COMP-3 data items. It contains the junk data in the file. How to test the comp-3 values, whether the data written to the file is same or different. Simply By looking into the file we can not understand the comp-3 filelds data.
The data in the file looks like
country{!'hýåf........
How to test the data after country which is in comp-3 items. |
|
Back to top |
|
|
acevedo
Active User
Joined: 11 May 2005 Posts: 344 Location: Spain
|
|
|
|
view/edit your file and type HEX ON. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Quote: |
How to test the data after country which is in comp-3 items. |
I'm sure this is clear to you -- but what are you talking about? Do you want to use a COBOL test like an IF statement? Do you want to see the value of the data (HEX ON in ISPF) in the file? Same or different than what? |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Hi,
Do you have file-aid at your shop, if yes - create a COPYBOOK for the file & open it with that copybook. (FILE-AID BROWSE (F.1) or F.2 to edit)
If you don't have file aid - in your COBOL program move the values to displayable variables & write that output to a seprate file. |
|
Back to top |
|
|
ramanatcs
New User
Joined: 23 Dec 2008 Posts: 7 Location: Bangalore
|
|
|
|
Anuj D. wrote: |
Hi,
Do you have file-aid at your shop, if yes - create a COPYBOOK for the file & open it with that copybook. (FILE-AID BROWSE (F.1) or F.2 to edit)
If you don't have file aid - in your COBOL program move the values to displayable variables & write that output to a seprate file. |
Thanks to all...
I got it... |
|
Back to top |
|
|
Terry Heinze
JCL Moderator
Joined: 14 Jul 2008 Posts: 1249 Location: Richfield, MN, USA
|
|
|
|
Please share your solution for the benefit of others. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
You are welocme and as Terry said - Please share your solution for the benefit of others.
-Ad |
|
Back to top |
|
|
|