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

How to recall all the dataset with a particular pattern?


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

Active User


Joined: 26 Nov 2005
Posts: 459
Location: Belgium

PostPosted: Wed Oct 31, 2007 2:25 pm
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: 1436
Location: Bangalore,India

PostPosted: Wed Oct 31, 2007 3:16 pm
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: 459
Location: Belgium

PostPosted: Wed Oct 31, 2007 3:24 pm
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
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: 1436
Location: Bangalore,India

PostPosted: Wed Oct 31, 2007 6:12 pm
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: 459
Location: Belgium

PostPosted: Wed Oct 31, 2007 6:17 pm
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
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: 1702
Location: Australia

PostPosted: Thu Nov 01, 2007 5:11 am
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: 8797
Location: Welsh Wales

PostPosted: Thu Nov 01, 2007 10:40 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM Goto page 1, 2  Next

 


Similar Topics
Topic Forum Replies
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts Allocated cylinders of a dataset DB2 12
No new posts Sort First/last record of a subset th... DFSORT/ICETOOL 7
No new posts Reading dataset in Python - New Line ... All Other Mainframe Topics 22
Search our Forums:

Back to Top