Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

How to recall all the dataset with a particular pattern?
Goto page 1, 2  Next
 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: How to recall all the dataset with a particular pattern?
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Tue Oct 30, 2007 3:52 pm    Post subject:
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: 1288
Location: Chennai, India

PostPosted: Tue Oct 30, 2007 3:59 pm    Post subject: Reply to: How to recall all the dataset with a particular pa
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    Post subject:
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: 1288
Location: Chennai, India

PostPosted: Tue Oct 30, 2007 4:02 pm    Post subject: Reply to: How to recall all the dataset with a particular pa
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    Post subject:
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: 456
Location: Belgium

PostPosted: Tue Oct 30, 2007 4:18 pm    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Tue Oct 30, 2007 4:18 pm    Post subject: Reply to: How to recall all the dataset with a particular pa
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    Post subject:
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    Post subject:
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: 456
Location: Belgium

PostPosted: Tue Oct 30, 2007 6:21 pm    Post subject:
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    Post subject:
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: 456
Location: Belgium

PostPosted: Tue Oct 30, 2007 6:46 pm    Post subject:
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    Post subject:
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    Post subject:
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: 456
Location: Belgium

PostPosted: Tue Oct 30, 2007 7:15 pm    Post subject:
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: 1288
Location: Chennai, India

PostPosted: Wed Oct 31, 2007 12:15 pm    Post subject: Reply to: How to recall all the dataset with a particular pa
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    Post subject:
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: 1439
Location: Bangalore,India

PostPosted: Wed Oct 31, 2007 1:15 pm    Post subject:
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: 1288
Location: Chennai, India

PostPosted: Wed Oct 31, 2007 1:52 pm    Post subject: Reply to: How to recall all the dataset with a particular pa
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
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 1, 2  Next
Page 1 of 2

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts FTP - JCL failed while passing FTP co... Suneetha1612 JCL & VSAM 12 Wed Nov 16, 2016 7:33 pm
No new posts To trim spaces in a pipe delimited da... Nish84 COBOL Programming 16 Mon Oct 10, 2016 1:54 pm
No new posts Allocate dataset withour BLKSIZE Susanta CLIST & REXX 2 Thu Sep 22, 2016 11:51 am
No new posts dataset copy question - REPRO or some... atulxp TSO/ISPF 2 Wed Aug 03, 2016 10:56 pm
No new posts FTOPEN TEMP is failing due to dataset... mbenaud TSO/ISPF 7 Thu Jul 28, 2016 4:28 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us