View previous topic :: View next topic
|
Author |
Message |
Mr.Niceguy
New User
Joined: 16 Jun 2005 Posts: 63
|
|
|
|
I prepared the following job to recall all migrated datasets. I want to delete the exact dataset name that I mentioned in SYSTSIN parameter. But after submitting this job my userID is added as a first qualifier and it says that particular dataset is not found in catalog. Is there any way to eliminate adding userID?
Code: |
//RECALL EXEC PGM=IKJEFT01
//SYSTSPRT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
//SYSTSIN DD *
HRECALL <datasetname> NOWAIT
/*
//
|
|
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
I presume your command is actually:
HRECALL 'MY.FULLY.QUALIFIED.DATASET.NAME' NOWAIT |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Why are you bothering to recall the dataset if you want to delete it ?
Why not HDELETE 'my dataset' |
|
Back to top |
|
|
Mr.Niceguy
New User
Joined: 16 Jun 2005 Posts: 63
|
|
|
|
Hi Superk,
Yes you are correct. We have two types of PDS's
One is for appication PDS(Common) which starts with some common qualifier and another one is personal PDS which starts with our User ID. Here I tried to recall my common PDS. But I'm facing this problem even I specify correct PDS in the parameter. (It automatically adds my userID infront of dataset name).
Let me know if you need more information regarding this.
Thanks alot!! |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
Look into the TSO PROFILE command for the PREFIX parameter. |
|
Back to top |
|
|
Mr.Niceguy
New User
Joined: 16 Jun 2005 Posts: 63
|
|
|
|
Hi Expat,
I want to reduce the execution time to delete all migrated datasets. Anyway, I guess (Correct me if I'm wrong) it will recall all migrated dataset If I code HDELETE or DELETE which takes longer CPU time to execute.
So I have a thought to minimize the execution time by splitting two jobs to recall and to delete. Please share your suggestion
Thanks in advance |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
I renew my question of why bother to recall the dataset if you wish to delete it.
Have you looked carefully at the syntax given by both Kevin and myself ? |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
HDELETE will delete both the MCDS and BCS records in one hit without RECALL. |
|
Back to top |
|
|
Mr.Niceguy
New User
Joined: 16 Jun 2005 Posts: 63
|
|
|
|
Hi Expat,
It is really working fine. Thanks alot for your precious suggestions.
Thanks once again. :-) |
|
Back to top |
|
|
Mr.Niceguy
New User
Joined: 16 Jun 2005 Posts: 63
|
|
|
|
Yes, Again I'm facing the qualifier problem which is prefixing my user ID infront of the dataset that I mentioned. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Are you using QUOTES to surround your dataset name ?
As shown in the two examples above |
|
Back to top |
|
|
Mr.Niceguy
New User
Joined: 16 Jun 2005 Posts: 63
|
|
|
|
Expat,
I apologize for the mistake that I made in my code. Now it is working fine. . Thanks alot!! |
|
Back to top |
|
|
Ron Horley
New User
Joined: 03 Jan 2008 Posts: 3 Location: Philadelphia
|
|
|
|
You do not have to recall datasets in order to delete them..List them in ISPF 3.4 and do an HSDELETE of the datasets. You can also list them and place them in a flatfile,running an IKJEFT01 against the file deleting the datasets. |
|
Back to top |
|
|
|