Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts sort records based on length exceeds ... maxsubrat DFSORT/ICETOOL 7 Wed Oct 04, 2017 4:48 pm
No new posts opening a dataset after reading it fr... arunsoods DFSORT/ICETOOL 5 Wed Oct 04, 2017 3:54 pm
No new posts Partial color change of a field in CI... waseem0424 CICS 5 Fri Sep 29, 2017 7:56 pm
No new posts Remove leading spaces from numeric field rexx77 SYNCSORT 6 Wed Sep 06, 2017 2:15 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us