IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Need logic to delete 1 record or more in a TSQ


IBM Mainframe Forums -> CICS
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
maxsubrat

Active User


Joined: 27 Feb 2008
Posts: 110
Location: india

PostPosted: Tue Mar 20, 2012 6:39 pm
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: 2501
Location: Atlanta, Georgia, USA

PostPosted: Tue Mar 20, 2012 6:43 pm
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CICS

 


Similar Topics
Topic Forum Replies
No new posts How to split large record length file... DFSORT/ICETOOL 7
No new posts DELETE SPUFI DB2 1
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts DSNTIAUL driven delete IBM Tools 0
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
Search our Forums:

Back to Top