How to read 10th record of TSQ directly and how to delete ?



Support for OS/VS COBOL, VS COBOL II, COBOL for OS/390 & VM and Enterprise COBOL for z/OS

How to read 10th record of TSQ directly and how to delete ?

Postby ganeshvrnj » Sun Mar 06, 2016 8:37 pm

How to read 10th record of TSQ directly and how to delete the 10th record of the TSQ ?
ganeshvrnj
 
Posts: 6
Joined: Wed Mar 02, 2016 10:03 am
Has thanked: 0 time
Been thanked: 0 time

Re: How to read 10th record of TSQ directly and how to delet

Postby Robert Sample » Sun Mar 06, 2016 10:17 pm

The first part of your question is easily answered by the Application Programming Reference manual in the CICS bookshelf. As for the second part of your question, there is no CICS API command to delete an item from a TS queue (TS queues have items, not records). You could read in the entire queue, delete it, then put it back out without the item you want to remove.
Robert Sample
Global moderator
 
Posts: 3720
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 times


Return to IBM Cobol

 


  • Related topics
    Replies
    Views
    Last post