Previous Topic: SEND StatementNext Topic: SQL Statements


WAIT Statement

The WAIT statement causes the LDMAMS utility to wait until an application on a remote system becomes active.

Syntax

WAIT [[APPL(name1)] [LIMIT(minutes)] [QUAL(name2)]]

Parameters

APPL

Primary ID of the test application that receives data. This ID must match the primary ID of the receiving application, which is specified on the COMMTEST statement that creates the application.

Default: The name of the current LDMAMS job or previous value. See the Notes section.

LIMIT

Number of minutes that the test application waits. If the receiving application is not running by then, the sending application ends.

Default: 60 or previous value. See the Notes section.

QUAL

Secondary ID of the test application that receives data. This ID must match the secondary ID of the receiving application, which is on the COMMTEST statement that creates the application.

Default: COMMTEST or previous value. See the Notes section.

Notes:

Example

To wait until application TESTAPP SYS2 is active before sending test data, specify this statement as input to your LDMAMS job:

WAIT APPL(TESTAPP) QUAL(SYS2)