what is the size of W-REC in the following
01 W-REC
05 A PIC 9(4)V99
05 B READLINES A
10 C PIC XX
10 D PIC S9(4)
05 E OCCURS 7 PIC ZZ.ZZ
05 F OCCURS 5
10 G PIC ZZ.ZZZ99
10 H OCCURS 3
15 J PIC 9(3)
15 K PIC V99
Answers were Sorted based on User's Feedback
Answer / vel
Let us come from bottom
K=2
J=3
so H = 3 * 5 =15
G = 8
SO F = 5 * ( 8 + 15) =115
E = 7 * 5 = 35
A=B= 6
SO TOTAL SIZE =156
| Is This Answer Correct ? | 17 Yes | 1 No |
Answer / rahul
Here B is redefining A so 6 will be added only once
| Is This Answer Correct ? | 0 Yes | 0 No |
What is file status 92?
consider the following FD FILE-1 01 REC-1 PIC X(80) ...... WORKING-STORAGE SECTION 01 W-REC PIC X(90) ........ PROCEDURE DIVISION FIRST-PARA ....... READ FILE-1 INTO W-REC AT END MOVE 1 TO EOF-FLAG which of the following is true with respect to the above? a.REC-1 will contain nothing and W-REC will contain the contains of the record read b.REC-1 and W-REC contain the same data c.syntex is invalid and error will occur d.REC-1 and W-REC must be of same size
What is difference between COBOL and VS COBOL II?.
how to remove leading spaces and zeroes in a cobol variable.is there any easy way to do it
HELLO FRIENDS, THIS IS JANARDHAN.GADIRAJU, I FACED ONE INTERESTING QUESTION IN COBOL, THAT IS WHAT ARE THE VALUES WE CAN SEE IN HIGHVALUES AND LOWVALUES, CAN U PLEASE GIVE ME THE ANSWER
Write a program to explain size error.
How do you define a variable of comp-1 and comp-2?
How many bytes S(8) comp field occupy and its maximum value?
can any one give good example for cond 88 level number and for renames pls urgent dudes ?
i need the code for this program in cobol. 2 + 1 = 3 4+3=7 6+5=11 8+7=15 10+9=19
what is call by value and call by reference ?
3 Answers Infosys, ITC Indian Tobacco Company,
tell me about examine inspect and evaluate ?