To get Volume Serial Number for Uncatalog Dataset

In this Mainframe Forum - You can post your queries on JCL, OS/390 JCL, MVS JCL, z/OS JCL, JES2 & JES3

Moderators: Frank Yaeger, DikDude, Moderator Group

Post Reply
tamilselvan.sampath
Member
Posts: 26
Joined: Mon Jan 23, 2012 11:17 pm

To get Volume Serial Number for Uncatalog Dataset

Post by tamilselvan.sampath » Mon Feb 25, 2013 9:29 pm

Hi All,

Need yours help...

I need to find the Volume Serial Number for uncatalog dataset...


Please give me some inputs...

William Collins
Active Member
Posts: 732
Joined: Thu May 24, 2012 4:07 am

Post by William Collins » Mon Feb 25, 2013 9:42 pm

How did it become uncatalogued? If you look at the messages from the step which created the dataset, you'll see the volume.

tamilselvan.sampath
Member
Posts: 26
Joined: Mon Jan 23, 2012 11:17 pm

Post by tamilselvan.sampath » Mon Feb 25, 2013 10:01 pm

Hi William,


Its GDG Versions, So its uncataloged..Then that is created long time back..Can we able to get it ?Its urgent..please give input....

diwz
Member
Posts: 44
Joined: Sun Feb 10, 2013 10:39 am

Post by diwz » Mon Feb 25, 2013 11:37 pm

Use VTOC (Volume Table of Contents) in FileAid 3.8 option.
Since you have said it is a GDG version, you can search using your base GDG name in the available volume serial numbers in MVS. You should know how many vol serials are available for your MVS environment.

William Collins
Active Member
Posts: 732
Joined: Thu May 24, 2012 4:07 am

Post by William Collins » Mon Feb 25, 2013 11:58 pm

If you mean it is a Generation of a Generation Data Group (Versions are possible, but rare), and you haven't mentioned how it got uncatalogued other than "So its uncataloged" can we assume it just "rolled off" the "end" when the maximum number of Generations were catalogued? It may be gone, for good.

You haven't mentioned whether the VOLUME is DASD or TAPE? If DASD, go with what diwz has suggested. If tape, talk to your tape management people. They probably have some historic data available, if not they should have periodic back-ups of the tape management system itself, where they may be able to get something.

tamilselvan.sampath
Member
Posts: 26
Joined: Mon Jan 23, 2012 11:17 pm

Post by tamilselvan.sampath » Tue Feb 26, 2013 6:58 am

Hi William,


Ya your are correct..Its rolled off when the maximum number of Generations were catalogue

Thanks william...

Let me try...

tamilselvan.sampath
Member
Posts: 26
Joined: Mon Jan 23, 2012 11:17 pm

Post by tamilselvan.sampath » Tue Feb 26, 2013 6:59 am

Hi diwz,


Thanks...Let me try...

Anuj Dhawan
Moderator
Posts: 1625
Joined: Sat Aug 09, 2008 9:02 am
Location: Mumbai, India

Post by Anuj Dhawan » Tue Feb 26, 2013 6:39 pm

I hope you're not talking about "orphan GDG generations" because someone used GDG delete with FORCE?
Regards,
Anuj

tamilselvan.sampath
Member
Posts: 26
Joined: Mon Jan 23, 2012 11:17 pm

Post by tamilselvan.sampath » Tue Feb 26, 2013 9:33 pm

Hi Dhawan,

This is not that case..

Thanks

tamilselvan.sampath
Member
Posts: 26
Joined: Mon Jan 23, 2012 11:17 pm

Post by tamilselvan.sampath » Tue Feb 26, 2013 9:36 pm

Hi diwz,

Thanks for your help...its working..Is that possible to get what is the utility behind that...

Because we need to run in production by using JOB..

Please help on this..

diwz
Member
Posts: 44
Joined: Sun Feb 10, 2013 10:39 am

Post by diwz » Wed Feb 27, 2013 2:23 pm

Here is the JCL step that use FILEAID options to get volume serial numbers and datasets in the volume.

Code: Select all

//STEP01   EXEC PGM=FILEAID                                    
//*                                                            
//SYSUDUMP DD  SYSOUT=*                                        
//SYSPRINT DD  SYSOUT=*                                        
//SYSLIST  DD  SYSOUT=*                                        
//SYSTOTAL DD  SYSOUT=*                                        
//SYSIN    DD  *                                               
$$DD01 VTOCDSN  UNIT=3390,DSNAME=A056707.FILEAID.ZADD  - searches and displays the file attributes under the specified UNIT.
$$DD01 VTOCDSN  VOLSER=VZCE01,DSNAME=A056707.FILEAID.ZADD - searches and displays the file attributes under the specified VOLSER.      
/*
SYSOUT for $$DD01 VTOCDSN VOLSER=VZCE01,DSNAME=A056707.FILEAID.ZADD looks like below

Code: Select all

27 FEB 2013             FILE-AID 9.2.0 PRINT FACILITY    04:20:11  PAGE     1  
                         VTOC LIST FOR VOLUME VZCE01                           
VTOC:   1800 TRACKS   (  17 % USED)   74657 FREE DSCB'S             1 DATASETS 
VOL:  150255 TRACKS   (  85 % USED)      15 TRACKS/CYLINDER         0 ALT TRKS 
FREE:   1365 CYLINDERS (  1052 MAX)   22135 TRKS   15780 MAX)     626 FREE XTNT
  ----- D A T A S E T   N A M E -------------- ORG   TRKS %USED XTS=           
  A056707.FILEAID.ZADD                         PS      15    0     1           

diwz
Member
Posts: 44
Joined: Sun Feb 10, 2013 10:39 am

Post by diwz » Thu Feb 28, 2013 1:04 pm

Did you try?

diwz
Member
Posts: 44
Joined: Sun Feb 10, 2013 10:39 am

Post by diwz » Sat Mar 02, 2013 10:54 am

Did you find any other way to do it? Let us know as well.

Post Reply

FREE TUTORIALS

Tutorials
Free tutorials from mainframegurukul
  • JCL Tutorial
    Covers all important JCL concepts.
  • Cobol Tutorial
    This tutorials covers all Cobol Topics from STRING to COMP-3.
  • DB2 Tutorial
    DB2 Tutorial focuses on DB2 COBOL Programming.
  • SORT Tutorial
    This Tutorial covers all important aspects of DFSORT with examples
  • CICS Tutorial
    This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions



Other References
Mainframe Tools and others