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 |
if a>b continue display x. dispaly y. end-if display 1 display 2. display 3. what should be my output ?
Why did you choose to work with ibm mainframe cobol programming?
Name the sections present in data division.
which is faster either static call or dynamic call ? and specify the reasons for it ? reply fast
consider the following piece of code 01 GROSS-PAY 05 BASIC-PAY PIC 9(5) 05 ALLOWENCES PIC 9(3) if BASIC-PAY has a value 1000 and ALLOWENCES has a value of 250,what will be displayed by the statement DISPLAY GROSS-PAY a.1250 b.01000250 c.01250 d.1.250
WORKING-STORAGE SECTION. 01 VAR1 COMP-2 VALUE 0. PROCEDURE DIVISION. MOVE 10.2115 TO VAR1. DISPLAY 'VAR1 =' VAR1. GOBACK. 10.2115 is stored as .10211499999999996E 02 in OS VS Cobol 10.2115 is stored as .10211500000000000E 02 in ecobol. Any reason why?
Can you REWRITE a record in an ESDS file? Can you DELETE a record from it?
6 Answers ABC, IBM, Mphasis, Wipro,
why we are using picture clause in the cobol programs?
How To move a value to an array using move verb?
Write some characteristics of cobol as means of business language.
what is a zoned decimal data type and how it will be stored?
What is 66 level number and where it is used in real time by software developers?
2 Answers ITC Indian Tobacco Company, TCS,