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 Where to get sample for processing RM... vice_versa PL/I & Assembler 2 Tue Jan 16, 2018 2:03 pm
No new posts VSAM dataset not found abdulrafi JCL & VSAM 5 Fri Jan 12, 2018 11:19 am
No new posts COMP Variables Mismatch gayu7 COBOL Programming 5 Wed Dec 20, 2017 5:06 pm
No new posts Moving a COMP-3 Variable to a Numeric... ajayachander COBOL Programming 2 Thu Dec 14, 2017 5:46 pm
No new posts File Tailoring -- Temporary dataset i... samzee71 CLIST & REXX 3 Fri Dec 01, 2017 3:12 am

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