View previous topic :: View next topic
|
Author |
Message |
srajanbose
New User
Joined: 11 Oct 2004 Posts: 69 Location: chennai
|
|
|
|
could anyone let me know if i tried to closing a file in cobol without open what will happen |
|
Back to top |
|
|
CICS Guy
Senior Member
Joined: 18 Jul 2007 Posts: 2146 Location: At my coffee table
|
|
|
|
If VSAM, file status 42 will occur.
For non VSAM, possibly the EXCEPTION/ERROR procedure (if specified) is executed. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
could anyone let me know if i tried to closing a file in cobol without open what will happen |
It would depend on the way the program was written.
You might get some file status (if provided for) or an abend.
There is also a jcl consideration. If the disp is set as old,delete, the file would be deleted. . . |
|
Back to top |
|
|
|