Temporary storage queue services

Methods JCICS class EXEC CICS Commands
delete() TSQ DELETEQ TS
readItem(), readNextItem() TSQ READQ TS

writeItem(), rewriteItem()
writeItemConditional()
rewriteItemConditional()

TSQ WRITEQ TS

JCICS support for the temporary storage commands is described below.

DELETEQ TS
You can delete a temporary storage queue (TSQ) using the delete() method in the TSQ class.
READQ TS
The CICS INTO option is not supported in Java programs. You can read a specific item from a TSQ using the readItem() and readNextItem methods in the TSQ class. These methods take an ItemHolder object as one of their arguments, which will contain the data read in a byte array. The storage for this byte array is created by CICS and is garbage-collected at the end of the program.
WRITEQ TS
You must provide data to be written to a temporary storage queue in a Java byte array. The writeItem() and rewriteItem() methods suspend if a NOSPACE condition is detected, and wait until space is available to write the data to the queue. The writeItemConditional() and rewriteItemConditional() methods do not suspend in the case of a NOSPACE condition, but return the condition immediately to the application as a NoSpaceException.