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: 78
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 Read two inputs and write into output... murali.andaluri DFSORT/ICETOOL 6 Wed Jul 26, 2017 7:35 pm
No new posts Need to write record of PS File in ex... Chandan1993 JCL & VSAM 1 Wed Jun 07, 2017 1:35 am
No new posts Adding big TEXT lines to each record ... bshkris SYNCSORT 4 Sat May 06, 2017 1:40 am
This topic is locked: you cannot edit posts or make replies. Merge two files and update Trailer re... Yashashri JCL & VSAM 1 Thu May 04, 2017 12:54 pm
No new posts Sort Large record length cmsmoon DFSORT/ICETOOL 14 Tue Apr 11, 2017 5:49 pm


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