Mainframes 360
The one stop destination for System Z professionals

Tuesday, November 6, 2012

Pseudo-conversational Programs

Pseudo-conversational coding technique 
CICS allows many users to log on and use CICS concurrently. Computer main storage is finite. If numerous users are running transactions, that demand considerable main storage, a Short-On-Storage(SOS) condition could occur, causing delays.

Pseudo-conversational programming is a coding technique, that results in the program being loaded into memory when required and released during the operator “think time”. Resources are not held.

Shared Code, Re-entrancy
CICS employs several task-management techniques to efficiently utilize computer memory. One such technique is shared-code. If two passengers are to book their railway tickets at a time, there will be two instances of the BOOK transaction viz, task X and task Y. On CICS, task X and task Y will share the same program-code, and merely have their own separate copies of working storage areas in memory. This significantly reduces the computer memory used.

Shared-code may be shared, after a user is completely finished with it(serially reusable), or may be shared, even if the first user is not finished(reentrant).

You see, CICS allows multi-tasking. Two or more tasks X and Y can run simultaneously. Behind the scenes, time is sliced into equal slots, say 2 seconds. Task X is run for 2 seconds, then it is interrupted, and task Y is run for 2 seconds, it is interrupted, and again task X is run for 2 seconds and so forth. CICS switches back-and-forth between the two tasks in a round-robin fashion.


This is possible only, if CICS applications are re-entrant. On the CICS environment, IBM uses the term quasi-reentrant. If a mid-execution stop can occur anywhere in the program, the program code is said to be completely reentrant. If execution can stop only at I/Os or system calls, the program code is said to be quasi-reentrant. Making CICS programs reentrant is generally done automatically, when you supply the RENT option while compiling CICS programs.

To many people who are thrown to work at a mainframe computer on their first job, they feel lost. Mainframe people seem to speak a completely different language and that doesn't make life easy. What's more, the books and manuals are incredibly hard to comprehend.

"What on earth is a Mainframe?" is an absolute beginner's guide to mainframe computers. We'll introduce you to the hardware and peripherals. We'll talk about the operating system, the software installed on a mainframe. We'll also talk about the different people who work on a mainframe. In a nutshell, we'll de-mystify the mainframe.

Readers based in India, can buy the e-book for Rs. 50 only or the print book. International readers based in the US and other countries can click here to purchase the e-book.