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...

a. Can the OPTIONAL clause in COBOL only be coded for input
files?
b. If it is coded for files opened in OUTPUT, I-O or EXTEND
mode, will it give a compilation error?
c. If there are no compilation errors and if such files are
not coded in the JCL, will the OPEN statement run fine when
these files are opened?
d. How will a WRITE statement work for the above files?

Answer Posted / kb

An OPTIONAL file is being opened as EXTEND or I-O. Optional
files are files that are not necessarily present each time
the program is run. You can define files opened in INPUT,
I-O, or EXTEND mode as optional by using the SELECT OPTIONAL
phrase in the FILE-CONTROL paragraph.

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we change the password using ALTER? anyone tried and changed?

2075


Can you please let me know the centre name of INS certification in Kolkata.

2284


Explain how you can characterize tables in cobol?

1110


write a cobol logic. i have file that has 10 records .1 record go to first output file and second record goes to 2 output and etc

1292


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

10005


System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..

2133


Describe the cobol database components?

1215


What is a SSRANGE and NOSSRANGE?

1525


What is the difference between next sentence and continue in cobol programing language?

1274


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

2185


Why is it necessary that file needs to be opened in I-O mode for REWRITE?

1381


What are all the divisions of a COBOL program?

1267


What are literals?

1183


How to find out the closest prime number of an input number? I believe it has something to do with SEARCH and COBOL Linear Array.

4204


Write the code implementing the perform … varying.

1119