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

HRECALL to recall all migrated datasets


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Mr.Niceguy

New User


Joined: 16 Jun 2005
Posts: 63

PostPosted: Wed Jan 16, 2008 5:09 pm
Reply with quote

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
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Wed Jan 16, 2008 5:20 pm
Reply with quote

I presume your command is actually:

HRECALL 'MY.FULLY.QUALIFIED.DATASET.NAME' NOWAIT
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Wed Jan 16, 2008 5:30 pm
Reply with quote

Why are you bothering to recall the dataset if you want to delete it ?

Why not HDELETE 'my dataset'
Back to top
View user's profile Send private message
Mr.Niceguy

New User


Joined: 16 Jun 2005
Posts: 63

PostPosted: Wed Jan 16, 2008 5:37 pm
Reply with quote

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
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Wed Jan 16, 2008 5:41 pm
Reply with quote

Look into the TSO PROFILE command for the PREFIX parameter.
Back to top
View user's profile Send private message
Mr.Niceguy

New User


Joined: 16 Jun 2005
Posts: 63

PostPosted: Wed Jan 16, 2008 5:42 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Wed Jan 16, 2008 5:44 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Wed Jan 16, 2008 5:45 pm
Reply with quote

HDELETE will delete both the MCDS and BCS records in one hit without RECALL.
Back to top
View user's profile Send private message
Mr.Niceguy

New User


Joined: 16 Jun 2005
Posts: 63

PostPosted: Wed Jan 16, 2008 5:54 pm
Reply with quote

Hi Expat,

It is really working fine. Thanks alot for your precious suggestions.

Thanks once again. :-)
Back to top
View user's profile Send private message
Mr.Niceguy

New User


Joined: 16 Jun 2005
Posts: 63

PostPosted: Wed Jan 16, 2008 5:58 pm
Reply with quote

Yes, Again I'm facing the qualifier problem which is prefixing my user ID infront of the dataset that I mentioned.
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Wed Jan 16, 2008 6:05 pm
Reply with quote

Are you using QUOTES to surround your dataset name ?

As shown in the two examples above
Back to top
View user's profile Send private message
Mr.Niceguy

New User


Joined: 16 Jun 2005
Posts: 63

PostPosted: Wed Jan 16, 2008 6:32 pm
Reply with quote

Expat,

I apologize for the mistake that I made in my code. Now it is working fine. icon_biggrin.gif . Thanks alot!!
Back to top
View user's profile Send private message
Ron Horley

New User


Joined: 03 Jan 2008
Posts: 3
Location: Philadelphia

PostPosted: Wed Jan 16, 2008 10:06 pm
Reply with quote

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
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

 


Similar Topics
Topic Forum Replies
No new posts Merging 2 datasets into one DFSORT/ICETOOL 1
No new posts How Can I Recall a Migrated Data Set ... PL/I & Assembler 3
No new posts PL/I, VB Datasets and the RDW PL/I & Assembler 4
No new posts how to get list of all VSAM/non-VSAM ... JCL & VSAM 13
No new posts define 1 DCB parms for multiple outpu... JCL & VSAM 9
Search our Forums:

Back to Top