How many bytes will be allocated for the following record
description
entries?
01 REC-A.
05 A PIC S9(4).
05 B PIC XXXBXXX.
05 C PIC ____9.99.
05 D PIC S9(5) COMP-3.
05 E PIC 9(3) COMP.
Answers were Sorted based on User's Feedback
Answer / suresh kumar
total 19 bytes, For furtyher expansion you can see deepaks
answer.
| Is This Answer Correct ? | 1 Yes | 6 No |
Answer / asif
05 A PIC S9(4). = 4
05 B PIC XXXBXXX. = 7
05 C PIC ----9.99. = 8
05 D PIC S9(5) COMP-3. = 3
05 E PIC 9(3) COMP. = 2
LENGTH OF REC-A = 24 BYTES.
| Is This Answer Correct ? | 0 Yes | 5 No |
Answer / guest
Folloiwng will be space allocation:
A - 4
B - 7
C - 8
D - 3
E - 2
Total 24 bytes.
| Is This Answer Correct ? | 2 Yes | 8 No |
Answer / guest
correct answer is 25 bytes.. since s9(5) comp-3 will take 4
bytes.. not 3 bytes
A-4
B-7
C-8
D-4
E-2
| Is This Answer Correct ? | 0 Yes | 11 No |
what are the error codes in cobol, db2, cics, vsam , and jcl
What is "Call by content" and "call by reference"?
A LESS 1200 IF B GREATER 25 MOVE 47 TOC ELSE MOVE 57 TO C IF A GREATER 249 MOVE 67 TO C ELSE NEXT SENTENCE ELSE IF B LESS 67 MOVE 27 TO C What will be the value of C, when A is 137 and b is 25
How many bytes do a s9 (7) comp-3 field occupy?
how do you reference the esds vsam file formats from cobol programs
we can use set true for condition names.. similarly can we code set to false in cobol pgm? will it work?
How you can characterize tables in cobol?
how many subpgms we can use in a main pgm ? how do u link sub pgm to main pgm ? how can i use the parameters declared in main pgm to sub pgm ?
what is the use of keep and pass in disp
How can you pass values from COBOL program to non-COBOL programs?
How will you find the currepted records in a file
what is S04E error in jcl?
11 Answers IBM, L&T,