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
 
How to list PS and PDS seperatly from VTOC
Goto page Previous  1, 2, 3  Next
 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
dick scherrer

Site Director


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

PostPosted: Sun Jun 13, 2010 5:32 am    Post subject: Reply to: How to list PS and PDS seperatly from VTOC
Reply with quote

Quote:
little afraid
Very afraid. . . icon_neutral.gif

Hard to imagine the amount of damage that a runaway, untested, misunderstood, automated "surgery" process might cause.

Unfortunately, many places that allow a beginner to do this also have poor security in place. . .

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

dneufarth

Active User


Joined: 27 Apr 2005
Posts: 289
Location: Cincinnati OH USA

PostPosted: Sun Jun 13, 2010 5:44 am    Post subject:
Reply with quote

good lord, just read the last 2 lines of Enrico's first post! (just above his signature line)
Back to top
View user's profile Send private message
dick scherrer

Site Director


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

PostPosted: Sun Jun 13, 2010 8:39 am    Post subject: Reply to: How to list PS and PDS seperatly from VTOC
Reply with quote

Hi Dave,

Yup, that is what makes this s-s-scary. . .

And the potential topic next week asking if there is a way ge get back 8,427 files that were unintentionally deleted. . .

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

New User


Joined: 11 Mar 2010
Posts: 59
Location: China,Shanghai

PostPosted: Sun Jun 13, 2010 8:46 am    Post subject:
Reply with quote

very useful topics for me,thanks!!!
Back to top
View user's profile Send private message
dneufarth

Active User


Joined: 27 Apr 2005
Posts: 289
Location: Cincinnati OH USA

PostPosted: Sun Jun 13, 2010 2:29 pm    Post subject:
Reply with quote

Dick,

aren't they hidden in the dummy file? icon_rolleyes.gif

I'm checking my insurance policies and credit cards more closely. icon_lol.gif
Back to top
View user's profile Send private message
enrico-sorichetti

Senior Member


Joined: 14 Mar 2007
Posts: 10599
Location: italy

PostPosted: Sun Jun 13, 2010 9:54 pm    Post subject: Reply to: How to list PS and PDS seperatly from VTOC
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    Post subject: Reply to: How to list PS and PDS seperatly from VTOC
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

Site Director


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

PostPosted: Mon Jun 14, 2010 10:41 pm    Post subject:
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: 8782
Location: Welsh Wales

PostPosted: Tue Jun 15, 2010 11:25 am    Post subject:
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    Post subject: Reply to: How to list PS and PDS seperatly from VTOC
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

Site Director


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

PostPosted: Tue Jun 29, 2010 12:50 am    Post subject:
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: 8782
Location: Welsh Wales

PostPosted: Tue Jun 29, 2010 11:46 am    Post subject:
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

Site Director


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

PostPosted: Tue Jun 29, 2010 7:21 pm    Post subject: Reply to: How to list PS and PDS seperatly from VTOC
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: 8782
Location: Welsh Wales

PostPosted: Tue Jun 29, 2010 7:39 pm    Post subject: Re: Reply to: How to list PS and PDS seperatly from VTOC
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    Post subject: Reply to: How to list PS and PDS seperatly from VTOC
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: 8782
Location: Welsh Wales

PostPosted: Wed Jun 30, 2010 7:28 pm    Post subject:
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    Post subject: Reply to: How to list PS and PDS seperatly from VTOC
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

Senior Member


Joined: 14 Mar 2007
Posts: 10599
Location: italy

PostPosted: Thu Jul 01, 2010 6:57 pm    Post subject: Reply to: How to list PS and PDS seperatly from VTOC
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
http://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: 8782
Location: Welsh Wales

PostPosted: Thu Jul 01, 2010 7:02 pm    Post subject:
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    Post subject: Reply to: How to list PS and PDS seperatly from VTOC
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
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Goto page Previous  1, 2, 3  Next
Page 2 of 3

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts recursive SQL to generate list jzhardy DB2 3 Sun Apr 07, 2019 8:38 am
No new posts Silly question maybe - REPLACE member... Cloink TSO/ISPF 15 Thu Oct 25, 2018 6:38 pm
No new posts Utility to list Data Set Information Auryn JCL & VSAM 6 Tue Jul 17, 2018 5:03 pm
No new posts LIST NODE DIRECTORY - db2 clp - tryin... elixir1986 IBM Tools 1 Sat Jul 07, 2018 6:15 pm
No new posts Varying List Select SQL Query In DB2 ... NikhilGuptaGaya DB2 5 Wed Jun 27, 2018 11:01 pm

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