MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to get only the main datasets & not bkups?

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF
View previous topic :: View next topic  
Author Message
mf_user
Intermediate


Joined: 01 Jun 2003
Posts: 372
Topics: 105

PostPosted: Tue Nov 04, 2008 8:35 am    Post subject: How to get only the main datasets & not bkups? Reply with quote

Hi,

I need to search below given 9 datasets using "SRCHFOR" command.

Code:

CENAR.MIDWK.EXTRACT1.GSAM
CENAR.MIDWK.EXTRACT2.GSAM
CENAR.MIDWK.EXTRACT3.GSAM
CENAR.MIDWK.EXTRACT4.GSAM
CENAR.MIDWK.EXTRACT5.GSAM
CENAR.MIDWK.EXTRACT6.GSAM
CENAR.MIDWK.EXTRACT7.GSAM
CENAR.MIDWK.EXTRACT8.GSAM
CENAR.MIDWK.EXTRACT9.GSAM


But the problem is when I use "CENAR.MIDWK.EXTRACT*.GSAM", it is listing other datasets also which were migrated. If I give "SRCHFOR" command all of the migrated ones also will be searched.

How to avoid this? I know we can use batch job to do searching but I would like to know if this is possible in TSO itself.

Thanks.
_________________
MF
==
Any training that does not include the emotions, mind and body is incomplete; knowledge fades without feeling.
==
Back to top
View user's profile Send private message Send e-mail
taltyman
JCL Forum Moderator
JCL Forum Moderator


Joined: 02 Dec 2002
Posts: 310
Topics: 8
Location: Texas

PostPosted: Tue Nov 04, 2008 10:38 am    Post subject: Reply with quote

Enter ISPF 3.4 and put in your dataset mask
Then on each line command entry put an X in front of the datasets that you want to omit from your search.
Then enter srchfor on the main command line.
Back to top
View user's profile Send private message
mf_user
Intermediate


Joined: 01 Jun 2003
Posts: 372
Topics: 105

PostPosted: Wed Nov 05, 2008 5:27 am    Post subject: Sorry.....this trick does not work. Reply with quote

taltyman, It does not work. I tried what you suggested but it had recalled the migrated datasts also Crying or Very sad

Thanks.
_________________
MF
==
Any training that does not include the emotions, mind and body is incomplete; knowledge fades without feeling.
==
Back to top
View user's profile Send private message Send e-mail
Bill Dennis
Advanced


Joined: 03 Dec 2002
Posts: 579
Topics: 1
Location: Iowa, USA

PostPosted: Wed Nov 05, 2008 8:53 am    Post subject: Reply with quote

On the SRCHFOR entry screen you must select Search option for "Non-excluded" only!
_________________
Regards,
Bill Dennis

Disclaimer: My comments on this foorum are my own and do not represent the opinions or suggestions of any other person or business entity.
Back to top
View user's profile Send private message
Nic Clouston
Advanced


Joined: 01 Feb 2007
Posts: 1075
Topics: 7
Location: At Home

PostPosted: Wed Nov 05, 2008 12:21 pm    Post subject: Reply with quote

My ISPF manual is AWOL but can you not use another wildcard character to substitute only ONE character - I think it is % so CENAR.MIDWK.EXTRACT%.GSAM
should pick up only the required datasets. Mind you, I do not think I have tried % on a 3.4 file specification field.
_________________
Utility and Program control cards are NOT, repeat NOT, JCL.
Back to top
View user's profile Send private message
mf_user
Intermediate


Joined: 01 Jun 2003
Posts: 372
Topics: 105

PostPosted: Thu Nov 06, 2008 6:04 am    Post subject: Reply with quote

Thank you Bill Dennis. Excellent.......your tip has helped me. Very Happy
_________________
MF
==
Any training that does not include the emotions, mind and body is incomplete; knowledge fades without feeling.
==
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group