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 / ajith
(a)
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is rmode(24)
How can we find that module can be called – whether DYNAMICALLY or STATICALLY?
What are literals?
How do define dynamic array in cobol.
What are the pertinent COBOL commands?
what is the use of outrecord?
What is cobol?
What is the problem of ordered sequential files access?
How arrays can be defined in COBOL?
What rules are followed by the search verb.
How to change size of Initial number of records to *NOMAX for ALL PF files from perticular library, how can I do that
Write down the divisions of cobol program?
Mention the guidelines to write a structured cobol program?
Give some examples of command terminators?
What is the default value(s) for an initialize and what keyword allows for an override of the default?