Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 File Tailoring -- Temporary dataset i... samzee71 CLIST & REXX 3 Fri Dec 01, 2017 3:12 am
No new posts Rexx - File tailoring samzee71 CLIST & REXX 10 Thu Nov 30, 2017 10:47 pm
No new posts Compare VSAM files using DFSORT pshongal DFSORT/ICETOOL 5 Thu Nov 23, 2017 10:24 am
No new posts Moving a PS file as body of a mail! Vignesh Sid JCL & VSAM 4 Tue Nov 21, 2017 9:23 pm
No new posts unable to set RC = 4 when empty file migusd SYNCSORT 1 Tue Nov 21, 2017 1:21 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us