Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Forum Index
 
Register
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
How to recall all the dataset with a particular pattern?
Goto page Previous  1, 2
 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
PeD

Active User


Joined: 26 Nov 2005
Posts: 458
Location: Belgium

PostPosted: Wed Oct 31, 2007 2:25 pm    Post subject:
Reply with quote

Code:
//STEPDEL EXEC PGM=IKJEFT01
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SYSTSIN DD *
HDELETE 'YOUR.FILE.*'
/*
Back to top
View user's profile Send private message

murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1439
Location: Bangalore,India

PostPosted: Wed Oct 31, 2007 3:16 pm    Post subject:
Reply with quote

Pierre Devillers,

Quote:
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*


Should not it be -

Code:
//SYSTSPRT DD SYSOUT=*   

icon_question.gif

If I remeber properly, your step will abend.
Back to top
View user's profile Send private message
PeD

Active User


Joined: 26 Nov 2005
Posts: 458
Location: Belgium

PostPosted: Wed Oct 31, 2007 3:24 pm    Post subject:
Reply with quote

Yes ... typing from memory .. a bit to quick.
Thanks
Pierre
Back to top
View user's profile Send private message
ayappanb
Warnings : 1

New User


Joined: 22 Feb 2007
Posts: 24
Location: Chennai

PostPosted: Wed Oct 31, 2007 6:09 pm    Post subject: Reply to: How to recall all the dataset with a particular pa
Reply with quote

I gave the following code

//STEPDEL EXEC PGM=IKJEFT01
//SYSTSPRT DD SYSOUT=*
//*YSOUT DD SYSOUT=*
//SYSTSIN DD *
HRECALL 'SS3115.D3115NBP.AYP.*'
/*
//

The objective is to recall all the migrated dataset.

I got RC as 14 becasue its saying NO DSNAMES MATCH SS3115.D3115NBP.AYP.*

We have 4000 dataset with SS3115.D3115NBP.AYP.* pattern. It is someother problem.
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1439
Location: Bangalore,India

PostPosted: Wed Oct 31, 2007 6:12 pm    Post subject:
Reply with quote

ayappanb,

As usual, we need spool messages.
Back to top
View user's profile Send private message
PeD

Active User


Joined: 26 Nov 2005
Posts: 458
Location: Belgium

PostPosted: Wed Oct 31, 2007 6:17 pm    Post subject:
Reply with quote

Can you make another try.
Create a test and unique data set.
Verify.
Run IKJEFT01 with HMIGRATE
Verify it is migrated
Then run IKJEFT01 with HRECALL.
Verify.
Let us know.

Cheers
Pierre
Back to top
View user's profile Send private message
ayappanb
Warnings : 1

New User


Joined: 22 Feb 2007
Posts: 24
Location: Chennai

PostPosted: Wed Oct 31, 2007 6:18 pm    Post subject:
Reply with quote

Now i changed the pattern fully, I got it.....
thanks you very much for your support esp pierre and murali
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1703
Location: Australia

PostPosted: Thu Nov 01, 2007 5:11 am    Post subject: Reply to: How to recall all the dataset with a particular pa
Reply with quote

Hi,
HDELETE k5540.fire.* will only delete datasets with 3 qualifiers

ie. K5540.FIRE.A

HDELETE k5540.fire.** will delete all datasets prefixed with K5540.FIRE

ie. K5540.FIRE.A
K5540.FIRE.A.B etc


Gerry
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Thu Nov 01, 2007 10:40 pm    Post subject:
Reply with quote

Dare I ask why you want to RECALL them before deleting them ?

Why waste all of the resource of downloading them to DASD and then deleting them. Why not use HDELETE in stage one and have done with it.

If you really are stuck, why not LISTCAT the HLQ and either edit the output via ISPF to get what you want, or use REXX to parse the output and issue the commands.

Beware of issuing large numbers of HSM commands at the same time as the HSM queue, like any other resource does have its limits.
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
Page 2 of 2

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts DFSMShsm Dataset Recovery with B and ... Joerg.Findeisen JCL & VSAM 0 Sat Oct 05, 2019 10:01 pm
No new posts Organization of a migrated dataset saravanakmr.tpr All Other Mainframe Topics 2 Fri Sep 20, 2019 6:10 pm
No new posts TSO TEST writing to dataset Harold Barnes IBM Tools 3 Sat Aug 03, 2019 3:02 am
No new posts Unable to delete dataset - VSAM datas... netcrawler JCL & VSAM 20 Fri Jul 26, 2019 2:06 pm
No new posts Placement of an LPALIB dataset for IPL Alan Playford JCL & VSAM 3 Sun May 12, 2019 5:50 pm

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