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

How many bites will S9(7)V99 COMP3 field occupy


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
alok_r_ray

New User


Joined: 30 Mar 2005
Posts: 4
Location: Kolkata

PostPosted: Tue Dec 20, 2005 4:48 pm
Reply with quote

How many bites will S9(7)V99 COMP3 field occupy and why?
Back to top
View user's profile Send private message
iknow

Active User


Joined: 22 Aug 2005
Posts: 411
Location: Colarado, US

PostPosted: Tue Dec 20, 2005 5:07 pm
Reply with quote

Hi ,


Quote:
How many bites will S9(7)V99 COMP3 field occupy and why?


It occupies 5 bytes.

Byte size=(7+2+1)/2 = 10/2 =5 bytes.

To calculate the number of bytes from the PIC, add 1 (for the sign) to the total number of digits, divide by 2, and round up if necessary.

Hope this helps.
Back to top
View user's profile Send private message
hncs

New User


Joined: 01 Mar 2006
Posts: 11

PostPosted: Mon Mar 06, 2006 3:28 pm
Reply with quote

THE SIZE OF S9(7)V9(2)

COUNT TOTAL BYTES : 1+7+2 = 10

IF IT IS EVEN THEN N/2 OTHERWISE N+1/2.

HERE, IT WILL TAKE 5 BYTES.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts Join 2 files according to one key field. JCL & VSAM 3
No new posts How to move the first field of each r... DFSORT/ICETOOL 5
No new posts S0C7 - Field getting overlayed COBOL Programming 2
No new posts Masking variable size field - min 10 ... DFSORT/ICETOOL 4
Search our Forums:

Back to Top