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 / muttaiah
I guess we will get Maxcc - 8 when we compile. Because
SUB-FLD1 is not declared anywhere here. If the field has to
be SUBFLD1 by typo mistake.
Then answer would be (a).
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
what is amode(24), amode(31), rmode(24) and rmode(any)?
How did the release of cobol/370 version 1.3 improve the performance of release 1.1?
what happens if parmparameter passes zero bytes to the program
Differentiate between structured cobol programming and object-oriented cobol programming.
What is a scope terminator give example?
System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..
What are all the divisions of a COBOL program?
How do you define a variable of comp-1 and comp-2?
please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?
I have a program with an Array of 5000 occurences which is being passed from 5 sub levels to the front end screen. Thess 5 programs using each 5*2 = 10 different arrays with size as 5000. This is causing the transaction to utilize more storage consupmtion. I am looking to reduce the storage consumption. As part of that initially i thought Dynamic array may solve my problem. After viewing the comments given i see its same as normal array. IS there any other way we can resolve this issue?
What do you understand by psb and acb?
What is cobol?
What is the difference between structured cobol programming and object alternativelyiented cobol programming?
) how do u code after getting data?
Describe the cobol database components?