Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Need logic to delete 1 record or more in a TSQ

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
View previous topic :: :: View next topic  
Author Message
maxsubrat

New User


Joined: 27 Feb 2008
Posts: 75
Location: india

PostPosted: Tue Mar 20, 2012 6:39 pm    Post subject: Need logic to delete 1 record or more in a TSQ
Reply with quote

Hi, Suppose I have multiple records in a TSQ and I want to delete a single record or multiple records whenever needed.
Please suggest.
Back to top
View user's profile Send private message

Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2502
Location: Atlanta, Georgia, USA

PostPosted: Tue Mar 20, 2012 6:43 pm    Post subject: Reply to: Need logic to delete 1 record or more in a TSQ
Reply with quote

You can't delete one or multiple TSQ items.

You'll have to figure out another method....
Back to top
View user's profile Send private message
Mickeydusaor

Active User


Joined: 24 May 2006
Posts: 258
Location: Salem, Oregon

PostPosted: Wed Mar 21, 2012 7:47 pm    Post subject:
Reply with quote

If you are talking about deleteing an TSQ entry you put on the TSQ queue then yes you can delete that item. you created with some TSQ id and this is what you need to remove it from the TSQ. but if you are talking about deleting just 1 item in the TSQ entry you created then you can not with out first reading the TSQ, removing the the item or record and then rewriting the TSQ again.
Back to top
View user's profile Send private message
Peter cobolskolan

Active User


Joined: 06 Feb 2012
Posts: 104
Location: Sweden

PostPosted: Wed Mar 21, 2012 8:27 pm    Post subject: Re: Reply to: Need logic to delete 1 record or more in a TSQ
Reply with quote

Bill O'Boyle wrote:
You can't delete one or multiple TSQ items.

You'll have to figure out another method....


One method, could be just to Rewrite TS the Item you want to mark as deleted, after you have, e.g moved Low-values to it.
When you later Readq TS an Item that is Low-value, just ignore it and read on...
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Record Not found in AlX but record re... mukun264 COBOL Programming 4 Fri Mar 24, 2017 9:28 am
No new posts Count the length of the record & ... sreekusr DFSORT/ICETOOL 4 Thu Mar 23, 2017 7:52 pm
No new posts IMS DB-How to update a record (a sing... Nic Clouston IMS DB/DC 9 Thu Mar 09, 2017 4:38 pm
No new posts To Merge mutliple records into a sing... anandgbe DFSORT/ICETOOL 6 Wed Feb 22, 2017 8:49 am
No new posts Need help in building a logic Benchwarmer All Other Mainframe Topics 4 Wed Feb 22, 2017 2:49 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us