COMMAND Macro

The COMMAND macro issues a product command and interprets the results. It also lets you specify message text to detect the required response message.

Parameters: COMMAND Macro

Returned Variables: COMMAND Macro

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: COMMAND Macro

In the following example, the COMMAND macro executes the SHOW ALLOC=RAMLOG01 command and waits for a response message. In this case, that message is N15115 RAMLOG01 ALLOCATED SOLVBSYS hh.mm.

If this message is not received within 30 seconds, the return code is set to 69.

An extended filter checks for the value of hh.mm. More information about the completion of the Extended Message Filtering Panel is available from the online help.

PROD----- Automation Services : COMMAND Macro Parameter Definition ----------- Command ===> Function=UPDATE .- Command Details -----------------------------------------------------------. | | | Command ..... SHOW ALLOC=RAMLOG01 | | | | Wait Time ... 30 Wait Time Expiry Return Code ... 69 | '-----------------------------------------------------------------------------' .- Response Message Analysis -------------------------------------------------. | D=Delete Extended Filter S=Extended Filter | | | | Message Text Return Extended | | Code Filter? | | N15115 RAMLOG01 ALLOCATED SOLVBSYS 0 YES |

PROD--------- Automation Services : Extended Message Filtering ---------------- Command ===> Function=UPDATE . Extended Filter Definition -------------------------------------------------. | | | Message Text .......... N15115 RAMLOG01 ALLOCATED SOLVBSYS | | | | Wildcard Character .... * | '-----------------------------------------------------------------------------' . Message Text Analysis ------------------------------------------------------. | | | Strt Word Scan | | Pos Num Opr Text | | 1 001 005 LT 07.00 | | 2 | | 3 | | 4 | | 5 | | | | Expression e.g (1 and (2 or 3)) | '-----------------------------------------------------------------------------' F1=Help F2=Split F3=OK F9=Swap F12=Cancel


Copyright © 2010 CA. All rights reserved.