Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

VSAM File opening in the output mode

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
kbmkris

Active User


Joined: 24 Jun 2006
Posts: 101

PostPosted: Tue Jul 03, 2007 6:28 pm    Post subject: VSAM File opening in the output mode
Reply with quote

hi,

In the below code, the VSAM file is initially opened in the output mode and then it is closed in the next line itself. after that it is again opened in the i-o mode. Please let me know why the vsam file is opened like this?

Code:
OPEN OUTPUT FE-VSAM-FILE.
CLOSE FE-VSAM-FILE.     
                         
OPEN I-O FE-VSAM-FILE.   


Can anyone tell me how to look for the documents in this forum? I need some document to understand the VSAM file handling in COBOL.

Thanks,
Bala
Back to top
View user's profile Send private message

dick scherrer

Site Director


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

PostPosted: Tue Jul 03, 2007 7:21 pm    Post subject:
Reply with quote

Hello,

The initial open/close is to prevent a possible error when the file is opened i-o.

If you click on the "Manuals" link at the top of the page, you will see a list of links to the current IBM product manuals. There is a VSAM services manual and several COBOL manuals. Coding info is in the COBOL manuals.
Back to top
View user's profile Send private message
kbmkris

Active User


Joined: 24 Jun 2006
Posts: 101

PostPosted: Tue Jul 03, 2007 7:23 pm    Post subject:
Reply with quote

dick,

Could you tell me what you are referring as a possible error?

Thanks for the manual information.

Thanks,
Bala
Back to top
View user's profile Send private message
dick scherrer

Site Director


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

PostPosted: Tue Jul 03, 2007 7:29 pm    Post subject:
Reply with quote

You're welcome icon_smile.gif

When a "new" vsam file is opened without being "initialized" an error is raised (don't recall exactly which one just now, but i believe it is mentioned in some other topics). Opening/closing the file as output prevents the i-o open from being confused.
Back to top
View user's profile Send private message
kbmkris

Active User


Joined: 24 Jun 2006
Posts: 101

PostPosted: Tue Jul 03, 2007 7:33 pm    Post subject:
Reply with quote

Thanks dick:-) I will refer the manual and come back if i am not able to get clear.
Back to top
View user's profile Send private message
dick scherrer

Site Director


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

PostPosted: Tue Jul 03, 2007 8:35 pm    Post subject:
Reply with quote

Someone will be here icon_smile.gif
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 10 Tue May 16, 2017 2:20 pm
No new posts find RACF group for access to spooled... jzhardy JCL & VSAM 1 Mon May 08, 2017 11:46 am
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts Issue with NDM process to transmit ES... chetanambi All Other Mainframe Topics 6 Wed May 03, 2017 10:52 am
No new posts File processing vishwakotin Mainframe Interview Questions 9 Fri Apr 28, 2017 11:38 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us