You are here: Available Utilities > L > LBYPROC > Filtering Resources > Example

Filtering Resources Example

This example filters the development library for all FAP files that contain a Text element with the value POLICY. (Only on Windows.)

In this example you specify the source library name (MASTER.LBY), the type (FAP) of resources you want to search, the type of object (TEXT, such as a Text Label or Text Area) within each FAP file you want to search, and the text string (POLICY) you are searching for, within each of those TEXT objects.

If you run the utility with these parameters:

c:\fap\dll\dms1dm>lbyproc /i=deflib\filter1.lsc

You will get this output from the utility:

--- LBYPROC Copyright (C) 1997, 2009 Oracle. All rights reserved.

--- Documaker library script processor

Found <1> Library Scripts

Search parameters follow:

Library : DEFLIB\MASTER.LBY

Type : FAP

Object Type : TEXT

Object Name :

Object Text : POLICY

Object TextCase :

Found match: <Q1AFLG> <FAP> <00001> <00001> <Initial check in>

Found match: <Q1BA32> <FAP> <00001> <00001> <Initial check in>

Found match: <Q1BA36> <FAP> <00001> <00001> <Initial check in>

. . .

SEARCH Successful. Found <23> matching resources.

--- LBYPROC Complete ---

Here are the contents of the filter1.lsc file, which contains the Filter script:

<LBYSCRIPT>

<FILTER>
<LIBRARY VALUE="DEFLIB\MASTER.LBY"/>
<NAME VALUE=""/>
<DESC VALUE=""/>
<TYPE VALUE="FAP"/>
<VERSION VALUE=""/>
<REVISION VALUE=""/>
<USERID VALUE=""/>
<EFFDATE VALUE=""/>
<LOCKED VALUE=""/>
<MODE VALUE=""/>
<STATUS VALUE=""/>
<CLASS VALUE=""/>
<PROJECT VALUE=""/>
<OBJECTTYPE VALUE="TEXT"/>
<OBJECTNAME VALUE=""/>
<OBJECTTEXT VALUE="POLICY"/>
<OBJECTTEXTCASE VALUE=""/>
</FILTER>

</LBYSCRIPT>