What is the output generated by the following code?
01 GRP-I.
05 SUBFLD1 PIC XX VALUE "AB".
05 FILTER PIC X(6) VALUE SPACES.
01 GRP-2 REDEFINED GRP-1.
05 SUB-FLD2 PIC XX.
05 SUB-FLD3 PIC XX.
05 FILTER PIC X(4).
IF SUB-FLD1 NOT = SPACES
DISPLAY "SUBFLD1"
MOVE "ABBCCD" TO GRP-1
IF SUB-FLD3 = SPACES
DISPLAY "SPACES"
ELSE
DISPLAY "SUBFLD3"
DISPLAY "END"
ELSE
DISPLAY "SPACES"
DISPLAY "END".
(a) SUBFLD1
SUBFLD3
END
(b) SPACES
END
(c) SUBFLD1
END
(d) SUBFLD1
SPACES

Answer Posted / muttaiah

I guess we will get Maxcc - 8 when we compile. Because
SUB-FLD1 is not declared anywhere here. If the field has to
be SUBFLD1 by typo mistake.
Then answer would be (a).

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to remove 2 duplicate records and copy only one using job control language?

725


explain sorting techniques in cobol program?

678


Why occurs cannot be used in 01 level in COBOL?

704


what are decleratives in cobol?

1816


i made it to stage 3 of an interview process wednessday they will quiz my knowledge again face to face for an analyst role recruiter said it will be based on Business requirements system is cobol and good ideas what they might ask etc

2093






What is the difference between comp and comp-3 usage?

669


How did the release of cobol/370 version 1.3 improve the performance of release 1.1?

631


How arrays can be defined in COBOL?

654


What is perform what is varying?

693


What is the difference between structured cobol programming and object alternativelyiented cobol programming?

696


can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there

1829


How are the next sentence and continue different from each other?

753


) what is the difference between AID and HANDLE AID?

1626


What are the various section in data division and briefly explain them.

681


what is the difference between COBOL2 AND COBOL390?

2437