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 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 XML Parse for COBOL 5.2 Bhanu Praveen COBOL Programming 1 Sat Jul 08, 2017 8:58 pm
No new posts Writing a file using online program grvtomar PL/I & Assembler 3 Fri Jun 30, 2017 1:06 pm
No new posts pre-compiler for program in an HFS Pedro DB2 0 Fri Jun 23, 2017 11:13 pm
No new posts Dynamic output file creation in cobol... smileheal COBOL Programming 7 Thu Jun 15, 2017 10:53 pm
No new posts Search utility(3.14) using JCl and Cobol RKS3 COBOL Programming 12 Sat Jun 10, 2017 10:24 pm


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