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

How see the value of comp field in dataset


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

New User


Joined: 14 Mar 2005
Posts: 1
Location: Pune

PostPosted: Wed Jun 29, 2005 11:28 am
Reply with quote

Can someone tell me how to view the value of comp field in a PS.
Say for example i am writing a record containing eno,name and sal from COBOL to PS file. Of these Sal is declared of COMP-3 type. When i open the PS it shows me the written value of Eno, name but not of Sal.
I i use HEX on it shows me in HEXADECIMAL format.

My question is can i view the sal value in decimal
Back to top
View user's profile Send private message
priya

Moderator


Joined: 24 Jul 2003
Posts: 568
Location: Bangalore

PostPosted: Thu Jun 30, 2005 12:19 am
Reply with quote

Move the comp-3 field to a numeric (9) before writing to PS File.
Back to top
View user's profile Send private message
somasundaran_k

Active User


Joined: 03 Jun 2003
Posts: 134

PostPosted: Thu Jun 30, 2005 2:24 am
Reply with quote

If you have Fileaid at your shop you will be able to view it using a proper copy book.

Regds
-Som
Back to top
View user's profile Send private message
Girishm

New User


Joined: 09 Mar 2005
Posts: 35
Location: Mysore

PostPosted: Fri Jul 01, 2005 2:10 pm
Reply with quote

I agree with somasundaran. U can make use of FileAid utility. Search for fileaid document to get an idea of how to use fileaid.

_________
GM
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 FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts Allocated cylinders of a dataset DB2 12
No new posts Sort First/last record of a subset th... DFSORT/ICETOOL 7
Search our Forums:

Back to Top