Your COBOL application needs to create a new file and write data to it. Which file access mode should be used for this purpose?
- EXTEND
- I-O
- INPUT
- OUTPUT
For creating a new file and writing data to it, the correct file access mode is OUTPUT. This mode is used to write records to a file and create a new file if it does not exist. It does not allow reading or updating existing records.
Loading...
Related Quiz
- Which COBOL intrinsic function is commonly used to manipulate date and time values?
- How does exclusive file locking differ from shared file locking in terms of access permissions?
- Your COBOL program needs to process a large dataset of financial transactions that must be read in a specific order. Which file processing technique is most appropriate?
- In a COBOL program that reads data from a file, you encounter an "AT END" condition. What action should be taken to handle this error gracefully?
- In a COBOL program for a bank, you need to determine the account type and apply specific rules based on the account type (e.g., savings, checking, or credit card). Which conditional statement is best suited for this complex decision-making process?