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: 72
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 JCL to delete component in a package sundaram.naveen Compuware & Other Tools 14 Tue Nov 29, 2016 6:21 pm
No new posts How to update a portion of text in a ... Bill Woodger DFSORT/ICETOOL 25 Wed Nov 09, 2016 9:41 pm
No new posts How to delete second instance from Fl... Gunapala CN DFSORT/ICETOOL 6 Tue Oct 18, 2016 11:42 pm
No new posts sort with previous record anatol DFSORT/ICETOOL 9 Thu Oct 06, 2016 2:36 am
No new posts Get Record count in summary record fo... Atul Banke DFSORT/ICETOOL 21 Fri Sep 23, 2016 4:17 pm


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