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
How to remove 2 duplicate records and copy only one using job control language?
explain sorting techniques in cobol program?
Why occurs cannot be used in 01 level in COBOL?
what are decleratives in cobol?
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
What is the difference between comp and comp-3 usage?
How did the release of cobol/370 version 1.3 improve the performance of release 1.1?
How arrays can be defined in COBOL?
What is perform what is varying?
What is the difference between structured cobol programming and object alternativelyiented cobol programming?
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
How are the next sentence and continue different from each other?
) what is the difference between AID and HANDLE AID?
What are the various section in data division and briefly explain them.
what is the difference between COBOL2 AND COBOL390?