IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Updating a file in DISP=SHR


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
vaibhavkolhe

New User


Joined: 24 Feb 2005
Posts: 11

PostPosted: Wed May 13, 2009 2:39 pm
Reply with quote

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
View user's profile Send private message
UmeySan

Active Member


Joined: 22 Aug 2006
Posts: 771
Location: Germany

PostPosted: Wed May 13, 2009 2:45 pm
Reply with quote

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
View user's profile Send private message
Bill Dennis

Active Member


Joined: 17 Aug 2007
Posts: 562
Location: Iowa, USA

PostPosted: Thu May 14, 2009 6:39 am
Reply with quote

Don't forget to test with concurrent file updates. See if you get run-time error or bad data.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu May 14, 2009 7:09 am
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
Search our Forums:

Back to Top