Visara Master Console Center Scripting Guide Uživatelský manuál Strana 165

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 262
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 164
Chapter 5 Script Commands
Scripting Guide 165
commands does not function with an OS that uses an RS232 or
Telnet connection with the no_printer flag defined.
8. The maximum number of QOPEN commands that can be included
in one script is 256.
Example:
//===================================================
//EXAMPLE 1: One input
//===================================================
//Read msgs from the OS the script is running on
%QID := QOPEN( )
IF %QID == ERROR //if error
LOG( LOG_EXEC, “ERROR: can’t open Queue”,
STATUS_ERROR)
ELSE
//continue code here
ENDIF
RETURN
//===================================================
//EXAMPLE 2: Multiple inputs
//===================================================
//Read msgs from the Beta1 and AIX OSs
%OSArray[ 1] := OBJID( OS, ”3090:Beta1”)
%OSArray[ 2] := OBJID( OS, ”RS6000:AIX”)
//This queue will have msgs from Beta1 & AIX OS
%QueueID:= QOPEN( %OSArray)
IF %QID == ERROR //if error
LOG( LOG_EXEC, “ERROR: can’t open Queue”,
STATUS_ERROR)
ELSE
//continue code here
ENDIF
RETURN
//===================================================
//EXAMPLE 3: Multiple inputs
//===================================================
// Using the OSIDArray, from the OBJID examples:
%QueueID := QOPEN( %OSIDArray)
IF %QID == ERROR //if error
LOG( LOG_EXEC, “ERROR: can’t open Queue”,
STATUS_ERROR)
ELSE
//continue code here
ENDIF
RETURN
See Also:
QCLOSE, QREAD, QSKIP
Zobrazit stránku 164
1 2 ... 160 161 162 163 164 165 166 167 168 169 170 ... 261 262

Komentáře k této Příručce

Žádné komentáře