beautypg.com

Visara Master Console Center Scripting Guide User Manual

Page 251

background image

Appendix B Command Syntax

Scripting Guide

251

MVSCOMMAND

Event

Enters commands to MVS using the GW-MVS
agent (optional software).

MVSCOMMAND( %ObjID, $CmdArray, $Output
Array, %ErrArray $ErrorTextArray[, %PortID] [,

$JobName] [, $Filter1] [, $Filter2] [, $Filter3] [,

%MvsMsgCount] [, %MvsResponseTime] ) ==>
%ReturnValue

OBJEXEC

Object

Manager

Executes an action on an object.

OBJEXEC(%ObjID,$Action[,Parms…])==>ReturnVa

lue

OBJGET

Object

Manager

Returns the current value in an object’s field. OBJGET(%ObjID,$ObjFieldName)==>$Current

Value

OBJGETARRAY

Object

Manager

Populates an associative string array with the

current field values from an object.

OBJGETARRAY(%ObjID,$AssocArray)==>%Suc

cess

OBJID

Object
Manager

Returns the ID (unique only for the particular
script thread) for a MCC object.

OBJID(%Class,$ObjKeyExpr)==>%ObjectID

OBJIDARRAY

Object

Manager

Returns the number of children of the

selected object ID.

OBJIDARRAY( %Class, %ObjIDParent,

%AssocArray)==> %Children

OBJSET

Object

Manager

Populates an associative numeric array with

object IDs from the children of a parent object.

OBJIDARRAY(%Class,%ObjIDParent,%AssocArra

y)

OBJSET

Object

Manager

Sets the current value in an object’s field.

OBJSET(%ObjID,$ObjFieldName,$NewValue)==>%Er

rCode

OBJSETARRAY

Object
Manager

Sets the field values for an object from an
associative string array.

OBJSETARRAY(%ObjID,$AssocArray)==>%Suc
cess

PARMS

Variable

Receives parameters into the script.

PARMSvar1[,var3,…,[varn]…]]]

PORT

Console

Message

Returns the port number for a console definition. PORT(%Class[,$IconName])==>%Port

QCLOSE

Console

Message

Closes a message queue.

QCLOSE(%QueueID)