- Community Home
- >
- Servers and Operating Systems
- >
- Operating System - OpenVMS
- >
- search/exclude issue
-
- Forums
-
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
- HPE Blog, Austria, Germany & Switzerland
- Blog HPE, France
- HPE Blog, Italy
- HPE Blog, Japan
- HPE Blog, Middle East
- HPE Blog, Russia
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
-
Blogs
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Blog, Latin America
- HPE Blog, Middle East
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
-
Information
- Community
- Welcome
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Tips and Tricks
- Resources
- Announcements
- Email us
- Feedback
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Aruba Airheads Community
- Enterprise.nxt
- HPE Dev Community
- Cloud28+ Community
- Marketplace
-
Forums
-
Blogs
-
Information
-
English
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
11-24-2009 06:18 AM
11-24-2009 06:18 AM
I'm trying to perform a search excluding GLOBAL_SALES*.COM with the following symbol:
CHECKINFO :== pipe search sy0:[operator.logs]opslog1.log/exclude=GLOBAL_SALES*.COM "''f$cvtime(,"ABSOLUTE","DATE")'","''
f$cvtime("YESTERDAY","ABSOLUTE","DATE")'"|search sys$pipe: info
But it's not recognising the 'exclude='.
Any super brains see what I'm doing wrong?
Many thanks in advance.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
11-24-2009 06:29 AM
11-24-2009 06:29 AM
Re: search/exclude issue
How can you tell: Error message? get all?
What would you like to exclude?
OpenVMS Developer & System Manager
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
11-24-2009 06:33 AM
11-24-2009 06:33 AM
Re: search/exclude issue
dir sy0:[operator.logs]opslog1.log
gives an error message or shows one or several files ?
And the shorter command
search sy0:[operator.logs]opslog1.log/exclude=GLOBAL_SALES*.COM "''f$cvtime(,"ABSOLUTE","DATE")'","''
f$cvtime("YESTERDAY","ABSOLUTE","DATE")'"
shows what ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
11-24-2009 06:43 AM
11-24-2009 06:43 AM
Re: search/exclude issue
To expand on someone else's question, if you
$ DIR SY0:[OPERATOR.LOGS]OPSLOG1.LOG
does it show any global_sales*.com?
So what are you really trying to do?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
11-24-2009 06:44 AM
11-24-2009 06:44 AM
Re: search/exclude issue
It is currently ignoring the '/exclude=GLOBAL_SALES*.COM, as jobs named 'Global_Sales*.com' are still appearing.
I hope this is clearer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
11-24-2009 06:50 AM
11-24-2009 06:50 AM
Re: search/exclude issue
Your command provides a list which includes all logmessages, not just "Info", and also doesn't exclude 'Global_Sales*.com'.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
11-24-2009 06:53 AM
11-24-2009 06:53 AM
SolutionIf you want to exclude matching strings within files as I am guessing is the case, you'll need to use a series of SEARCH commands and some with /MATCH=NOT or similar such.
I've switched to grep a while back. Far more cryptic, but also far more capable than SEARCH.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
11-24-2009 07:06 AM
11-24-2009 07:06 AM
Re: search/exclude issue
sea sy0:[operator.logs]opslog1.log /out=1.out
sea/match=NAND/out=2.out 1.out info, GLOBAL_SALES
sea 2.out info
(just a hint)
OpenVMS Developer & System Manager
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
11-24-2009 01:47 PM
11-24-2009 01:47 PM
Re: search/exclude issue
Just an aside... please make sure you realise that the references to F$CVTIME are resolved at the time the symbol is defined, not at the time you enter the CHECKINFO command.
I can't think of a way to substitute variable dates inside a symbol, other than executing a procedure.
(oh, and I tend to agree with Hoff, grep blows SEARCH away).
Hewlett Packard Enterprise International
- Communities
- HPE Blogs and Forum
© Copyright 2021 Hewlett Packard Enterprise Development LP