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
 

 

Regarding the Value of Pic clause

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
jackal
Currently Banned

New User


Joined: 21 Jan 2006
Posts: 48
Location: india

PostPosted: Mon Feb 04, 2008 12:38 pm    Post subject: Regarding the Value of Pic clause
Reply with quote

Hi All,
Could anyone let me know what values this element would take:-
A pic 999v9(10) value 000000000000500000.

when refer modification as (10:9), and when (11:8).
Thanks...
Back to top
View user's profile Send private message

agkshirsagar

Active Member


Joined: 27 Feb 2007
Posts: 686
Location: Earth

PostPosted: Mon Feb 04, 2008 12:58 pm    Post subject:
Reply with quote

Please explain your question bit more.. It is really confusing us..
Code:
A pic 999v9(10) value 000000000000500000.

For above declaration compiler will give error as the value specified in value clause exceeds the limit.
Suggestion is, you should experiment such things instead of asking on forum, it will save your time and learning will be more.
Back to top
View user's profile Send private message
stodolas

Active Member


Joined: 13 Jun 2007
Posts: 632
Location: Wisconsin

PostPosted: Mon Feb 04, 2008 6:27 pm    Post subject:
Reply with quote

You can't refer to a PIC 9 anything so well with reference mod. The value does not exceed the declaration. Since it is a number going into a numeric it will right align and chop the high order bits.
Back to top
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Mon Feb 04, 2008 6:39 pm    Post subject:
Reply with quote

stodolas wrote:
You can't refer to a PIC 9 anything so well with reference mod. The value does not exceed the declaration. Since it is a number going into a numeric it will right align and chop the high order bits.


You can use reference mod with pic 9 fields as long as they are display. But both (10:9) and (11:8) would cause a compile error since they exceed the length of the field.
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 Need help on SQL Dynamic WHERE Clause subratarec DB2 12 Sat Jul 16, 2016 3:11 pm
No new posts [SQL0029] INTO clause missing from em... HABBIE DB2 2 Fri Sep 04, 2015 3:54 pm
No new posts 3-D Table with nested DEPENDING ON Cl... VivekKhanna COBOL Programming 5 Sat Aug 08, 2015 11:18 pm
No new posts when=group clause: question about the... tuxama DFSORT/ICETOOL 2 Thu Mar 26, 2015 12:51 pm
No new posts pic clause on group variable error CuriousMainframer COBOL Programming 6 Mon Jul 14, 2014 6:33 pm


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