This example shows you how to update resources in a development library. This script updates all FAP resources in the development library (master.lby) that have a status of Test and changes that status to Failed.
If you run the utility with these parameters:
C:\fap\dll\dms1dm>lbyproc /i=deflib\upd1.lsc
You will get this output from the utility:
--- LBYPROC Copyright (C) 1997, 2009 Oracle. All rights reserved.
--- Documaker library script processor
UPDATE Successful. Name<Q1ADDR> Type<FAP> Ver<00001> Rev<00001> Note<Resource updated>
UPDATE Successful. Name<Q1AFLG> Type<FAP> Ver<00001> Rev<00001> Note<Resource updated>
UPDATE Successful. Name<Q1B302> Type<FAP> Ver<00001> Rev<00001> Note<Resource updated>
. . .
UPDATE Successful. Name<Q1VRFL> Type<FAP> Ver<00001> Rev<00001> Note<Resource updated>
Update performed. The following number of objects were
updated in the library.
LIBRARY: DEFLIB\MASTER.LBY
BDFs : 0
GRPs : 0
FORs : 0
FAPs : 81
DDTs : 0
LOGs : 0
DALs : 0
XDDs : 0
-------------
Total: 81
--- LBYPROC Complete ---
Here are the contents of the upd1.lsc file, which contains the Update script:
<LBYSCRIPT>
<UPDATE>
<LIBRARY VALUE="DEFLIB\MASTER.LBY"/>
<NAME VALUE=""/>
<TYPE VALUE=""/>
<VERSION VALUE=""/>
<REVISON VALUE=""/>
<MODE VALUE=""/>
<STATUS VALUE="TEST" NEWVALUE="FAILED"/>
<CLASS VALUE=""/>
<PROJECT VALUE=""/>
</UPDATE>
</LBYSCRIPT>
© Copyright 2012, Oracle and/or its affiliates. All rights reserved. Legal notices.