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
 
HRECALL to recall all migrated datasets

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: HRECALL to recall all migrated datasets
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

Moderator Team Head


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

PostPosted: Wed Jan 16, 2008 5:20 pm    Post subject: Reply to: HRECALL Question
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: 8593
Location: Back in jolly old England

PostPosted: Wed Jan 16, 2008 5:30 pm    Post subject:
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    Post subject:
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

Moderator Team Head


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

PostPosted: Wed Jan 16, 2008 5:41 pm    Post subject: Reply to: HRECALL to recall all migrated datasets
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    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Wed Jan 16, 2008 5:44 pm    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Wed Jan 16, 2008 5:45 pm    Post subject:
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    Post subject:
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    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Wed Jan 16, 2008 6:05 pm    Post subject:
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    Post subject:
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    Post subject: Reply to: HRECALL to recall all migrated datasets
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts REXX to get the all datasets name parasmalik20 CLIST & REXX 5 Tue Jul 18, 2017 9:10 pm
This topic is locked: you cannot edit posts or make replies. SDSF multiple spool datasets extracte... PJAlarcon CLIST & REXX 1 Fri Apr 21, 2017 10:50 pm
No new posts Edit large number of datasets (QSAM) zh_lad TSO/ISPF 3 Tue Apr 04, 2017 6:08 pm
No new posts DUMP DATASETS VS TRACE DATASETS! lind sh CICS 4 Tue Dec 06, 2016 11:31 pm
No new posts Single COPY CICS TS datasets and when... Kyle Carroll CICS 2 Tue Oct 11, 2016 9:47 pm

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