Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

How see the value of comp field in dataset

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: How see the value of comp field in dataset
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    Post subject:
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    Post subject:
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    Post subject: Re: How see the value of comp field in dataset
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Splitting a report based on a field abdulrafi DFSORT/ICETOOL 6 Thu Mar 23, 2017 6:56 pm
No new posts Want to pull the job log into a Mainf... Jishu Mukherjee Compuware & Other Tools 9 Tue Mar 21, 2017 4:48 pm
No new posts SORT VSAM file with each field one by... maxsubrat DFSORT/ICETOOL 6 Tue Mar 14, 2017 1:07 pm
No new posts IMS DB-How to update a record (a sing... Nic Clouston IMS DB/DC 9 Thu Mar 09, 2017 4:38 pm
No new posts outrec field outside range Danielle.Filteau SYNCSORT 10 Sat Mar 04, 2017 2:37 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us