This example uses the /TEST parameter to preview what the Promote script will do. This script promotes all resources that have a status of Passed from the development library (MASTER.LBY) into the test library (TEST.LBY).
You first run the LBYPROC utility using the /TEST parameter so you can see a preview of what will be promoted. After running it with the /TEST parameter, remove this parameter and run the utility again to actually promote resources.
Resources in the source library (MASTER.LBY) that have a status of Passed are promoted to the target library (TEST.LBY). In the target library, these newly promoted resources are assigned a status of Test. Upon successful promotion, the resources in the source library that were promoted are assigned a status of Promoted.
If you run the utility with these parameters:
c:\fap\dll\dms1dm>lbyproc /i=deflib\pro2.lsc /test
You will get this output from the utility when running in Test mode:
--- LBYPROC Copyright (C) 1997, 2009 Oracle. All rights reserved.
--- Documaker library script processor
Found <1> Library Scripts
(Preview)PROMOTE Successful. Name<SETRCPTB> Type<DAL> Ver<00001> Rev<00001> Note<Normal promotion>
(Preview)PROMOTE Successful. Name<Q1ADDR> Type<FAP> Ver<00001> Rev<00001> Note<Normal promotion>
(Preview)PROMOTE Successful. Name<Q1AFLG> Type<FAP> Ver<00001> Rev<00001> Note<Normal promotion>
(Preview)PROMOTE Successful. Name<Q1B302> Type<FAP> Ver<00001> Rev<00001> Note<Normal promotion>
(Preview)PROMOTE Successful. Name<CGDEC> Type<FOR> Ver<00001> Rev<00001> Note<Normal promotion>
(Preview)PROMOTE Successful. Name<Q1DLOG> Type<LOG> Ver<00001> Rev<00001> Note<Normal promotion>
--- LBYPROC Complete ---
Use a command similar to this one to actually promote the resources:
c:\fap\dll\dms1dm>lbyproc /i=deflib\pro2.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
PROMOTE Successful. Name<SETRCPTB> Type<DAL> Ver<00001> Rev<00001> Note<Normal promotion>
PROMOTE Successful. Name<Q1ADDR> Type<FAP> Ver<00001> Rev<00001> Note<Normal promotion>
PROMOTE Successful. Name<Q1AFLG> Type<FAP> Ver<00001> Rev<00001> Note<Normal promotion>
PROMOTE Successful. Name<Q1B302> Type<FAP> Ver<00001> Rev<00001> Note<Normal promotion>
PROMOTE Successful. Name<CGDEC> Type<FOR> Ver<00001> Rev<00001> Note<Normal promotion>
PROMOTE Successful. Name<Q1DLOG> Type<LOG> Ver<00001> Rev<00001> Note<Normal promotion>
--- LBYPROC Complete ---
Here are the contents of the pro2.lsc file, which contains the Promote script:
<LBYSCRIPT>
<PROMOTE>
<LIBRARY SRC="DEFLIB\MASTER.LBY" TGT="DEFLIB\TEST.LBY"/>
<NAME SRC=""/>
<TYPE SRC=""/>
<VERSION SRC=""/>
<REVISION SRC=""/>
<USERID SRC=""/>
<EFFDATE SRC="" />
<TEMPNAME SRC="" />
<MODE SRC="" TGT=""/>
<STATUS SRC="PASSED" TGT="TEST" FINAL="PROMOTED"/>
<CLASS SRC="" TGT="*"/>
<PROJECT SRC="" TGT="*"/>
</PROMOTE>
</LBYSCRIPT>
© Copyright 2012, Oracle and/or its affiliates. All rights reserved. Legal notices.