Previous Topic: EXCUSRPGM User Function

Next Topic: EXCUSRSRC User Function

Example

The EXCUSRPGM function can be used to call IBM supplied programs such as the QDCXLATE program to translate a string.

The program translates a given string of a given length to uppercase using the QSYSTRNTBL table. A system-supplied table carries out lowercase to uppercase conversion.

The following table shows the parameters available.

Parameters

Usage

Role

Default

Option

Any field required by program

I/O/B

-/VRY

-

O

The following table shows the function options available.

Options

Default Value

Other Values

Execution location

W

S

Generate error routine

M(YERRRTN)

Y, N

Overrides if submitted job

*

F