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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> IBM Tools
View previous topic :: :: View next topic  
Author Message
Shubhi Saxena

New User


Joined: 31 Jul 2008
Posts: 8
Location: NOIDA

PostPosted: Thu Sep 03, 2009 2:48 pm    Post subject: VSAM open error
Reply with quote

Hi,

I copied an empty VSAM into another VSAM file using file manager.
When I try to open the first file using file manager, the file opens and the message " Input data set empty" is displayed.
But when I try to open the file that has been copied , I am not able to open the file and I get a message "Data set empty" using file manager. When I try to initialize it in the batch process, then to the file does'nt open and the job aends with user abend 4049.

Can anyone please suggest why this is happening and what can be done to rectify it ?
Back to top
View user's profile Send private message

himanshu7

Active User


Joined: 28 Aug 2007
Posts: 131
Location: At Desk

PostPosted: Thu Sep 03, 2009 4:43 pm    Post subject:
Reply with quote

Hi,

When VSAM files are empty and we try to open it, it gives an error VSAM 160 error code. If opened without any tool like print ids (/) ch and when tried with any tool like file manager or file-aid it displays empty dataset.

Please open the i/p file in edit mode using FM and insert any dummy rec and then copy it to the O/P VSAM file.

You can also do the initialization using REPRO to avoid the error.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7931
Location: Bellevue, IA

PostPosted: Thu Sep 03, 2009 4:52 pm    Post subject:
Reply with quote

Your first file has had at least one record inserted and then deleted. This initializes the file and allows it to be opened. Since you did not do that for your second file, you get the error message. You do not say what your batch process is, but you will need to open the second file file for OUTPUT (NOT I-O or INPUT), write a record to the file, and then it will open. You can delete the record from the file if you want, but until something has been written to the VSAM file, it cannot be opened.
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 -> IBM Tools All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts how to recover an uncataloged VSAM da... archanamuthukrishnan All Other Mainframe Topics 3 Wed Jan 11, 2017 6:18 pm
No new posts OO COBOL compile error Virendra Shambharkar COBOL Programming 3 Tue Jan 10, 2017 6:05 pm
No new posts Underlying DB2 VSAM LDS - SMF recording vasanthz All Other Mainframe Topics 6 Thu Jan 05, 2017 4:20 am
No new posts S922 Error yuvan ABENDS & Debugging 3 Fri Dec 02, 2016 6:58 pm
No new posts Invoke Webservice Fails with DFHPI100... divated CICS 2 Thu Nov 24, 2016 5:57 pm


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