Previous Topic Next topic Print topic


TP-PERFORM

Perform a paragraph, with or without passing arguments.
Restriction: This topic applies only when the AppMaster Builder AddPack has been installed, and applies only to Windows platforms.

Targets:

  • CICS
  • DLG
  • IMS DC

Syntax: for Format 1

Perform a paragraph

TP-PERFORM paragraphname

Syntax: for Format 2

Perform a paragraph and pass arguments

TP-PERFORM paragraphname actualargument1[[,]
... actualargument2[,] ... actualargument8]
          .
paragraphname ([+|-]formalargument1[[,]
... [+|-]formalargument2[,] ... [+|-
]formalargument8])

General Rules:

  1. When continuing a list of arguments onto one or more other lines, do not break an argument.
  2. The number of actual arguments must equal the number of formal argument names and be in the same order.

Parameters:

+|-

A plus (+) or minus (-) sign preceding a formalargument passes values between actual arguments and formal arguments, as follows.

With a plus sign (+), PERFORM passes the actualargument value to formalargument after the paragraph executes. The program does not return the formalargument value to actualargument.

With a minus sign (-), PERFORM passes the formalargument value to the actualargument after the paragraph executes.

If there is no prefix, the PERFORM passes the actualargument to its corresponding formalargument. After the paragraph executes, PERFORM passes the formalargument back to its corresponding actualargument.

actual-argument

Values you send or receive from a formalargument in the paragraph; can be literals, identifiers, arithmetic expressions, or index names.

formal-argument

Values you receive from or send to an actualargument in the PERFORM statement.

paragraph-name

Name of paragraph to perform.

Previous Topic Next topic Print topic