WRITEQ TS/TD
| COBOL |
Java |
| EXEC CICS WRITEQ TS/TD |
ibmCics.writeQ |
Syntax
ibmCics.writeQ(new WriteQOptions()
.queue(<Queuename>)
.from(<From>)
[.writeQtd(true)]
[.length(<Length>)]
[.numItems(<NumItems>)]
[.item(<Item>)]
[.rewrite(true)]
[.sysId(<SysID>)]
[.noHandle(true)]
);
Parameter(s)
<Queuename>
The queue where the data will be written to.
<From>
The data to be written to the queue.
WriteQtd
Optional Boolean. Set to true to write a transient data queue (TD) instead of a temporary storage (TS) queue. Default is false.
<Length>
Optional length of the data to be written.
<NumItems>
Optional number of items to be written.
<Item>
Optional item number of the record to be replaced in the queue.
Rewrite
Option Boolean. Set to true to overwrite existing records in the queue.
<SysID>
Optional system identifier.
noHandle
Optional Boolean. If set to true, exceptions created by this command will be ignored.
Example(s)
| COBOL |
Java |
EXEC CICS
WRITEQ TS
QUEUE (WS-TSQUEUE)
FROM (WS-DATA)
LENGTH (+4)
ITEM (WS-TSQUEUE-ITEM)
END-EXEC.
|
ibmCics.writeQ(new WriteQOptions()
.queue(locDef.ws_Tsqueue.toString())
.from(locDef.ws_Data)
.length(4)
.item(locDef.ws_Tsqueue_Item)
);
|
EXEC CICS
WRITEQ TD
QUEUE (WS-TDQUEUE)
FROM (WS-DATA)
LENGTH (WS-TDDATA-LENGTH)
END-EXEC.
|
ibmCics.writeQ(new WriteQOptions()
.queue(locDef.ws_Tdqueue.toString())
.from(locDef.ws_Data)
.writeQtd(true)
.length(locDef.ws_Tddata_Length)
);
|