Q
Problem solve Get help with specific problems with your technologies, process and projects.

The best way to do a batch update and delete of records

We need to do a batch update and delete of records on an online CICS file. I'm wondering what the best way to do this is. Use a batch program and do updates and deletes (via EXCI) or make flat file copy and reload the file with only those records that should remain? Which is the better approach if the file has only about 10,000 records and it is a very busy authentication file for operator IDs?


I think the key requirement for this question is the busyness of the file that is being used for Userid authentication/verification. In general, I'm a lot more wary about doing KSDS deletes in more than one place than updates. This is almost certainly an ancient prejudice but that's me.

I worry about buffers held in CICS getting invalidated or worse becoming corrupt in this circumstance.

Closing, rebuilding, reopening the KSDS would be safe but you require access most of the time. Thus, I'd recommend going down the EXCI route (and not thinking about RLS) to ensure the accuracy and accessibility of what you require. This also has the bonus of not trying to delete a record that is currently in use.

Robert Harris
Inventor
CICS Technical Strategist -- CICS expert at Search390.com

Editor's note: Do you agree with this expert's response? If you have more to share, post it in one of our .VO7aaqqaAFk.0@/search390>discussion forums.


This was last published in August 2003

Dig Deeper on Configuration Management and DevOps

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.

-ADS BY GOOGLE

SearchDataCenter

SearchAWS

SearchServerVirtualization

SearchCloudApplications

TheServerSide.com

SearchCloudComputing

DevOpsAgenda

Close