The SYSCMD macro issues a system command and interprets the results. You can specify message rules to detect the required response message.
Parameters: SYSCMD Macro
Specifies the system command issued by the SYSCMD macro.
The command follows the syntax of the SYSCMD command.
Lets you limit the response messages to those responses from the specified job.
Specifies the maximum time, in seconds, that the region waits for a response message. The time is reset each time a response is received. The macro waits until a message that matches a rule in the Message Text fields is received or until the time expires without receiving any more responses.
Limits: A number from 1 through 9999.
Default: 30
Specifies the value of the macro return code if the expected message does not arrive before the expiry of the time specified in the Wait Time field.
Limits: A number from 1 through 999.
Default: 69
Specifies the initial part of the required response message.
Limits: Up to 45 characters.
Specifies the value set by the macro when it receives the response message.
Limits: A number from 0 through 999.
Indicates whether an extended filter has been defined. This field is empty until you complete the Message Text and Return Code fields. If you want to define an extended filter, enter S to access the Extended Message Filtering panel.
After this panel is completed, the Extended Filter field is updated automatically.
Returned Variables: SYSCMD Macro
Contains the full text of the message that satisfies the message rules.
Contains the words in the message, where n indicates the position of the word in the message.
Contain any messages received before the required response message, where n is a number indicating the order in which those messages are received.
Contains the ID of the last encountered WTOR message if the macro encounters any WTOR messages before it encounters an expected message.
For example, if the response to a command consists of three messages A, B, and C, and message B satisfies the message rules, then:
Example: SYSCMD Macro
In the following example, the SYSCMD macro issues the S DENMIMS1 command and awaits a specified response.
No extended filter has been defined in this example.
PROD----- Automation Services : SYSCMD Macro Parameter Definition ------------- Command ===> Function=BROWSE .- System Command ------------------------------------------------------------. | | | Command ..... S DENMIMS1 | | | | Jobname ..... | | | | Wait Time ... 5 Wait Time Expiry Return Code ... 0 | ’-----------------------------------------------------------------------------’ .- Response Message Analysis -------------------------------------------------. | S=Extended Filter | | Message Text RC Ext Fltr? | | ___ IEF403I DENMIMS1 DENMIMS1 0 NO | | ___ IEF450I DENMIMS1 DENMIMS1 6 NO |
| Copyright © 2011 CA. All rights reserved. | Tell Technical Publications how we can improve this information |