MQSeries only – message options and property values that accept a size accept the following syntax as a size specification. Message options and property values that accept a size specification accept the following syntax as a size specification for MQSeries.
sizespec ::= integer_number [ sizespec_units ]
sizespec_units ::= { M | K }
is the size.
is kilobytes.
is megabytes.
is the size specification in megabytes (M) or kilobytes (K), or bytes.
If you do not provide sizespec_units, the default is bytes.
shows the size specification for 100MB:
-- Specify buffer length to be 100 megabytes select msgrecv('ibm_mq:channel1/tcp/host1(5678)?' + 'qmgr=QM1,queue=SYSTEM.DEFAULT.LOCAL.QUEUE' option 'bufferLength=100M')
shows the size specification for 300K:
-- Specify buffer length to be 300 kilobytes select msgrecv( 'ibm_mq:channel2/tcp/host2(5678)?qmgr=QM2,remote_qmgr=QM3,queue=QM3.Q' option 'bufferLength=300K')
MQSeries – shows the size specification for 1MB:
-- bufferLength specified as 1 megabyte select msgrecv( 'ibm_mq:channel1/tcp/host1(5678)?qmgr=QM1,queue=DEFAULT.QUEUE' option 'bufferLength=1M')
MQSeries – shows the size specification for 10K:
-- bufferLength specified as 10K select msgrecv( 'ibm_mq:channel1/tcp/host1(5678)?qmgr=QM1,queue=DEFAULT.QUEUE' option 'bufferLength=10K')
Copyright © 2005. Sybase Inc. All rights reserved. |
![]() |