study the following code
01 A1
05 B PIC 99
05 C PIC X(4)
01 A2
05 B PIC 99V99
05 C PIC A(4)
pick out the valid statement from the following
a.A1 and A2 can not have sub-ordinates
b.A1 and A2 can have the same sub-ordinates but must have
same PIC clause
c.there is nothing wrong
d.A1 and A2 can have same sub-ordinates provided they are
not at 01 level
Answers were Sorted based on User's Feedback
Answer / satya prakash
a. A1 and A2 can not have subordinates because the size of
the group item A1 is differ from A2.
| Is This Answer Correct ? | 0 Yes | 1 No |
Answer / asmara
B is the right answer because if the level and sub-
ordinates must be same as well as the same PIC clause must
be there. where B PIC clause is differ.
If i am wrong let me inform to my mail..
Regards,
Asmara
| Is This Answer Correct ? | 0 Yes | 5 No |
What is different between variable length and fixed length?
Define static linking and dynamic linking.
What is the Purpose of POINTER Phrase in STRING command in COBOL?
what is the maximum error code in mainframe
i want to store 20 digits . h will u do it in cobol ?
Difference between lrecl, blksize among PS, PDS issues? i.e in jcl at dcb
In an EVALUATE statement, can I give a complex condition on a when clause?
I hv ten records in ps file and i hv say some 15 records in vsam file .i hv empno and age in ps file n empno,empname,dept n desig in vsam file. i hv 2 read the ps file n check wid matching empno in vsam file and then insert all fields from ps and vsam into db2 table....plz help in writin the procedure division
How would the number +1234 be stored if a PIC clause of PICTUREs9(4) comp-3 were used?
How many maximum number of procedures can we write in one COBOL program?
1.Can we define condition-name conditions in FD entry.
What is perform what is varying?