Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
What's the size of -9(4).99

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe COBOL
Author Message
prabhucs01

New User


Joined: 07 Mar 2005
Posts: 40

PostPosted: Mon Apr 04, 2005 9:44 am    Post subject: What's the size of -9(4).99
Reply with quote

how much size this this variable take

-9(4).99

whether is it 6 or 8 ? And how?
Back to top
View user's profile Send private message
References
radhakrishnan82

Senior Member


Joined: 31 Mar 2005
Posts: 386
Location: chennai, India

PostPosted: Mon Apr 04, 2005 12:46 pm    Post subject:
Reply with quote

Total Size occupied will be 8 bytes.

'-' and '.' occupies 1 byte each explicitly.

If we use s9(4)v99 then - and . will be assumed implicitly and occupies 6 bytes.

do let me know if you have concerns over it.
Back to top
View user's profile Send private message
learnmf

Active User


Joined: 14 Mar 2005
Posts: 124

PostPosted: Wed Apr 13, 2005 6:04 pm    Post subject:
Reply with quote

Hi friend
It will occupy 8 bytes as - and . both are editing characters.

Thanks
Chandra
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe COBOL All times are GMT + 6 Hours
Page 1 of 1