we can use set true for condition names..
similarly can we code set to false in cobol pgm?
will it work?
Answer Posted / 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 |
Post New Answer View All Answers
What are the pertinent COBOL commands?
I have a File that has duplicate records. I need only those records that occur more than thrice.?
how do you reference the variable block file formats from cobol programs
What are the various section in data division and briefly explain them.
Are you comfortable in cobol or jcl?
What the difference is between continue and next sentence?
How to remove 2 duplicate records and copy only one using job control language?
Which division and paragraphs are mandatory for a COBOL program?
What is amode(24)?
How do u write test cases?
How do we get current date from system with century in COBOL?
how we sort two input files based on a common column and giving one o/p file please send me the coding logic?
What is the difference between Call and a Link?
What are the different rules for performing sort operation?
Which Search verb is equivalent to PERFORM…VARYING?