Interview Questions   Tutorials   Discussions   Programs   

CICS - What is the command for reading a record form a TSQ?




317
views
asked mar August 19, 2014 10:54 AM  

What is the command for reading a record form a TSQ?


           

1 Answers



 
answered By Mswami   0  
READQ TS:

Reads data from a temporary storage queue.

Syntax:

   READQ TS
 
>>-READQ TS--QUEUE(name)--+-INTO(data-area)-+------------------->
                    '-SET(ptr-ref)----'
 
>--+-------------------+--+----------------------+-------------->
   '-LENGTH(data-area)-'  '-NUMITEMS(data-value)-'
 
   .-NEXT-------------.
>--+------------------+--+-------------+-----------------------><
   '-ITEM(data-value)-'  '-SYSID(name)-'
 

Conditions: INVREQ, IOERR, ISCINVREQ, ITEMERR, LENGERR, NOTAUTH, QIDERR, SYSIDERR

Note: LENGTH is required with INTO for C or C++ programs.

 
Description:

READQ TS retrieves data from a temporary storage queue that is in either main or auxiliary storage. In the latter case, the queue can reside on a remote system.

The following example shows how to read a specific record from a temporary storage queue into a data area that is specified in the request:

EXEC CICS READQ TS
   QUEUE(UNIQNAME)
   INTO(DATA)
   LENGTH(LDATA)
   ITEM(IDATA)
flag   
   add comment

Your answer

Join with account you already have

FF

Preview


Ready to start your tutorial with us? That's great! Send us an email and we will get back to you as soon as possible!

Alert