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

How to open a QSAM file multiple times in a program


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

New User


Joined: 05 Sep 2005
Posts: 12
Location: P.R.C

PostPosted: Fri Oct 07, 2005 3:53 pm
Reply with quote

Hi,
When I OPEN file1(qsam file), close file1, then open file1 again, abend occurs. Who can tell me how to open same file(this is qsam file) for multiple times in one program.
thanks

best regards
Back to top
View user's profile Send private message
Sridevi_C

Active User


Joined: 22 Sep 2005
Posts: 104
Location: Concord, New Hampshire, USA.

PostPosted: Fri Oct 07, 2005 6:43 pm
Reply with quote

Hi,
Only if you have specified WITH LOCK option in CLOSE file,you will not be allowed to open the same file in the same program again.Otherwise,it's possible to open it.Check your file status at different points.Let us know what abend you are getting.
Regards,
Sridevi.
Back to top
View user's profile Send private message
husj

New User


Joined: 05 Sep 2005
Posts: 12
Location: P.R.C

PostPosted: Sat Oct 08, 2005 2:45 pm
Reply with quote

Sridevi.

Thanks for your help very much. I will try again.

best regards

Jerry
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 How to split large record length file... DFSORT/ICETOOL 8
No new posts Using API Gateway from CICS program CICS 0
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
Search our Forums:

Back to Top