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 open Error in COBOL program

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
ramgn123

New User


Joined: 18 Jun 2010
Posts: 1
Location: Mumbai

PostPosted: Sat Jun 19, 2010 11:37 pm    Post subject: VSAM open Error in COBOL program
Reply with quote

Hi,

I am a new user to this form. Greetings to All. I have a question below

If we are trying to write into an EMPTY VSAM file through a batch COBOL program, it will fail with a VSAM OPEN ERROR. But what about in CICS ? Will it be possible to write into an EMPTY VSAM file though an Online Cobol program ??
Back to top
View user's profile Send private message

CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2150
Location: At my coffee table

PostPosted: Sun Jun 20, 2010 12:22 am    Post subject: Re: VSAM open Error in COBOL program
Reply with quote

ramgn123 wrote:
If we are trying to write into an EMPTY VSAM file through a batch COBOL program, it will fail with a VSAM OPEN ERROR.
Huh? Did you look at the manual?
1.10.3.2.1 Opening an empty file
To open a file that has never contained records (an empty file), use a form of the OPEN statement.
Depending on the type of file that you are opening, use one of the following statements:
OPEN OUTPUT for ESDS files.
OPEN OUTPUT or OPEN EXTEND for KSDS and RRDS files.

Quote:
But what about in CICS ? Will it be possible to write into an EMPTY VSAM file though an Online Cobol program ??
Why would you think that you couldn't write to an empty file in CICS while you can in batch?
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 -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Where to get sample for processing RM... vice_versa PL/I & Assembler 2 Tue Jan 16, 2018 2:03 pm
No new posts VSAM dataset not found abdulrafi JCL & VSAM 5 Fri Jan 12, 2018 11:19 am
No new posts KSDS and Index file in cobol deepak14450 COBOL Programming 9 Fri Dec 22, 2017 9:36 am
No new posts ISSUE IN copying Sequential file reco... thesumitk JCL & VSAM 2 Wed Dec 13, 2017 3:07 pm
No new posts The same REXX program doesnt work for... jackzhang75 CLIST & REXX 5 Wed Dec 06, 2017 2:51 am

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