Vous êtes sur la page 1sur 3

Queues - daily tasks

Local Queue

New Local Queue


================
DEFINE QLOCAL(’LQ_NAME’) +
DESCR (’description’) +
DEFPSIST(NO) +
TRIGTYPE (FIRST) +
MAXDEPTH(200000) +
MSGDLVSQ(PRIORITY) +
USAGE(NORMAL) +
QDEPTHHI (80) +
QDEPTHLO (20) +
REPLACE

DEFPSIST(NO)         -> Persistant YES/NO


TRIGTYPE (FIRST)     -> Trigger type
MAXDEPTH(20000)      -> Max depth
MSGDLVSQ(PRIORITY)   -> Message delivery meth
USAGE(NORMAL)        -> Queue usage (NORMAL/XMITQ)
QDEPTHHI (80)        -> High Queue depth
QDEPTHLO (20)        -> Low queue depth
REPLACE                 -> Replace if existing

Change the Queue properties


============================
alter qlocal LQ_NAME [property]

Display Queue properties


========================
display qlocal LQ_NAME

Give permissions to Queue


==========================
setmqaut -m LQ_NAME -n QM_NAME -t queue -g group/user [+browse +get +dsp +put]

Display existing permissions


=============================
dspmqaut -m LQ_NAME -n QM_NAME -t queue -g group/user

Transmit Queue

New Transmit Queue


==================
DEFINE QLOCAL(’XQ_NAME’) +
DESCR (’Description’) +
DEFPSIST(NO) +
TRIGTYPE (FIRST) +
MAXDEPTH(200000) +
MSGDLVSQ(PRIORITY) +
USAGE(XMITQ) +
QDEPTHHI (80) +
QDEPTHLO (20) +
REPLACEDEFPSIST(NO)         -> Persistant YES/NO
TRIGTYPE (FIRST)     -> Trigger type (if present)
MAXDEPTH(20000)      -> Max depth
MSGDLVSQ(PRIORITY)   -> Message delivery meth
USAGE(XMITQ)        -> Queue usage (XMITQ)
QDEPTHHI (80)        -> High Queue depth
QDEPTHLO (20)        -> Low queue depth
REPLACE                 -> Replace if existing

Change the Queue properties


============================
alter qlocal XQ_NAME [property]

Display Queue properties


========================
display qlocal LQ_NAME

Give permissions to Queue


==========================
setmqaut -m XQ_NAME -n QM_NAME -t queue -g group/user [+browse +get +dsp +put]

Display existing permissions


=============================
dspmqaut -m LQ_NAME -n QM_NAME -t queue -g group/user

Remote Queue

New Remore Queue


=================
DEFINE QREMOTE (’RQ_NAME’) +
DESCR(’Description’) +
PUT(ENABLED) +
EFPSIST(NO) +
MAXDEPTH(200000) +
MSGDLVSQ(PRIORITY) +
XMITQ(’XQ_NAME’) +
TRIGTYPE (FIRST) +
RNAME(’RLQ_NAME’) +
RQMNAME(’RQM_NAME’) +
QDEPTHHI (80) +
QDEPTHLO (20) +
REPLACEDEFPSIST(NO)         -> Persistant YES/NO
TRIGTYPE (FIRST)     -> Trigger type (if present)
MAXDEPTH(20000)      -> Max depth
MSGDLVSQ(PRIORITY)   -> Message delivery meth
PUT                  -> Put (enable/disable)
XMITQ                -> Transmit Queue name
RNAME                -> Remore local queue name
RQNAME               -> Remote Queue Manager name
QDEPTHHI             -> High Queue depth
QDEPTHLO             -> Low Queue Depth
REPLACE                 -> Replace if existing

Change the Queue properties


============================
alter qremote RQ_NAME [property]

Display Queue properties


========================
display qremote RQ_NAME

Give permissions to Queue


==========================
setmqaut -m RQ_NAME -n QM_NAME -t queue -g group/user [+browse +get +dsp +put]

Display existing permissions


=============================
dspmqaut -m LQ_NAME -n QM_NAME -t queue -g group/user

Vous aimerez peut-être aussi