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 |
Can we use icetool in cobol program?
What is comp-1 and comp-2?
How can we find out wether to declare the data items like Integer, Char,Comp? If comp types how can we decide wether it is Comp and Comp3.How it is? Please Explain... Cheers.
How do you code cobol to access a parameter that has been defined in jcl? And do you code the parm parameter on the exec line in jcl?
How to remove 2 duplicate records and copy only one using job control language?
If we use GO BACK instead of STOP RUN in cobol?
There are 5 fields and 1000 records in a file. Unload it into an array. Write the syntax for declaration and how will you unload it.
What is difference between static and dynamic call in cobol?
01 a pic 9(3) value is 123 01 b pic 9(6) move a to b wht will be the value ? and 01 a pic x(6) value is abc 01 b pic x(3) move a to b wht will be the value ?
What is report-item?
How to find out the closest prime number of an input number? I believe it has something to do with SEARCH and COBOL Linear Array.
What are literals?