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 the difference between binary search and sequential search?
here is my requirement A1 is alphanumeric with value 'A1B2C3D4' as defined below 05 A1 PIC X(8) VALUE IS 'A1B2C3D4' but i need to have A2,A3 as ABCD & 1234 repectively...... A2 = ABCD A3 = 1234 Can you please explain me what are the different ways to do it?
What is Pic 9v99 Indicates in COBOL?
What is the LINKAGE SECTION used in COBOL?
what is s000 u4087 error? please give the all error codes in cobol,jcl.
What is the usage of comp fields in cobol?
What is the local-storage section?
What is a report item?
What is the difference between structured cobol programming and object alternativelyiented cobol?
What is the problem of ordered sequential files access?
How do get the result of your program directly on your pc?
In COBOL programming, what is PERFORM? What is VARYING?
How do define dynamic array in cobol.
Which division and paragraphs are mandatory for a COBOL program?
What are the pertinent COBOL