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
Explain how will you differentiate between an internal and an external sort, the pros and cons, internal sort syntax etc
How do define dynamic array in cobol.
Explain how to differentiate call by context by comparing it to other calls?
Difference between array and sub-script ?
I have a File that has duplicate records. I need only those records that occur more than thrice.?
How can we find that module can be called – whether DYNAMICALLY or STATICALLY?
What is the default value(s) for an initialize and what keyword allows for an override of the default?
How to find out the closest prime number of an input number? I believe it has something to do with SEARCH and COBOL Linear Array.
how to access the file from prodution from changeman tool and to submit a file to production
How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?
what are decleratives in cobol?
Which is not true about evaluate statement
What is the difference between PIC 9.99 and PIC9v99?
Differentiate between structured cobol programming and object-oriented cobol programming.
What is perform what is varying?