This example extracts all resources from the development library and writes them to disk. This script tells the utility to extract all resources from the library (MASTER.LBY) and write the resources into the “.\ext\” directory. You specify the target directory using the ALLLIB tag.
Set the LONGFILENAME tag to Yes to tell the utility to write the resources to disk using the versioned or long name. The long name of the resource consists of the resource name followed by an underscore, followed by the version and revision of the resource followed by an underscore, followed by the effective date of the resource, followed by a period and the resource type. For example, the long name of version 1 revision 3 of the RPEX1DM BDF resource is called:
RPEX1DM_0000100003_19800101.bdf
Setting the LONGFILENAME tag to Yes allows multiple versions/revisions of the same resource to be written to disk and identified uniquely.
If you run the utility with these parameters:
c:\fap\dll\rpex1dm>lbyproc /i=deflib\ext1.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
EXTRACT Successful. Filename<.\ext\RPEX1DM_0000100001_19800101.bdf> Name<RPEX1DM> Type<BDF> Ver<00001> Rev<00001> Note<File did not exist yet>
EXTRACT Successful. Filename<.\ext\RPEX1DM_0000100002_19800101.bdf> Name<RPEX1DM> Type<BDF> Ver<00001> Rev<00002> Note<File did not exist yet>
EXTRACT Successful. Filename<.\ext\RPEX1DM_0000100003_19800101.bdf> Name<RPEX1DM> Type<BDF> Ver<00001> Rev<00003> Note<File did not exist yet>
EXTRACT Successful. Filename<.\ext\RPEX1DM_0000200001_20060901.bdf> Name<RPEX1DM> Type<BDF> Ver<00002> Rev<00001> Note<File did not exist yet>
EXTRACT Successful. Filename<.\ext\ADDCOM_0000100001_19800101.dal> Name<ADDCOM> Type<DAL> Ver<00001> Rev<00001> Note<File did not exist yet>
EXTRACT Successful. Filename<.\ext\ADDCOM_0000100002_19800101.dal> Name<ADDCOM> Type<DAL> Ver<00001> Rev<00002> Note<File did not exist yet>
. . .
EXTRACT Successful. Filename<.\ext\SYMBOL_0000100001_19800101.XDD> Name<SYMBOL> Type<XDD> Ver<00001> Rev<00001> Note<File did not exist yet>
--- LBYPROC Complete ---
Here are the contents of the ext1.lsc file, which contains the Extract script:
<LBYSCRIPT>
<EXTRACT>
<LIBRARY VALUE="DEFLIB\MASTER.LBY"/>
<FILENAME VALUE=""/>
<NAME VALUE=""/>
<TYPE VALUE=""/>
<DESC VALUE=""/>
<VER VALUE=""/>
<REV VALUE=""/>
<USERID VALUE=""/>
<EFFDATE VALUE=""/>
<MODE VALUE=""/>
<STATUS VALUE=""/>
<CLASS VALUE=""/>
<PROJECT VALUE=""/>
<ALLLIB VALUE=".\ext\"/>
<BDFLIB VALUE=""/>
<GRPLIB VALUE=""/>
<FORLIB VALUE=""/>
<FAPLIB VALUE=""/>
<DDTLIB VALUE=""/>
<LOGLIB VALUE=""/>
<DALLIB VALUE=""/>
<DEFLIB VALUE=""/>
<LONGFILENAME VALUE="Yes"/>
</EXTRACT>
</LBYSCRIPT>
© Copyright 2015, Oracle and/or its affiliates. All rights reserved. Legal notices.