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

) How do u handle errors in BMS macro

2051


What rules are to be followed while using the corresponding options?

1069


Write some characteristics of cobol as means of business language.

1143


2 input fles: 2 flat files, with different number of records. both are having unique key for each record and already sorted in ascending order . match these files using unique key and in output only matching key value has to be written. please procide cobol logic

2590


What is the difference between comp and comp-3?

1185


) what is the difference between AID and HANDLE AID?

2154


What is amode(31)

1173


How to remove the spaces at the end of each record in the output file of variable length, via cobol program?

1170


How arrays can be defined in COBOL?

1219


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

1221


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

1326


What is the difference between Call and a Link?

1197


How to change size of Initial number of records to *NOMAX for ALL PF files from perticular library, how can I do that

3234


Have you used comp and comp-3 in your project? And how?

2485


How do you differentiate between cobol and cobol-ii?

1210