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


Please Help Members By Posting Answers For Below Questions

Why did you choose to work with ibm mainframe cobol programming?

641


what is search and searchall?what is the diffrence between them?give an best example?

5588


what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.

8189


Can we redefine the field of x(200) to less than 200?

839


What are the different rules to perform a Search?

625






Explain about different table spaces.

658


Write a program that uses move corresponding.

686


What is the compute verb? How is it used?

673


What is the utilization of copybook in cobol?

671


I have a File that has duplicate records. I need only those records that occur more than thrice.?

8685


What are the different data types in cobol?

801


Is it possible that the redefines clause has different picture clauses compared to the one it redefined?

683


How to print 10 to 1 if the input have only 10 digit number?

826


For rewrite, why is it mandatory that file needs to be opened?

631


What is amode(24)?

689