View previous topic :: View next topic
|
Author |
Message |
Prasanna Kamthekar
New User
Joined: 03 Aug 2009 Posts: 14 Location: Pune
|
|
|
|
Hi,
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. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8700 Location: Dubuque, Iowa, USA
|
|
|
|
Quote: |
It would be good if we can do this using JCL only. |
Sorry, it is not possible to do this using JCL only. JCL does one thing and only one thing -- it executes programs. If you had indicated you wanted to use DCOLLECT in a job to extract the data, then continue with another program to analyze the data and set up the delete statements, then IDCAMS to execute the delete statements -- that would be possible. But using JCL only nothing can be accomplished since JCL does nothing but execute programs. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10888 Location: italy
|
|
Back to top |
|
|
Prasanna Kamthekar
New User
Joined: 03 Aug 2009 Posts: 14 Location: Pune
|
|
|
|
Thank you very much!
Let me try. Will get back to you soon. |
|
Back to top |
|
|
Rusikesh
New User
Joined: 04 Feb 2010 Posts: 25 Location: United States
|
|
|
|
Hi All,
The ideas is good one, I tried for the same, it's working.
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.
Is there any way, so that we can directly delete all the mentioned qualifier files without copying?
please share your comments |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
Have we not heard of DD DUMMY |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10888 Location: italy
|
|
|
|
Quote: |
... since we are using DUMP here so first it copy all the mentioned qualifier files and after that it deletes the copied files, |
Please refrain from posting wrong conclusions/considerations
The job as posted is by any point of view the most cost efficient solution
I' ll leave to You the pleasure of finding out why! |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10888 Location: italy
|
|
|
|
Quote: |
Have we not heard of DD DUMMY |
about DD DUMMY maybe yes, about reading the manuals certainly not |
|
Back to top |
|
|
Rusikesh
New User
Joined: 04 Feb 2010 Posts: 25 Location: United States
|
|
|
|
thanks for your comment. |
|
Back to top |
|
|
dneufarth
Active User
Joined: 27 Apr 2005 Posts: 420 Location: Inside the SPEW (Southwest Ohio, USA)
|
|
|
|
Are you actually looking for a single volume's contents (VTOC) or all cataloged datasets for a particular HLQ? |
|
Back to top |
|
|
Rusikesh
New User
Joined: 04 Feb 2010 Posts: 25 Location: United States
|
|
|
|
I am looking for the all cataloged datasets for a particular HLQ. All these datasets are available on DASD. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hello,
What happened when you ran the sample job Enrico provided (// EXEC PGM=ADRDSSU,PARM='TYPRUN=NORUN' )?
If you have not run this - do so now and post anything that is not clear from the run. . . |
|
Back to top |
|
|
Rusikesh
New User
Joined: 04 Feb 2010 Posts: 25 Location: United States
|
|
|
|
HELLO,
I tried for the same i.e. PARM='TYPRUN=NORUN' . It only select the files. not deleting the files. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
Rusihesh wrote: |
HELLO,
I tried for the same i.e. PARM='TYPRUN=NORUN' . It only select the files. not deleting the files. |
Mmmmmmmmmmmmmmmmm, interesting that
Have you bothered to find and read the manual to see why. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
I tried for the same i.e. PARM='TYPRUN=NORUN' . It only select the files. not deleting the files. |
Correct. . . Did you try to read the "instructions" given by Enrico?
Go back - re-read (actually, read for the first time as you have not yet done so) and then do as suggested. . . |
|
Back to top |
|
|
Rusikesh
New User
Joined: 04 Feb 2010 Posts: 25 Location: United States
|
|
|
|
Hello,
I gone through the links but not able to conclude anything. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
Look at the last of the links provided by Enrico.
Start at section 2 - Chapter 22
Read, re-read, re-read again because evrything that you need to know is in there, because I know the book that his link references. It will take you a couple of hours, maybe more, maybe less, but all of your questions will be answered for this topic and also the one in the SMS forum. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hello,
I still wonder that you did not use the simple directions given. . .
As Expat suggests, you will get complete info from the documentation, but Enrico hs posted everything you need to do what you want.
As you are not understanding this well at all, i strongly suggest you create a test hlq for testing this and not simply destroy real data. |
|
Back to top |
|
|
Marso
REXX Moderator
Joined: 13 Mar 2006 Posts: 1353 Location: Israel
|
|
|
|
Rusikesh wrote: |
It only select the files. not deleting the files. |
So, you were ready to delete a bunch of files without checking first exactly which files ?
I hope the backup guy is a good friend of yours. |
|
Back to top |
|
|
CICS Guy
Senior Member
Joined: 18 Jul 2007 Posts: 2146 Location: At my coffee table
|
|
|
|
Rusikesh whose occuption is 'Developer' and whose mainfrain skills include jcl,cics,db2 and cobol, wrote: |
Hello,
I gone through the links but not able to conclude anything. |
I am getting a little afraid............(no grin)......... |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Very afraid. . .
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 |
|
|
dneufarth
Active User
Joined: 27 Apr 2005 Posts: 420 Location: Inside the SPEW (Southwest Ohio, USA)
|
|
|
|
good lord, just read the last 2 lines of Enrico's first post! (just above his signature line) |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
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 |
|
|
Victor Niu
New User
Joined: 11 Mar 2010 Posts: 59 Location: China,Shanghai
|
|
|
|
very useful topics for me,thanks!!! |
|
Back to top |
|
|
dneufarth
Active User
Joined: 27 Apr 2005 Posts: 420 Location: Inside the SPEW (Southwest Ohio, USA)
|
|
|
|
Dick,
aren't they hidden in the dummy file?
I'm checking my insurance policies and credit cards more closely. |
|
Back to top |
|
|
|