View previous topic :: View next topic |
Author |
Message |
mf_user Intermediate

Joined: 01 Jun 2003 Posts: 372 Topics: 105
|
Posted: Tue Nov 04, 2008 8:35 am Post subject: How to get only the main datasets & not bkups? |
|
|
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 |
|
 |
taltyman JCL Forum Moderator

Joined: 02 Dec 2002 Posts: 310 Topics: 8 Location: Texas
|
Posted: Tue Nov 04, 2008 10:38 am Post subject: |
|
|
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 |
|
 |
mf_user Intermediate

Joined: 01 Jun 2003 Posts: 372 Topics: 105
|
Posted: Wed Nov 05, 2008 5:27 am Post subject: Sorry.....this trick does not work. |
|
|
taltyman, It does not work. I tried what you suggested but it had recalled the migrated datasts also
Thanks. _________________ MF
==
Any training that does not include the emotions, mind and body is incomplete; knowledge fades without feeling.
== |
|
Back to top |
|
 |
Bill Dennis Advanced

Joined: 03 Dec 2002 Posts: 579 Topics: 1 Location: Iowa, USA
|
Posted: Wed Nov 05, 2008 8:53 am Post subject: |
|
|
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 |
|
 |
Nic Clouston Advanced
Joined: 01 Feb 2007 Posts: 1075 Topics: 7 Location: At Home
|
Posted: Wed Nov 05, 2008 12:21 pm Post subject: |
|
|
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 |
|
 |
mf_user Intermediate

Joined: 01 Jun 2003 Posts: 372 Topics: 105
|
Posted: Thu Nov 06, 2008 6:04 am Post subject: |
|
|
Thank you Bill Dennis. Excellent.......your tip has helped me.  _________________ MF
==
Any training that does not include the emotions, mind and body is incomplete; knowledge fades without feeling.
== |
|
Back to top |
|
 |
|
|