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
 

 

DELETE and disappearing NVRs

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
Willem Vermeer

New User


Joined: 31 Oct 2007
Posts: 38
Location: Amsterdam, the Netherlands

PostPosted: Tue Feb 07, 2012 6:42 pm    Post subject: DELETE and disappearing NVRs
Reply with quote

Greetings.

First, something on our environment. We're running z/OS V1R11 and z/OS V1R11.

Now our problem. I have a couple of productionjobs, run by people who do versionmanagement of all kinds of productionstuff (mostly programs). They first transfer data towards the system, that is to be updated, and allocate it there as a <dataset>.NEW.

Then, they run a job in which all the <dataset>s are allocated (in the JCL) with DISP=SHR (Significant? I don't know). This job then does the following:
1 - DELETE the <dataset>.OLD
2 - ALTER <dataset> NEWNAME(<dataset>.OLD)
3 - ALTER <dataset>.NEW NEWNAME(<dataset>)

The strange thing is, that now I find several data sets that [a] have been uncataloged (presumably by a DELETE) and that [b] DO NOT have a NVR in the volume's VVDS. We're dealing with SMS-managed volumes.

The first indication that something was wrong, was the fact that they ran into a DUPLICATE DATA SET-error because the volume still contained a <dataset>.OLD. So the first ALTER failed. No errormessages have appeared. No IDC3009I or something like that.

Anybody any ideas?

Willem Vermeer
ING Bank
the Netherlands
Back to top
View user's profile Send private message

Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2502
Location: Atlanta, Georgia, USA

PostPosted: Tue Feb 07, 2012 6:46 pm    Post subject: Reply to: DELETE and disappearing NVRs
Reply with quote

Willem,

I'm assuming this is a VSAM KSDS file.

In your ALTER are you issuing this against all three components, Base Cluster, Data and Index?

Mr. Bill
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10210
Location: italy

PostPosted: Tue Feb 07, 2012 6:49 pm    Post subject: Reply to: DELETE and disappearing NVRs
Reply with quote

a quick and dirty reply ...
I remember that the rename of SMS managed dataset was a bit murky
when the old/new HIGH level qualifiers of the datasets were aliased to different user catalogs
but .... as I said a quick and dirty reminiscence icon_smile.gif
Back to top
View user's profile Send private message
Willem Vermeer

New User


Joined: 31 Oct 2007
Posts: 38
Location: Amsterdam, the Netherlands

PostPosted: Tue Feb 07, 2012 6:49 pm    Post subject: Reply to: DELETE and disappearing NVRs
Reply with quote

No, as it happens these jobs don't do their stuff using KSDSes. It's all quite ordinary partitioned data sets (PDS). Not even PDSE.

Willem Vermeer
ING Bank
the Netherlands
Back to top
View user's profile Send private message
Pete Wilson

Active User


Joined: 31 Dec 2009
Posts: 437
Location: London

PostPosted: Tue Mar 20, 2012 4:50 pm    Post subject:
Reply with quote

If the newname hlq alias points to a different usercatalog than the original hlq then the datasets will be renamed but will still be cataloged in the old catalog. They would not be visible through the normal catalog search order, you have to do a listcat with the catalog parameter pointing to the old original catalog. The NVR/VVR's would match the newname and would be visible on the volumes where the datasets reside, but if you printed the volumes VVDS you would see that these have a backward reference to the original hlq catalog. The newname entries could be mergcat'd across from the oldname catalog to the newname catalog and would then be visible normally.

This can be a danger of renaming. It is better to copy to the newname for that reason as the newname would be created and cataloged correctly.
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 -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts JCL to delete component in a package sundaram.naveen Compuware & Other Tools 14 Tue Nov 29, 2016 6:21 pm
No new posts How to delete second instance from Fl... Gunapala CN DFSORT/ICETOOL 6 Tue Oct 18, 2016 11:42 pm
No new posts Delete record or Reset RC code using ... mpawan Compuware & Other Tools 4 Tue Jul 26, 2016 3:52 pm
No new posts Delete VSAM File Records amitc23 CICS 6 Sun Apr 10, 2016 10:10 am
No new posts DB2 Stored Procedure - Dynamic SQL - ... GuyC DB2 2 Wed Feb 17, 2016 5:10 pm


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