ledit [Update=]library [options]*
(+|-)Clear (-) (+|-)error_Stop (+) (+|-)Verbose (-) Append=file,file,... Delete=symbol,symbol,... Extract=symbol[>file],symbol[>file],... Include=file,file,... indeX=file,file,... Replace=file,file,...
extract=sym1,sym2>xyz
the module associated with "sym1" will be written into a file called "sym1" and the module associated with "sym2" will be written into "xyz". Files are created if they do not already exist.
Include=file Append=file Delete=symbol Extract=symbol>file Replace=file
The LEDIT instructions given in an index file are executed in the order they appear in the file. A line in an index file may also have the form
!command
in which case "command" is executed as a TSS command.
LEDIT lets you change the contents of a random LD object library, by replacing or deleting individual object decks within the library.
The object decks are always referred to by one of their primary SYMDEFs. Decks are deleted as required to insure the uniqueness of this naming method.
If "Update=" is used to specify the name of the library, the "Include=" keyword may be omitted for modules, as in
ledit u=lib mod
If "Update=" is not used to introduce the name of the library, the "Include=" keyword must be used, as in
ledit lib i=mod
A command line may have any number of Include, Delete, Extract, or indeX directives. Directives appearing on the command line are handled first, in the following order:
After this, directives from index files are executed, line by line. With each line in an index file, the directives are executed in the same order as the command line: Extracts, then Deletes, then Includes. Index files are processed in the order they appear on the command line.
The following examples show examples of how to use LEDIT.
ledit mylib i=fc*o*
edits the modules in the file "fc*o*" into the library "mylib". If "mylib" is of bad format, LEDIT will not overwrite it.
Users should note that the syntax of the "Extract=" option differs from previous releases and that the minimal abbreviation is now "E=".
LEDIT can be used in batch with JCL of the following form:
$ program ledit $ limits ,25k $ prmfl **,r/c,r,cmdlib/ledi $ data cz <LEDIT command line goes here>
For example, the following JCL illustrates a compile and library update.
$ select &system/profile.prod/nsc $ run rufile=&cv00rp/nsc_ru $ file o*,o1s,1r Pass the object on $ data cz nsc /mysource.c form=ld $ program ledit $ limits ,25k $ prmfl **,r/c,r,cmdlib/ledi $ prmfl ot,w,r,/mylibrary $ file o*,o1r $ data cz ledit update=fc*ot fc*o* $ endjob
Copyright © 1996, Thinkage Ltd.