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 |
Write a program that uses move corresponding.
what is the use of comp2 ? where can we use it with example ?
How to delete leading spaces/blank in COBOL ? Example:- 01 data-name-1 pic x(220) " English is a language". I would like to delete leading spaces.
how would find total records in files using seqientional
I have a Main Program which is calling Sub-Program which is a DB2 pgm. What will happen if I am not closing the cursor used in the Sub-program? Please advise..
plz,could any one tell me? what about EBCDIC in cobol?briefly?
Read filea And file b write the same records in both files? Records in a but not in b record in b but not in a
When is inspect verb is used in cobol?
how to check whether the open command of a sequential file is successful? or not?
I have program P1 which calls file F1 which has 100 records and following structure 001 .................. 002 .................. 003 .................. 098 .................... 099 ................... 100 .................... Now I want to read these files and write these records in file F2 in following manner. 001 ...... 051 ..... 002 ...... 052 ..... 003 ...... 053 ..... .......... ....... .......... ....... .......... ....... 048 ........ 098 ...... 049 .......... 099 ....... 050 .... 100 ......
Hi Guys, I have faced one interview question if I have requirement to add 5 new columns to existing table what are prerequisite do i need to take.
What is the difference between COMP & COMP-3 ?