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
 

 

Difference between S9(6) COMP3 and s9(7) comp3

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions
View previous topic :: :: View next topic  
Author Message
SrikanthMaddileti

New User


Joined: 18 Mar 2008
Posts: 2
Location: Chennai

PostPosted: Wed Oct 06, 2010 10:35 pm    Post subject: Difference between S9(6) COMP3 and s9(7) comp3
Reply with quote

Hi all

Could anyone please tell me the exact difference between
S9(6) COMP3 and S9(7) comp3 since both of them would occupy a memory of 4 bytes ?

awaiting ur response. thanks
Back to top
View user's profile Send private message

Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2502
Location: Atlanta, Georgia, USA

PostPosted: Wed Oct 06, 2010 10:46 pm    Post subject: Reply to: Difference between S9(6) COMP3 and s9(7) comp3
Reply with quote

With PIC S9(06) COMP-3, you don't have addressability to the high-order nibble, whereas, you do with S9(07) COMP-3. So, you can move 1234567 to the PIC S9(07) COMP-3 field and it will be retained as-is, however, if you move this same value to the PIC S9(06) COMP-3 field, the value will be 234567, truncating the high-order 1.

Plus, the compiler needs to go through a few extra instructions to accommodate PIC S9(06) COMP-3, always rendering the high-order nibble with a B'0000'/4-Bit X'0'.

IMHO, other than PIC S9(18) COMP-3, the picture clause, without an implied decimal, should always be an odd number.

Why limit a field's maximum-capacity when it occupies the same amount of storage?

Bill
Back to top
View user's profile Send private message
SrikanthMaddileti

New User


Joined: 18 Mar 2008
Posts: 2
Location: Chennai

PostPosted: Wed Oct 06, 2010 11:19 pm    Post subject: THANK U
Reply with quote

thanks a lot Bill !!!!!
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 -> Mainframe Interview Questions All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Difference between TWALENG and TWASIZE Arunkumar Chandrasekaran CICS 3 Tue Jan 03, 2017 12:57 pm
No new posts Sticky: difference between ... DUMMY ... and ... enrico-sorichetti JCL & VSAM 0 Mon Oct 17, 2016 4:31 pm
No new posts Difference space showed for TS and it... autobox DB2 1 Thu Apr 14, 2016 1:07 pm
No new posts Difference Between CICS WebSupport an... sachinji84 CICS 1 Mon Mar 07, 2016 7:25 pm
No new posts Difference between -180 and -181 with... deepak_shrivastava DB2 4 Wed Jan 06, 2016 10:00 am


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