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 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 FUSE - IBM MQ - CICS integration error Kevin Vaz CICS 0 Mon Sep 18, 2017 4:31 pm
No new posts Reply MQ open error Vignesh Sid COBOL Programming 5 Thu Sep 07, 2017 6:02 pm
No new posts Error in SQL-PLIST3 'Above value tru... rikdeb DB2 4 Wed Sep 06, 2017 1:34 pm
This topic is locked: you cannot edit posts or make replies. Extract all "IF" Statements... Adarsh Damodaran CLIST & REXX 1 Wed Sep 06, 2017 9:28 am
No new posts WER268A OUTREC STATEMENT : SYNTAX E... frozenblood87 SYNCSORT 12 Sat Aug 26, 2017 9:45 pm

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