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
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Mainframe Opening in Chennai ( 2 to 4... muralikrishnan_new Mainframe Jobs 0 Tue Jul 18, 2017 2:20 pm
No new posts Write out NODUPS but just from one file Jay Villaverde DFSORT/ICETOOL 8 Fri Jul 14, 2017 12:44 am
No new posts How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm
No new posts How to generate a new unique Input fi... for1ranjith CLIST & REXX 11 Sat Jul 01, 2017 12:09 pm


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