File opening modes in cobol and corresponding dispositions?

Showing Answers 1 - 11 of 11 Answers

hari

  • Dec 29th, 2005
 

File opening modes are

Input mode , output mode, extend mode, inputoutput mode.

Inputmode--------  "Read" the file

outputmode--------"write" the record.

extend mode--------"appeand" the records.

i/o mode-------------"read or write" any thing.

  Was this answer useful?  Yes

umapathi

  • Jul 21st, 2006
 

File opening modes are

Input mode , output mode, extend mode, inputoutput mode. corresponding disposition codes in JCL.

Inputmode--------  "Read" the file       SHR    (DISP)

outputmode--------"write" the record.   NEW

extend mode--------"appeand" the records.   MOD

i/o mode-------------"read or write" any thing.  NEW 

pl correct me if i am wrong.

  Was this answer useful?  Yes

Anki

  • May 7th, 2015
 

For I/O mode:
DISP = OLD
It cant be new, as if the file does not exist, we cannot read it.

  Was this answer useful?  Yes

nder

  • Aug 2nd, 2016
 

3 modes.
Read, Write, Read-write depending on the data processing.

  Was this answer useful?  Yes

Anand

  • Oct 25th, 2016
 

Read - INPUT - SHR, OLD
Write - OUTPUT - NEW, OLD
Rewrite - IO - OLD
Append - EXTEND - MOD

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions