View previous topic :: View next topic
|
Author |
Message |
ayappanb Warnings : 1 New User
Joined: 22 Feb 2007 Posts: 24 Location: Chennai
|
|
|
|
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 |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10889 Location: italy
|
|
|
|
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 |
|
|
Aaru
Senior Member
Joined: 03 Jul 2007 Posts: 1287 Location: Chennai, India
|
|
|
|
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 |
|
|
ayappanb Warnings : 1 New User
Joined: 22 Feb 2007 Posts: 24 Location: Chennai
|
|
|
|
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 |
|
|
Aaru
Senior Member
Joined: 03 Jul 2007 Posts: 1287 Location: Chennai, India
|
|
|
|
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 |
|
|
ayappanb Warnings : 1 New User
Joined: 22 Feb 2007 Posts: 24 Location: Chennai
|
|
|
|
can u just supply the code? |
|
Back to top |
|
|
PeD
Active User
Joined: 26 Nov 2005 Posts: 459 Location: Belgium
|
|
|
|
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 |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10889 Location: italy
|
|
|
|
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 |
|
|
ayappanb Warnings : 1 New User
Joined: 22 Feb 2007 Posts: 24 Location: Chennai
|
|
|
|
Thank you. |
|
Back to top |
|
|
ayappanb Warnings : 1 New User
Joined: 22 Feb 2007 Posts: 24 Location: Chennai
|
|
|
|
when i tried form ispf option 6 ( for example )
"HDELETE k5540.fire.*"- it is not working |
|
Back to top |
|
|
PeD
Active User
Joined: 26 Nov 2005 Posts: 459 Location: Belgium
|
|
|
|
Not working with RC=0 or not wotking with RC <> 0 ?
A little effort, you are not far.
See my exemples. |
|
Back to top |
|
|
ayappanb Warnings : 1 New User
Joined: 22 Feb 2007 Posts: 24 Location: Chennai
|
|
|
|
From ISPF option 6
I gave it just like your examples but it is not working. |
|
Back to top |
|
|
PeD
Active User
Joined: 26 Nov 2005 Posts: 459 Location: Belgium
|
|
|
|
You did not respond to my question : RC= ??
You try was not from my example : now try with quotes.
Cheers
Pierre |
|
Back to top |
|
|
ayappanb Warnings : 1 New User
Joined: 22 Feb 2007 Posts: 24 Location: Chennai
|
|
|
|
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 |
|
|
ayappanb Warnings : 1 New User
Joined: 22 Feb 2007 Posts: 24 Location: Chennai
|
|
|
|
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 |
|
|
PeD
Active User
Joined: 26 Nov 2005 Posts: 459 Location: Belgium
|
|
|
|
??? you want to delete something like "K5540.FIRE.*' and the return told you not found for "SS3115.D3115NBP.AYP.*" ????? There, yes, I am lost
Will you execute that command in batch using IKJEFT01 |
|
Back to top |
|
|
Aaru
Senior Member
Joined: 03 Jul 2007 Posts: 1287 Location: Chennai, India
|
|
|
|
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 |
|
|
ayappanb Warnings : 1 New User
Joined: 22 Feb 2007 Posts: 24 Location: Chennai
|
|
|
|
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 |
|
|
murmohk1
Senior Member
Joined: 29 Jun 2006 Posts: 1436 Location: Bangalore,India
|
|
|
|
Code: |
HRECALL 'SS3445.D3445NBP.AYP.*' |
Check for dataset existence with those qualifiers. |
|
Back to top |
|
|
Aaru
Senior Member
Joined: 03 Jul 2007 Posts: 1287 Location: Chennai, India
|
|
|
|
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 |
|
|
PeD
Active User
Joined: 26 Nov 2005 Posts: 459 Location: Belgium
|
|
|
|
Code: |
//STEPDEL EXEC PGM=IKJEFT01
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SYSTSIN DD *
HDELETE 'YOUR.FILE.*'
/*
|
|
|
Back to top |
|
|
murmohk1
Senior Member
Joined: 29 Jun 2006 Posts: 1436 Location: Bangalore,India
|
|
|
|
Pierre Devillers,
Quote: |
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=* |
Should not it be -
Code: |
//SYSTSPRT DD SYSOUT=* |
If I remeber properly, your step will abend. |
|
Back to top |
|
|
PeD
Active User
Joined: 26 Nov 2005 Posts: 459 Location: Belgium
|
|
|
|
Yes ... typing from memory .. a bit to quick.
Thanks
Pierre |
|
Back to top |
|
|
ayappanb Warnings : 1 New User
Joined: 22 Feb 2007 Posts: 24 Location: Chennai
|
|
|
|
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 |
|
|
murmohk1
Senior Member
Joined: 29 Jun 2006 Posts: 1436 Location: Bangalore,India
|
|
|
|
ayappanb,
As usual, we need spool messages. |
|
Back to top |
|
|
|