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

where will we code call by content and call by reference dude pls reply soon ?

2 Answers  


How to define variable 9(20) in COBOL, because compiler does not allow us to declare variables with Pic 9(18). Can anyone please let me know the answer... I know one answer to this question which is to use Compiler option Arith (Extend) during Compilation. It extends the maximum limit to 9(32)..Just wanted to know if there is any other way to extend this?

4 Answers   CSC, TCS,


The below is the declaration for a variable ws 01 ws pic 9(3). if you want to insert space how will you do that. in which level u should do it

3 Answers   ADP,


Hai friends why we need to read a file before re-write a record?

7 Answers   L&T,


if i am reading a file with some 50000 records and moving to a DB2 table and suddenly the program abends in between, is there anyway i could restart from the exact record at which the job failed once the program restarts.

2 Answers   UST,






How To Separate The Numerics From An Alphanumric Data Item Which Contains Both Alphabates And Numerics ?

4 Answers  


Can we call a CICS program from a batch program or viceversa?If so, how?

3 Answers  


How To move a value to an array using move verb?

3 Answers   IBM,


Can you call an OS VS COBOL pgm from a VS COBOL II pgm ?

3 Answers   Microsoft,


77 a pic x(4) value '1234' -----> instead of this 'abcd' 77 b pic 9(4) value zeros. move a to b what is the answers for both cases? IS it possible? Give me elementary move rules briefly......

8 Answers  


which one is the best of com and com-3.using of real time ?

7 Answers   Cap Gemini,


i need a small 3d program using inline and outline.

0 Answers  


Categories