Common Messaging Interface Call Routines |
Transports supported: | MSMQ, Rendezvous, Rendezvous-CM |
Syntax | |
Arguments | |
Details | |
Example |
Syntax |
CALL GETMODEL(transport, name, storage, rc, props, value1, <, value2, value3,...>) |
Character, input
Specifies the transport that is associated with this model. MSMQ, Rendezvous, and Rendezvous-CM are the only valid transports for this CALL routine.
Character, input
Identifies the dynamic model.
Character, input
Specifies the location for the model definition. The REGISTRY location is valid.
Numeric, output
Provides the return code from the CALL routine. If an error occurs, then the return code is nonzero. You can use the SAS function SYSMSG() in order to obtain a textual description of the return code.
Character, input
Identifies one or more properties to be queried.
Character or numeric, output
Identifies one or more queue properties to be queried. This parameter is a character string with each applicable output variable separated by a comma.
Details |
You must associate a variable with each property that is identified by props.
For MSMQ, the following properties are valid:
AUTHENTICATE character BASEPRIORITY numeric JOURNAL character JOURNALQUOTA numeric LABEL character PRIVLEVEL character QUOTA numeric TRANSACTION character TYPE binary string
For Rendezvous and Rendezvous-CM, the following transport properties are valid:
DAEMON character NETWORK character SERVICE character
For Rendezvous-CM only, the following transport properties are valid:
CMNAME character LEDGER character RELAYAGENT character REQUESTOLD character SYNCLEDGER character
Example |
The following example obtains an MSMQ model queue definition in the SAS registry:
length msg $ 200; length rc 8; length auth priv $ 10; length label $ 80; rc=0; auth=''; priv=''; label=''; call getmodel('MSMQ', 'MYMODEL', 'REGISTRY', rc, 'AUTHENTICATE,PRIVLEVEL,LABEL', auth, priv, label); if rc ^= 0 then do; put 'GETMODEL: failed'; msg = sysmsg(); put msg; end; else do; put 'GETMODEL: succeeded'; put 'authenticate = ' auth; put 'privacy level = ' priv; put 'label = ' label; end;
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.