IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

VSAM open Error in COBOL program


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
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
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: 2146
Location: At my coffee table

PostPosted: Sun Jun 20, 2010 12:22 am
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts Using API Gateway from CICS program CICS 0
No new posts Error to read log with rexx CLIST & REXX 11
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts Error when install DB2 DB2 2
Search our Forums:

Back to Top