fhg
Volume 6, Number 29 -- August 2, 2006

Find Messages That Contain a Text String

Published: August 2, 2006

Hey, IT Jungle Forums:

I'm trying to create a utility that will display all messages in a message file that contain a search string in the message description. For example, if we specify the search string as "invalid," the utility should list all messages in the message file that contain the word invalid.

--Deepa


This question was posted on the IT Jungle Web Forums. I suggested Deepa use Qshell's grep utility to do the search. The following Qshell command scans message file XUSRMSGF to find the messages that contain the word "date" in any case.

system "DSPMSGD RANGE(*FIRST *LAST) MSGF(XUSRMSGF) 
DETAIL(*BASIC)" | grep "[Dd][Aa][Tt][Ee]"

To read the discussion or contribute your ideas, visit the thread on the IT Jungle Forums.

--Ted



Sponsored By
PRODATA COMPUTER SERVICES

RSP 4.0 Available Now!
Some of the new features:
Persistent state environment
New editing environment
Automatic file upload
New commands
10 times faster
New functions

All NEW ServerProven products that are virtually FREE with IBM's rebate offering!

Sign up to Win a Video iPod!

800.228.6318
www.prodatacomputer.com



Senior Technical Editor: Ted Holt
Technical Editors: Howard Arner, Joe Hertvik, Shannon O'Donnell, Kevin Vandever
Contributing Technical Editors: Joel Cochran, Wayne O. Evans, Raymond Everhart,
Bruce Guetzkow, Brian Kelly, Marc Logemann, David Morris
Publisher and Advertising Director: Jenny Thomas
Advertising Sales Representative: Kim Reed
Contact the Editors: To contact anyone on the IT Jungle Team
Go to our contacts page and send us a message.

Sponsored Links

T.L. Ashford:  BARCODE400 - the fastest way to create compliance labels directly from the iSeries
Advanced Systems Concepts:  iSeries data access like nothing else with SEQUEL
COMMON:  Join us at the Fall 2006 conference, September 17-21, in Miami Beach, Florida

 


 
Subscription Information:
You can unsubscribe, change your email address, or sign up for any of IT Jungle's free e-newsletters through our Web site at http://www.itjungle.com/sub/subscribe.html.

Copyright © 1996-2008 Guild Companies, Inc. All Rights Reserved.
Guild Companies, Inc., 50 Park Terrace East, Suite 8F, New York, NY 10034

Privacy Statement