PROCESS

#### Search Results

Search

# PROCESS

`PROCESS` view-name `USING` `{`operand1=operand2`},` `[GIVING` operand3 `]`

This document covers the following topics:

- PROCESS Usage

- PROCESS Restriction

- PROCESS Syntax Description

For an explanation of the symbols used in the syntax diagram, see Syntax Symbols.

## PROCESS Usage

The `PROCESS` statement is used in conjunction with Entire System Server and Natural Messaging.

Entire System Server allows you to use various operating system facilities such as reading and writing files, VTOC and catalog management, JES queues, etc. See the section Getting Started in the Entire System Server User's Guide for further information on the `PROCESS` statement and its individual clauses.

Natural Messaging is a Natural add-on for z/OS that supports communication with IBM MQ. It allows you to easily access message queues using the `PROCESS` and `FIND` statements. For further information, see Database Management System Interfaces > Natural Messaging in the Natural for z/OS documentation.

## PROCESS Restriction

This statement is only available with Entire System Server and Natural Messaging.

When the `ERROR-CODE` or `ERROR-TEXT` field is included in the view as part of local data, the default Natural system error messages are suppressed. Instead:

- `ERROR-CODE` will contain the error code, and

- `ERROR-TEXT` will contain a descriptive message explaining the exact cause of the error.

This allows the calling Natural program to handle errors programmatically, without triggering a system-level abend or Natural error message.

## PROCESS Syntax Description

Operand Definition Table:

Operand | Possible Structure | Possible Formats | Referencing Permitted | Dynamic Definition
--- | --- | --- | --- | ---
`operand1` | C | S |  |  |  | A |  | N | P |  |  | B |  |  |  |  |  |  | yes | no
`operand2` | C | S |  |  |  | A | U | N | P |  |  | B |  |  |  |  |  |  | yes | no
`operand3` |  | S |  |  |  | A |  | N | P |  |  | B |  |  |  |  |  |  | yes | no

Syntax Element Description:

Syntax Element | Description
--- | ---
`view-name` | View Name: Name of the view used.
`USING` | USING Clause: The `USING` clause is used to pass parameters. This is done by assigning a value (`operand2`) to a field (`operand1`) in a view. Note Multiple specifications of `operand1`=`operand2` must be separated either by the input delimiter character (as specified with the session parameter `ID`) or by a comma.
`GIVING` | GIVING Clause: The `GIVING` clause is used to specify the fields (`operand3`) for which values are to be returned. Each field must be defined in a view.

### On this page

- PROCESS Usage
- PROCESS Restriction
- PROCESS Syntax Description