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 / guest
a
| Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
1.give the details about WHEN OTHER. 2. how many form are available in evaluate.
what is the difference between COBOL2 AND COBOL390?
What is amode(24), amode(31), rmode(24) and rmode(any) (applicable to only mvsesa enterprise server) ?
2 input fles: 2 flat files, with different number of records. both are having unique key for each record and already sorted in ascending order . match these files using unique key and in output only matching key value has to be written. please procide cobol logic
What is amode(31)
Write a program to explain size error.
What rules are to be followed while using the corresponding options?
What are the different rules to perform a Search?
How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?
how do you reference the esds vsam file formats from cobol programs
How do you reference the following file formats from cobol programs?
What is the default value(s) for an initialize and what keyword allows for an override of the default?
Write a program to enter and display the names of students in a class using the occurs clause.
For rewrite, why is it mandatory that file needs to be opened?
What are INPUT PROCEDURE and OUTPUT PROCEDURE?