IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to test the comp-3 data.


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ramanatcs

New User


Joined: 23 Dec 2008
Posts: 7
Location: Bangalore

PostPosted: Tue Jan 13, 2009 6:13 pm
Reply with quote

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
View user's profile Send private message
acevedo

Active User


Joined: 11 May 2005
Posts: 344
Location: Spain

PostPosted: Tue Jan 13, 2009 6:32 pm
Reply with quote

view/edit your file and type HEX ON.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Tue Jan 13, 2009 6:57 pm
Reply with quote

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
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Tue Jan 13, 2009 7:39 pm
Reply with quote

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
View user's profile Send private message
ramanatcs

New User


Joined: 23 Dec 2008
Posts: 7
Location: Bangalore

PostPosted: Thu Jan 15, 2009 3:28 pm
Reply with quote

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
View user's profile Send private message
Terry Heinze

JCL Moderator


Joined: 14 Jul 2008
Posts: 1249
Location: Richfield, MN, USA

PostPosted: Thu Jan 15, 2009 11:24 pm
Reply with quote

Please share your solution for the benefit of others.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Fri Jan 16, 2009 5:20 pm
Reply with quote

You are welocme and as Terry said - Please share your solution for the benefit of others.

-Ad
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Data set Rec-Cnt and Byte-Cnt Testing & Performance 2
No new posts SCOPE PENDING option -check data DB2 2
No new posts Check data with Exception Table DB2 0
No new posts JCL EXEC PARM data in C Java & MQSeries 2
This topic is locked: you cannot edit posts or make replies. Automation need help in sorting the data DFSORT/ICETOOL 38
Search our Forums:

Back to Top