View previous topic :: View next topic
|
Author |
Message |
medepallirao
New User
Joined: 05 May 2005 Posts: 6 Location: pune
|
|
|
|
please answer the questions
1. how many bytes does s9(4) comp-3 field take?
2. how many bytes does 9(4) comp-3 field take?
3. give me clear idea on PARM parameter
if i want to take 10 bytes of data by using parm parameter how can u declare it cobol and what u code in jcl |
|
Back to top |
|
|
swaran_msc
New User
Joined: 19 May 2005 Posts: 5 Location: Bangalore
|
|
|
|
s9(4) Comp-3 will take (n+1)/2 = 2.5 = 3 bytes.
9(4) Comp-3 will take n/2 = 2 bytes.
For Parm Parameter Refer Chapter 1 in Mvs Jcl Primer by Saba Zamir.
Corrections are Welcome... |
|
Back to top |
|
|
ajay_dheepak
New User
Joined: 12 May 2005 Posts: 32 Location: Chennai
|
|
|
|
For both it is 3 bytes |
|
Back to top |
|
|
ajay_dheepak
New User
Joined: 12 May 2005 Posts: 32 Location: Chennai
|
|
|
|
Declaration Value Internal representation
PIC S9(4) COMP-3 + 1234 01 23 4C
PIC 9(4) COMP-3 1234 01 23 4F
so for both it is 3 bytes |
|
Back to top |
|
|
subhasis_50
Moderator
Joined: 09 Mar 2005 Posts: 363 Location: Earth
|
|
|
|
Hi,
Ajay is correct. It will take 3 bytes. In case of COMP-3 variable the sign is stored rightmost half a byte of character as it is the representation of packed decimal. It is not a fact that S is mentioned or not. |
|
Back to top |
|
|
|