Page 1 of 1

Why can't we use sequential files in CICS?

Posted: Mon Nov 17, 2014 5:09 pm
by Raja Babu
Q: Why can't we use sequential files in CICS?

Answer: In the form of TDQ we can use it but not apart from that.

That was one of the question answer in one interview. But I think it's not that complete. Can someone of you plese tell me why can't we use a sequentail file in a CICS region?

Is it like CICS does not support QSAM access method? Please help with an answer.

Re: Why can't we use sequential files in CICS?

Posted: Mon Nov 17, 2014 8:22 pm
by Robert Sample
CICS is a transactional system: it was designed for someone to pull up a screen of data (often representing a single record), possibly make changes, then apply those changes to the data set / database. The concept of a sequential data set applies to batch systems: a set of records is processed as a group through the system, applying changes and possibly generating reports along the way. There are times when sequential data is handy, hence the TDQ facility of CICS -- but note that TDQ is a limited sequential processing facility. CICS terminal response time targets are often under 1 second, and you simply cannot process a lot of sequential data and maintain those response times.

Re: Why can't we use sequential files in CICS?

Posted: Tue Aug 29, 2023 8:19 pm
by Raja Babu
Thanks Robert. So what is the answer for the question of CICS not allowed to use sequential files? That, CICS won't be able to maintain the response time with in limits?

Re: Why can't we use sequential files in CICS?

Posted: Wed Aug 30, 2023 12:53 am
by Robert Sample
Part of the answer is that sequential data sets aren't very compatible with CICS. Also, consider locking - writing to a sequential data set requires locking at least at the record level and more likely at the data set level to prevent corruption of data. Since you can have thousands of CICS users in a single region, using a sequential data set VASTLY increases the chances of data corruption unless there are stringent locking rules applied.

Re: Why can't we use sequential files in CICS?

Posted: Thu Aug 31, 2023 7:11 pm
by Raja Babu
Thank you Robert, this is really helpful.

Re: Why can't we use sequential files in CICS?

Posted: Sat Sep 09, 2023 6:27 pm
by Neeraj Gugnani
I thought sequential files can be used with CICS even though that's very rare, is not that true?

Re: Why can't we use sequential files in CICS?

Posted: Sat Sep 09, 2023 7:41 pm
by Robert Sample
Transient data queues are used to access sequential data, and they're not really that rare. However, otherwise using a sequential data set in CICS is something I haven't heard of in 46+ years of working with mainframes and CICS.

Re: Why can't we use sequential files in CICS?

Posted: Wed Jan 03, 2024 5:29 pm
by Raja Babu
Transient data queues are used to access sequential data, and they're not really that rare.
They are not sequential files?

Re: Why can't we use sequential files in CICS?

Posted: Wed Jan 10, 2024 3:54 am
by Robert Sample
There are multiple types of TDQs: extrapartition point to sequential files (data sets); intrapartition are only defined and used in the CICS region (there are other types, too). So a TDQ may (or may not) be pointing to a sequential file.

Re: Why can't we use sequential files in CICS?

Posted: Tue Mar 19, 2024 11:33 am
by Raja Babu
Thanks Robert.