Determine the total no of bytes in the following.
01 rec1.
02 a pic x(6)
02 b redefines a.
03 c occus 6 times pic 9.
02 d occurs 6 times pic 9.
03 e pic x(5)
03 f pic 999.
Answer Posted / madesh
1st of all it will give an error because of pic clause with
group item in occurs.
a.if we remove pic clause from there it will take 66 bytes.
01 rec1.
02 a pic x(6) == 6
02 b redefines a. == 6
03 c occus 6 times pic 9. == 0
02 d occurs 6 times.
03 e pic x(5) ==30
03 f pic 999. ==24
------
66
b.if we remove e,f
01 rec1.
02 a pic x(6) ==6
02 b redefines a. ==6
03 c occus 6 times pic 9. ==0
02 d occurs 6 times pic 9. ==6
----
18
| Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
What is the difference between goback, stop run and exit program in cobol?
System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..
Can you please let me know the centre name of INS certification in Kolkata.
1.give the details about WHEN OTHER. 2. how many form are available in evaluate.
What are INPUT PROCEDURE and OUTPUT PROCEDURE?
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
2 input fles: 2 flat files, with different number of records. both are having unique key for each record and already sorted in ascending order . match these files using unique key and in output only matching key value has to be written. please procide cobol logic
How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?
Differentiate between structured cobol programming and object-oriented cobol programming.
Differentiate cobol and cobol-ii. (Most of our programs are written in cobolii, so, it is good to know, how, this is different from cobol)?
how do you reference the printer file formats from cobol programs
What is the utilization of copybook in cobol? Could we utilize a similar copybook?
What is amode(31)
What is redefines clause in COBOL?
Is it possible that the redefines clause has different picture clauses compared to the one it redefined?