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
 

 

Problem encountered in Comp values

 
Post new topic   This topic is locked: you cannot edit posts or make replies.    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
amitc23

New User


Joined: 05 Nov 2014
Posts: 79
Location: India

PostPosted: Tue Aug 04, 2015 1:23 pm    Post subject: Problem encountered in Comp values
Reply with quote

Hi
I am getting some problem in dealing with Hex values in a file. I have a file with two data elements Date and Volume stored as
20150003
051C0014

Here first four bytes is date x'2005115C' and last four is volume x'00000134'. When I read them into a program working storage, what picture clause shall I give. For date it is ok. I specify 9(7) comp-3 and it reads fine, but for volume when I specify

9(7) comp-3 it reads only x'0000013'
9(8) comp-3 it givers s0c7
9(9) comp-3 it gives x'0000013400' - takes x'00' from next field.

Please suggest.
Regards
Amit
Back to top
View user's profile Send private message

Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7255

PostPosted: Tue Aug 04, 2015 1:38 pm    Post subject: Reply to: Problem encountered in Comp values
Reply with quote

You've already asked and got answers elsewhere. If you can't take note of those, what would be the point of asking again here?

Topic locked.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   This topic is locked: you cannot edit posts or make replies.    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 SYMNAMES problem jacobdng DFSORT/ICETOOL 7 Thu Dec 22, 2016 7:47 am
No new posts SQL query to run through list of valu... Ni3-db2 DB2 14 Wed Dec 14, 2016 9:52 am
No new posts Problem in writing Output file vickey_dw COBOL Programming 5 Mon Nov 14, 2016 11:14 pm
No new posts Overlaying one set of charater values... Kevin Lindsley SYNCSORT 7 Sat Nov 05, 2016 3:21 am
No new posts Low values Results from VARCHAR FORMAT balaji81_k DB2 10 Thu Oct 20, 2016 1:18 am


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