Rational Developer for System z
PL/I for Windows, Version 8.0, Programming Guide

Using FETCH and RELEASE in your main program

The SAMPLES directory also contains DRIVER2.PLI which is a modified version of DRIVER1.PLI that uses FETCH and RELEASE statements to dynamically link the SORT.DLL routines at run time instead of at load time.

The main advantage of using this version of the DRIVER program is that you can control when the sort routines are brought into and released from memory. Using FETCH and RELEASE statements, however, might increase your program's execution time.

Use the following sequence of commands to compile, link, and run this version of the DRIVER program under Windows:

  1. pli sort
  2. ilib /geni sort.def
  3. ilink /dll /out:sort.dll sort.obj sort.exp
  4. pli driver2
  5. ilink driver2.obj /stack:80000
  6. driver2

Terms of use | Feedback

This information center is powered by Eclipse technology. (http://www.eclipse.org)