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
ayappanb
Warnings : 1

New User


Joined: 22 Feb 2007
Posts: 24
Location: Chennai

PostPosted: Tue Oct 30, 2007 3:45 pm
Reply with quote

Hi,

I have a request to recall all the dataset with a particular pattern. foreg.

I need to recall dataset like 'k5540.fire.*'. This pattern contains 10000 dataset. Is there any easy way otherthan using HRECALL to each and every dataset?

After recal, I need to delete all the 10000 dataset? Is there any easy way.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Tue Oct 30, 2007 3:52 pm
Reply with quote

Do You want to recall to process them or You simply want to "vaporize" them

check the HSM manuals, if I remember correctly, it should be possible to delete migrated datasets without recalling them
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Tue Oct 30, 2007 3:59 pm
Reply with quote

Quote:
it should be possible to delete migrated datasets without recalling them


We use HDELETE to delete migrated datasets without recalling them. See if that command can be used.
Back to top
View user's profile Send private message
ayappanb
Warnings : 1

New User


Joined: 22 Feb 2007
Posts: 24
Location: Chennai

PostPosted: Tue Oct 30, 2007 3:59 pm
Reply with quote

Tell me an easy to way to do the following

1. RECALL 10000 dataset(some pattern. for eg k5540.ayappa.*) easily, think i need to process
2. DELETE 10000 dataset(some pattern. for eg k5540.ayappa.* )easily
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Tue Oct 30, 2007 4:02 pm
Reply with quote

ayyapan,

Quote:
1. RECALL 10000 dataset(some pattern. for eg k5540.ayappa.*) easily, think i need to process
2. DELETE 10000 dataset(some pattern. for eg k5540.ayappa.* )easily


I would prefer to do this in REXX using LMDLIST and then issuing HDELETE.
Back to top
View user's profile Send private message
ayappanb
Warnings : 1

New User


Joined: 22 Feb 2007
Posts: 24
Location: Chennai

PostPosted: Tue Oct 30, 2007 4:12 pm
Reply with quote

can u just supply the code?
Back to top
View user's profile Send private message
PeD

Active User


Joined: 26 Nov 2005
Posts: 459
Location: Belgium

PostPosted: Tue Oct 30, 2007 4:18 pm
Reply with quote

The response is in the question ; use

Code:
HRECALL  'your.file.*'  or HDELETE 'your.file.*'


HRECALL and HDELETE can deal with generic names.

Take care with HDELETE.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Tue Oct 30, 2007 4:18 pm
Reply with quote

Quote:
an u just supply the code?


why don' t You RTFM and find out by Yourself that...

both HRECALL and HDELETE support generic naming..

try to issue : from ispf option 6 ( for example )

"HDELETE k5540.fire.*"
Back to top
View user's profile Send private message
ayappanb
Warnings : 1

New User


Joined: 22 Feb 2007
Posts: 24
Location: Chennai

PostPosted: Tue Oct 30, 2007 4:45 pm
Reply with quote

Thank you.
Back to top
View user's profile Send private message
ayappanb
Warnings : 1

New User


Joined: 22 Feb 2007
Posts: 24
Location: Chennai

PostPosted: Tue Oct 30, 2007 5:21 pm
Reply with quote

when i tried form ispf option 6 ( for example )
"HDELETE k5540.fire.*"- it is not working
Back to top
View user's profile Send private message
PeD

Active User


Joined: 26 Nov 2005
Posts: 459
Location: Belgium

PostPosted: Tue Oct 30, 2007 6:21 pm
Reply with quote

Not working with RC=0 or not wotking with RC <> 0 ?

A little effort, you are not far.
See my exemples.
Back to top
View user's profile Send private message
ayappanb
Warnings : 1

New User


Joined: 22 Feb 2007
Posts: 24
Location: Chennai

PostPosted: Tue Oct 30, 2007 6:32 pm
Reply with quote

From ISPF option 6
I gave it just like your examples but it is not working.
Back to top
View user's profile Send private message
PeD

Active User


Joined: 26 Nov 2005
Posts: 459
Location: Belgium

PostPosted: Tue Oct 30, 2007 6:46 pm
Reply with quote

You did not respond to my question : RC= ??
You try was not from my example : now try with quotes.

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: Tue Oct 30, 2007 6:55 pm
Reply with quote

When you r executing from ISPF option 6, I was not getting any RC.

I tried with the following command
HRECALL 'k5540.fire.*'
error : NO DSNAMES MATCH SS3115.D3115NBP.AYP.*
Back to top
View user's profile Send private message
ayappanb
Warnings : 1

New User


Joined: 22 Feb 2007
Posts: 24
Location: Chennai

PostPosted: Tue Oct 30, 2007 7:09 pm
Reply with quote

When I was executing from ISPF option 6, not getting any RC.

I tried with the following command
HRECALL 'k5540.fire.*'
error : NO DSNAMES MATCH SS3115.D3115NBP.AYP.*
Back to top
View user's profile Send private message
PeD

Active User


Joined: 26 Nov 2005
Posts: 459
Location: Belgium

PostPosted: Tue Oct 30, 2007 7:15 pm
Reply with quote

??? you want to delete something like "K5540.FIRE.*' and the return told you not found for "SS3115.D3115NBP.AYP.*" ????? There, yes, I am lost icon_question.gif

Will you execute that command in batch using IKJEFT01
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Wed Oct 31, 2007 12:15 pm
Reply with quote

ayyapan,

Quote:
When I was executing from ISPF option 6, not getting any RC.


Try issuing the following command from the command prompt (START).

Code:
TSO HDEL 'HLQ.VB.OUT.**'


Please remember that for the command to work, the datasets should be in the migrated state and not in DASD. If it is not migrated try DEL instead of HDEL.
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 1:11 pm
Reply with quote

Hi pierre

Sorry for giving the wrong dataset pattern.

I tried with the following command form ISPF option 6

HRECALL 'SS3445.D3445NBP.AYP.*'
error : NO DSNAMES MATCH SS3445.D3445NBP.AYP.*

Tell how to do with IKJEFT01?
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 1:15 pm
Reply with quote

Code:
HRECALL 'SS3445.D3445NBP.AYP.*'

Check for dataset existence with those qualifiers.
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Wed Oct 31, 2007 1:52 pm
Reply with quote

iyappa,

Quote:
HRECALL 'SS3445.D3445NBP.AYP.*'
error : NO DSNAMES MATCH SS3445.D3445NBP.AYP.*


You are getting that error as there is no dataset with the first 3 qualifiers mentioned in the HRECALL command.

Try the command with the catalogued datasat and it would work.
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 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
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