Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 are the pertinent COBOL commands?

3154


I have a File that has duplicate records. I need only those records that occur more than thrice.?

9847


how do you reference the variable block file formats from cobol programs

1229


What are the various section in data division and briefly explain them.

1156


Are you comfortable in cobol or jcl?

1027


What the difference is between continue and next sentence?

1146


How to remove 2 duplicate records and copy only one using job control language?

1204


Which division and paragraphs are mandatory for a COBOL program?

1254


What is amode(24)?

1219


How do u write test cases?

2055


How do we get current date from system with century in COBOL?

1360


how we sort two input files based on a common column and giving one o/p file please send me the coding logic?

2113


What is the difference between Call and a Link?

1177


What are the different rules for performing sort operation?

1204


Which Search verb is equivalent to PERFORM…VARYING?

1026