The release_program call – IBM SC33-1683-02 User Manual

Page 359

Advertising
background image

2. A REASON of ‘NO_STORAGE’ with a RESPONSE of ‘EXCEPTION’ means that

there was insufficient storage to satisfy this request, and SUSPEND(NO) was
specified.

3. A REASON of ‘PROGRAM_NOT_FOUND’ is returned if the program has not

been included in the library concatenation, or if the link-edit failed. In such a
case, the program is marked as “not executable”; it must be re-linked before it
can be successfully acquired.

The RELEASE_PROGRAM call

RELEASE_PROGRAM decrements the use count of a currently loaded program by
one.

If the program has been defined with the RELOAD attribute, the storage occupied
by this copy of the program is released.

You should issue the ACQUIRE_PROGRAM and RELEASE_PROGRAM requests
for a single program during the same execution of the exit program. If you do not
want to do this, you should acquire the program once during CICS initialization, and
leave it resident until CICS termination.

RELEASE_PROGRAM

DFHLDLDX [CALL,]

[CLEAR,]

[IN,

FUNCTION(RELEASE_PROGRAM),

ENTRY_POINT(pointer),

{PROGRAM_NAME(name8 | string | 'string')|

PROGRAM_TOKEN(name4)},]

[OUT,

RESPONSE(name1 | *),

REASON(name1 | *)]

ENTRY_POINT(pointer)

specifies the address of the entry point of this copy of the named program.

PROGRAM_NAME(name8 | string | "string")

specifies the name of the program to be released.

name8

The name of a location containing an 8-byte program name.

string A string of characters naming the program.

"string"

A string in quotation marks. The string length is set to 8 by padding with
blanks or truncating.

PROGRAM_TOKEN(name4),

specifies a token identifying the program to be released.

name4

The name of a location containing an 4-byte token obtained by a
previous DEFINE_PROGRAM or ACQUIRE_PROGRAM call.

RESPONSE and REASON values for RELEASE_PROGRAM:

RESPONSE

REASON

OK

None

loader functions

Chapter 3. The user exit programming interface (XPI)

327

Advertising