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 is link edit in cobol?
How many bytes S(8) comp field occupy and its maximum value?
How many sections are there in data division in COBOL?
How did the release of cobol/370 version 1.3 improve the performance of release 1.1?
how do you reference the rrds file formats from cobol programs
What is amode(24)?
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 is static and dynamic call in cobol?
How do you get the data to code the BMS macro?
Name the divisions, which are available in a cobol program?
What are the pertinent COBOL commands?
What is the local-storage section?
What are various search techniques in cobol? Explain.
Write the code implementing the perform … varying.
How to know whether the module is dynamical or statistical?