comp-3 field occupy?
Answers were Sorted based on User's Feedback
Answer / anil prajapati
it will occupy maximum s9(18) comp-3 i.e. 10 bytes
| Is This Answer Correct ? | 6 Yes | 0 No |
Answer / ajith
for pic s9(n) comp-3,
it will occupy (n+1)/2 bytes
| Is This Answer Correct ? | 5 Yes | 2 No |
Answer / ganesh
It will store INT ((n/2)+1) bytes for PIC S9(n) COMP_3;
| Is This Answer Correct ? | 3 Yes | 1 No |
Answer / swamy
Comp-3 fields occupy (n+1)/2 spaces , 1 being the sign
eg: Pic S9(7) COMP-3. Byte size = (7+1)/2 = 4
Pic S9(5)V99 COMP-3. Byte size = (5+2+1)/2 = 4
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / krishna
COMP-3 is hexa-decimal reprasention .the best at lower
boundaries.
If it have size is even it takes (n/2) bytes.
If it have size is odd it takes (n+1/2) bytes.
| Is This Answer Correct ? | 0 Yes | 3 No |
Suppose i have a variable with s9(18)v99 comp3 . what is the size of variable . If s9(18) comp3 is 10 bytes . There should be some difference between two allocations ? Thanks krishna chaitanya
What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?
0 Answers TryTechnicals Pvt Ltd,
What are different data types in cobol?
How to traceback if I am getting SOC7 or SOC4 abend? List down the steps
if a pic 9(3) value 354,b pic x(2) value '46' then a)a>b 2)a<b 3)error
What are the different data types in cobol?
can any one help -s806
If a file has 1000 records.. if i have to replace the first and last characters of the file with another character. how it can be done....
what is the difference between start and startbr?
how to know that the file has 300 records how to acess it?
In COBOL CALL-CALLING,if a program A is calling 3 sub- programs, dynamically, then it is said sub-programs will always will always in Initial Mode. My question is : Do we need to code CANCEL or (IS INITIAL) for dynamically called sub-programs or it is the property of Dynamically called pgms so every time sub-pgms are called they will be in initial mode. ***This question is only Dynamic call****, Please reply. Thank you in advance.
Can a REDEFINES clause be used along with an OCCURS clause? if yes, 01 WS-TABLE. 03 WS-TABLE-EL OCCURS 5 TIMES PIC X(1) VALUE 'A'. 03 WS-EX REDEFINES WS-TABLE-EL PIC X(5). What can you expect? if no,why?