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


Please Help Members By Posting Answers For Below Questions

What is link edit in cobol?

947


How many bytes S(8) comp field occupy and its maximum value?

1854


How many sections are there in data division in COBOL?

887


How did the release of cobol/370 version 1.3 improve the performance of release 1.1?

867


how do you reference the rrds file formats from cobol programs

1157


What is amode(24)?

884


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?

1410


What is static and dynamic call in cobol?

785


How do you get the data to code the BMS macro?

1696


Name the divisions, which are available in a cobol program?

925


What are the pertinent COBOL commands?

2828


What is the local-storage section?

889


What are various search techniques in cobol? Explain.

866


Write the code implementing the perform … varying.

822


How to know whether the module is dynamical or statistical?

868