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 |
There is a variable with value 19446. Requirement is to convert it to 194.46. I tried it by doing divide by 100 and my receiving field data type is 9(03)v99. But the output is 194. I am not getting the decimal value. Could anyone pls let me know how to get this done?
State the various causes of s0c1, s0c5 and s0c7.
what happens when a copybook variables are declared using include statement ?
How you can characterize tables in cobol?
how to know that the file has 300 records how to acess it?
How to open and see copy book ?
How many sections are there in data division?.
what are the error codes in cobol, db2, cics, vsam , and jcl
What is IMPACT analysis?
How To move a value to an array using move verb?
What is a SSRANGE and NOSSRANGE?
i want a program using by if, evaluate , string, unstring, perform, occurs?