Visara Master Console Center Scripting Guide Manuale Utente Pagina 165

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 262
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 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
Vedere la pagina 164
1 2 ... 160 161 162 163 164 165 166 167 168 169 170 ... 261 262

Commenti su questo manuale

Nessun commento