we can use set true for condition names..
similarly can we code set to false in cobol pgm?
will it work?
Answer / shakilaashwin
you can use 'SET condition-name TO FALSE' but with little
change in the data item declaration
Example is below :
01 WS-EOF-FLAG PIC X(1)VALUE 'N'.
88 WS-EOF-FLAG-N VALUE 'N' WHEN SET FALSE 'Y'.
PROCEDURE DIVISON.
100-MAIN-PARA.
DISPLAY 'PROG STARTS'.
DISPLAY 'FLG VALUE AFTER - ' WS-EOF-FLAG.
SET WS-EOF-FLAG-N TO FALSE.
DISPLAY 'FLG VALUE BEFORE- ' WS-EOFFLAG.
STOP RUN.
| Is This Answer Correct ? | 8 Yes | 9 No |
Differentiate between structured cobol programming and object-oriented cobol programming.
consider the following PROCEDURE DIVISION entry OPEN EXTEND IN-FILE identify the correct statement a.organization of IN-FILE is sequential and records can be added in the beginning b.organization of IN-FILE is sequential and records can be added in the end c.organization of IN-FILE is indexed and records can be added in the beginning d.organization of IN-FILE is indexed and records can be added in the end
in cobol perform stmt whether it first checks the condition or not
how to transfer the file from pc to mainframe??
What is an index for tables?
What is an in-line perform ?
Which is not true about evaluate statement
The order of precedence of arithmetic operators in an expression can be overridden with the use of (a) [] (b) () (c) {} (d) Any of the above
how to create temporary data set in jcl? what is the use?
3 Answers Cap Gemini, Temenos,
wht happens if we dnt give scope terminator ?
using redefine can you redefine lower variable size to higher variable size?
When the working storage variables get allocated? a.At Compile time b.At starting of the run time c.At end of the run time. d.None of these