Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 82
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: 2504
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 Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts Updating the Trailer count in variabl... satheshbabur DFSORT/ICETOOL 6 Wed Aug 30, 2017 9:49 pm
No new posts Skip file from delete pema_yozer All Other Mainframe Topics 3 Tue Aug 29, 2017 3:19 pm
No new posts Repeat part of record multiple times Learncoholic DFSORT/ICETOOL 4 Tue Aug 29, 2017 11:33 am
No new posts Delete IMS remote transaction when MO... Sam Singh IMS DB/DC 0 Wed Aug 23, 2017 9:12 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us