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



study the following code 01 A1 05 B PIC 99 05 C PIC X(4) 01 A2 05 B ..

Answer / ram.g

there is nothing wrong....

Is This Answer Correct ?    15 Yes 1 No

study the following code 01 A1 05 B PIC 99 05 C PIC X(4) 01 A2 05 B ..

Answer / dimpy19

c.there is nothing wrong
WORKING-STORAGE SECTION.
01 A1.
05 B PIC 99.
05 C PIC X(4).
01 A2.
05 B PIC 99V99.
05 C PIC A(4).
PROCEDURE DIVISION.
DISPLAY 'HELLO'.
STOP RUN.

Is This Answer Correct ?    0 Yes 0 No

study the following code 01 A1 05 B PIC 99 05 C PIC X(4) 01 A2 05 B ..

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

study the following code 01 A1 05 B PIC 99 05 C PIC X(4) 01 A2 05 B ..

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

Post New Answer

More COBOL Interview Questions

Write a program that uses move corresponding.

0 Answers  


what is the use of comp2 ? where can we use it with example ?

3 Answers   Covansys,


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.

7 Answers   Financial Services,


how would find total records in files using seqientional

1 Answers   HSBC,


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..

3 Answers   iGate,






plz,could any one tell me? what about EBCDIC in cobol?briefly?

1 Answers  


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

3 Answers   TCS,


When is inspect verb is used in cobol?

0 Answers  


how to check whether the open command of a sequential file is successful? or not?

2 Answers   CSC, IBM,


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 ......

4 Answers   Accenture,


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.

1 Answers  


What is the difference between COMP & COMP-3 ?

2 Answers  


Categories