View previous topic :: View next topic
|
Author |
Message |
vaibhavkolhe
New User
Joined: 24 Feb 2005 Posts: 11
|
|
|
|
If I open a file in the OUPUT mode in the COBOL source program and in the JCL it has been specified as DISP=SHR, can I update/add records the file or will it result in a run-time error?
Can anyone send me a the guidelines or provide link to a forum which discusses the dispositions in a JCL and possible modes in COBOL program for file processing?
Thanks,
Vaibhav |
|
Back to top |
|
|
UmeySan
Active Member
Joined: 22 Aug 2006 Posts: 771 Location: Germany
|
|
|
|
Morning Sir !
Why not just test it on your own. One little Cob-Programm and a JCL, just with a hand full of statements.
Afterwards you could be proud to tell us the result. |
|
Back to top |
|
|
Bill Dennis
Active Member
Joined: 17 Aug 2007 Posts: 562 Location: Iowa, USA
|
|
|
|
Don't forget to test with concurrent file updates. See if you get run-time error or bad data. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
What kind of file is this? QSAM, VSAM, PDS. . .?
If you run a test that does not fail, be wary. This does not mean that this will always work correctly. |
|
Back to top |
|
|
|