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

How to list PS and PDS seperatly from VTOC


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Sun Jun 13, 2010 9:54 pm
Reply with quote

Quote:
But, since we are using DUMP here so first it copy all the mentioned qualifier files and after that it deletes the copied files, which is not cost efficient.
see the manual for more details
Quote:
... The data sets are not actually moved to a dump volume.

Deleting Unwanted Data Sets

Quote:
I tried for the same i.e. PARM='TYPRUN=NORUN' . It only select the files. not deleting the files.
see the manual for more details
Quote:
TYPRUN=NORUN
For copy, dump, restore, compress, and release operations, only input data set selection is done without actually processing data sets. Printed output for the run indicates the data sets selected. For a defragmentation operation, the initial volume statistics are printed without actually relocating any extents. For a CONVERTV operation, a full report is produced, but no volumes or data sets are actually converted. For CGCREATE operation, only control card syntax checking is done. The task is not processed.
Back to top
View user's profile Send private message
Rusikesh

New User


Joined: 04 Feb 2010
Posts: 25
Location: United States

PostPosted: Mon Jun 14, 2010 10:31 pm
Reply with quote

HELLO ALL,
Thanks for your guide lines. I have executed the JCL the results are as I expected. However the ADRDSSU utility select only those files which are available on DASD, if I want to select files which are migrated i.e. which are available on TAPE, then i think ADRDSSU utility will be fail for this.
Please share your thoughts for the same
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Mon Jun 14, 2010 10:41 pm
Reply with quote

Hello,

Quote:
My requirement is I want to list PS and PDS seperatly form VTOC.
And then delete all PS having starting qualifier XXXXXX.
It would be good if we can do this using JCL only.

Quote:
However the ADRDSSU utility select only those files which are available on DASD,
Yes, you said the files to be deleted were on dasd/in the vtoc. . .

Suggest you run a listcat and generate hsm deletes for the unwanted files.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue Jun 15, 2010 11:25 am
Reply with quote

Do a search with DELETE MIGRATED as keywords with my id as author and somewhere in the small list you will find the code I posted yonks ago.
Back to top
View user's profile Send private message
Rusikesh

New User


Joined: 04 Feb 2010
Posts: 25
Location: United States

PostPosted: Mon Jun 28, 2010 2:39 pm
Reply with quote

I searched for the same. however I am not able to find out what I require,
Since am not able to findout and delete only ps file available on DASD and some of them are migrated.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Tue Jun 29, 2010 12:50 am
Reply with quote

Hello,

What do you believe you require that is not covered by the info available from the search Expat mentioned?
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue Jun 29, 2010 11:46 am
Reply with quote

Dick,

Looking back over the thread, my code does not differentiate between PS and PDS. Maybe something I'll take a look at when I have some time.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Tue Jun 29, 2010 7:21 pm
Reply with quote

Ooops. . . icon_redface.gif

Don't ya hate when that happens. . .?

d
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue Jun 29, 2010 7:39 pm
Reply with quote

dick scherrer wrote:
Ooops. . . icon_redface.gif

Don't ya hate when that happens. . .?

d

Hey, it happens to the best of us too icon_lol.gif
Back to top
View user's profile Send private message
Rusikesh

New User


Joined: 04 Feb 2010
Posts: 25
Location: United States

PostPosted: Wed Jun 30, 2010 7:19 pm
Reply with quote

Any new idea/guideline..
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed Jun 30, 2010 7:28 pm
Reply with quote

I have just gone through the topic again, and suddenly we have a problem with migrated datasets.

Let's square up a couple of things here.
1) Are you the original poster with multiple user ids.
- If yes, you only wanted DASD datasets in the original post
- If no, exactly what it is that you want to delete which has been migrated. Is it just datasets or do you want to differentiate between PS and PDS/PDSE.

Unless you tell us exactly what you want, there isn't too much to tell you.
Back to top
View user's profile Send private message
Rusikesh

New User


Joined: 04 Feb 2010
Posts: 25
Location: United States

PostPosted: Thu Jul 01, 2010 6:53 pm
Reply with quote

I am not original poster. I have same query which is send by Original User "Prasanna".
My query is as,
I want to delete only PS file starting from perticular qualifier but there are certain conditions,
1) Delete ALL the PS files which are available on DASD and which are migrated.
2) Apply certain date criteria (i.e Do not delete PS files which are created after 20june-2010).

