z/OS MVS Program Management: User's Guide and Reference
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Examples

z/OS MVS Program Management: User's Guide and Reference
SA23-1393-00

Example 1

This example shows three uses of the LIBRARY statement:
//           EXEC   PGM=IEWBLINK,PARM='LET,XREF,LIST'
//TESTLIB    DD     DSNAME=PROJECT.TESTLIB,DISP=SHR
             .
             .
             .
//SYSLIN     DD     *
  LIBRARY TESTLIB(DATE,TIME),(FICACOMP),*(STATETAX)
/*

As a result, members DATE and TIME from the additional library TESTLIB are used to resolve external references. FICACOMP and STATETAX are not resolved; however, because the references remain unresolved, the LET option must be specified on the EXEC statement if the module is to be marked executable. In addition, STATETAX will not be resolved in any subsequent reprocessing by the binder.

Example 2

Here is a sequence of LIBRARY statements to help explain the statement's rules.

In the following example, foo and bar can be resolved from MYLIB, but nothing else can be resolved from it:

  LIBRARY MYLIB(foo)
  LIBRARY MYLIB(bar)
* If we stop here both foo and bar can be resolved from MYLIB,
* but nothing else can be resolved from it.
  LIBRARY MYLIB
* Now MYLIB can be used to resolve any symbols.
  LIBRARY (bar)
* "bar" can no longer be resolved from MYLIB or anywhere else.
  LIBRARY MYLIB
* This doesn't change anything. MYLIB can still be used to resolve
* any symbol other than "bar".
  LIBRARY MYLIB(bar)
* "bar" can once again be resolved from MYLIB.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014