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

 
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: 8166
Location: East Dubuque, Illinois, USA

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 IEW2456E error when link-editing a C ... Senthilraj JCL & VSAM 0 Fri Oct 13, 2017 3:12 pm
No new posts VSAM RLS Wait time blayek JCL & VSAM 2 Mon Oct 02, 2017 9:05 pm
No new posts FTP Skip or ignore error and process ... AJAYREDDY All Other Mainframe Topics 3 Wed Sep 27, 2017 8:12 pm
No new posts Assembler Macro Copybook converted to... Ziquilix PL/I & Assembler 4 Tue Sep 26, 2017 3:07 am
No new posts FUSE - IBM MQ - CICS integration error Kevin Vaz CICS 1 Mon Sep 18, 2017 4:31 pm

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