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
Why did you choose to work with ibm mainframe cobol programming?
what is search and searchall?what is the diffrence between them?give an best example?
what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.
Can we redefine the field of x(200) to less than 200?
What are the different rules to perform a Search?
Explain about different table spaces.
Write a program that uses move corresponding.
What is the compute verb? How is it used?
What is the utilization of copybook in cobol?
I have a File that has duplicate records. I need only those records that occur more than thrice.?
What are the different data types in cobol?
Is it possible that the redefines clause has different picture clauses compared to the one it redefined?
How to print 10 to 1 if the input have only 10 digit number?
For rewrite, why is it mandatory that file needs to be opened?
What is amode(24)?