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

Problem encountered in Comp values


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

New User


Joined: 05 Nov 2014
Posts: 95
Location: India

PostPosted: Tue Aug 04, 2015 1:23 pm
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

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Tue Aug 04, 2015 1:38 pm
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. View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
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 Null values are considered in Total c... DFSORT/ICETOOL 6
No new posts COBOL - Move S9(11)v9(7) COMP-3 to -(... COBOL Programming 5
Search our Forums:

Back to Top