18.08.2013 Views

(SYSLIB) Programming Reference Manual - Public Support Login ...

(SYSLIB) Programming Reference Manual - Public Support Login ...

(SYSLIB) Programming Reference Manual - Public Support Login ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>SYSLIB</strong> Access Methods<br />

All the <strong>SYSLIB</strong> routines are available as relocatable elements. The routines listed at the<br />

beginning of this section are also available as common bank routines. For the <strong>SYSLIB</strong><br />

routines CABSAD$, CONWRD$, CRELAD$, GETPSF$, ID$, INFOR$, MFDSP$, and<br />

SFDT$, <strong>SYSLIB</strong> provides procedures that generate the calling sequence to access these<br />

routines. These procedures have been provided for the convenience of the calling<br />

program. Through the use of a parameter on the procedure call, they allow the calling<br />

program to access the relocatable version of the <strong>SYSLIB</strong> routine, the common bank<br />

version of the <strong>SYSLIB</strong> routine using the I$BJ calling sequence or the common bank<br />

version of the <strong>SYSLIB</strong> routine using the Auto Switch calling method.<br />

One of the advantages of using these procedures is that if a change to the calling<br />

sequence of the routine has to be made, an internal change to the <strong>SYSLIB</strong> calling<br />

procedure can also be made, and the calling program can remain the same. For the<br />

<strong>SYSLIB</strong> routines that do not have a procedure provided to generate the calling sequence,<br />

the calling program must explicitly code these instructions. The method for calling a<br />

particular <strong>SYSLIB</strong> routine is contained in the chapter describing the routine. Some<br />

general considerations on the different types of calls are given in the following<br />

subsections.<br />

3.1. Relocatable Collection Method<br />

The Relocatable Collection method causes the <strong>SYSLIB</strong> relocatable element to be<br />

collected into the calling program and become an integral part of it. Once this has been<br />

done, the resulting absolute element will not be affected by any changes made to the<br />

version of <strong>SYSLIB</strong> on the system. In other words, any <strong>SYSLIB</strong> routines the program<br />

requires are retrieved from the system library file and collected along with the other<br />

relocatable elements of the program to form an absolute element. If this type of call to<br />

<strong>SYSLIB</strong> is used, the resulting absolute can be transported from one system to another<br />

without regard as to what level of <strong>SYSLIB</strong> is on the other machine. Also, any changes<br />

made to <strong>SYSLIB</strong> after the program has been collected have no effect on how the<br />

program performs.<br />

For the <strong>SYSLIB</strong> routines that have a procedure to generate the calling sequence, this is<br />

the type of call that is generated as the default if the Common Bank call or Auto Switch<br />

call are not requested.<br />

3–2 7833 1733–004

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!