As suggested by you I have tried by ADRDSSU utility but it delete PS files which are available on DASD only. It won't delete the migrated PS files.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Thu Jul 01, 2010 6:57 pm
Reply with quote

Quote:
I am not original poster. I have same query which is send by Original User "Prasanna".

not our problem
why did You not start a new topic then...
piggybacking on somebody else topic is considered bad manners,
confuses the poster of the original question
and wastes the time of the people helping .

also ...
Quote:
I am looking for the all cataloged datasets for a particular HLQ. All these datasets are available on DASD.

in Your original request You never spoke about migrated dataset,
again changing the requirement during the discussion is confusing and distressing for people trying to help
an gives origin to the most natural question ...
why in hell people do not learn to post the complete requirement from the beginning icon_evil.gif
but maybe they have problem with the neuron buffering services icon_biggrin.gif

read
catb.org/~esr/faqs/smart-questions.html
on how to get the most when asking question
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Jul 01, 2010 7:02 pm
Reply with quote

Quick check on migrated files to find the DSORG
Code:
//HSMCMDS  EXEC PGM=IKJEFT01                     
//SYSOUT   DD SYSOUT=*                           
//SYSPRINT DD SYSOUT=*                           
//SYSTSPRT DD SYSOUT=*                           
//SYSTSIN  DD *                                 
 HLIST LEVEL(Your_HLQ) BOTH ODS('Your_Output_Dataset')
Back to top
View user's profile Send private message
Rusikesh

New User


Joined: 04 Feb 2010
Posts: 25
Location: United States

PostPosted: Thu Jul 01, 2010 9:14 pm
Reply with quote

I will take care of this point.

Also, I have tried for "HLIST LEVEL(Your_HLQ) BOTH ODS('Your_Output_Dataset')" it 's working fine. Thanks a lot.

So, to get the consolidated list of all PS files I have to use,
1) HLIST for migrated ps files and
2) ADRDSSU for DASD ps files.
and after that by using sort utility on both the output files, I will select only PS files and delete the same.

Can we do same thing by any other way?
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Thu Jul 01, 2010 9:20 pm
Reply with quote

or check the ISMF filtering capabilities also quite sophisticated
and the ISMF command generation and masking
Back to top
View user's profile Send private message
Rusikesh

New User


Joined: 04 Feb 2010
Posts: 25
Location: United States

PostPosted: Fri Jul 02, 2010 9:07 am
Reply with quote

I am not aware about ISMF filtering capabilities
and the ISMF command generation and masking.

will you please provide me some guidelines?
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Fri Jul 02, 2010 11:43 am
Reply with quote

Do You have the ISPF ISMF dialogs available ?

navigate thru the options and You will find its capabilities

or look at
publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/DGT2I540/CCONTENTS?SHELF=DGT2BK71&DN=SC26-7411-04&DT=20070530152235
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Fri Jul 02, 2010 4:25 pm
Reply with quote

Quote:
Do You have the ISPF ISMF dialogs available ?
Pay attention to the above, from Enrico's reply - at one of shops I've been to, I was not authorized to invoke the ISMF panels. I was told that,"You don't belong to storage-team so you don't need that. %%^^&".
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Fri Jul 02, 2010 5:43 pm
Reply with quote

Quote:

"You don't belong to storage-team so you don't need that. %%^^&".

Always become friends with teams you need is what i learned in the
past.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Fri Jul 02, 2010 5:44 pm
Reply with quote

Hey Anuj,

I'm in storage, please mail the bottle of 24 year old single malt to ........ icon_lol.gif
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Fri Jul 02, 2010 5:46 pm
Reply with quote

Yep, I and expat are frieds since that day! icon_biggrin.gif
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Fri Jul 02, 2010 5:47 pm
Reply with quote

LOL - see even our frequencies are matching now icon_lol.gif
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 -> JCL & VSAM Goto page Previous  1, 2

 


Similar Topics
Topic Forum Replies
No new posts How to create a list of SAR jobs with... CA Products 3
No new posts Build dataset list with properties us... PL/I & Assembler 4
No new posts list pds members name starting with xyz CLIST & REXX 11
No new posts List of quiesced jobs JCL & VSAM 3
No new posts how to get list of all VSAM/non-VSAM ... JCL & VSAM 13
Search our Forums:

Back to Top