Showing posts with label mainframe tutorial. Show all posts
Showing posts with label mainframe tutorial. Show all posts

Wednesday, 9 October 2013

Difference between Batch Processing and Interactive Processing


Batch Processing - If we want to run bulk of mainframe files more than one time


The huge volume set of input file running bulk with out user interation. Those input data are saved in Mainframe files and executed by Batch Process.

The jobs are setup made up without any ineractions, The operators specify the below inforamtion correctly in batch job

1) collection of input files
2) And specify the ouput files where we get the output.

While the user submit (SUB) the job, the system Automatically takes the bulk of input data from files and prcessed and saved those result in output file without any manual interaction.



Example :


he way credit card companies process billing is a very good example of batch processing. The credit card owner does not receive a bill for each separate credit card purchase. Instead the bill is created using a batch process and the data are stored there. At the end of the month or the billing cycle, the data are collected as a batch process and the card holder gets the bill for the whole months transaction.




Interactive Processing - Here they ask the input files and ouput files information each an everytime. 


Here user give the input and submit the job and get the ouput files. we get the ouput immediately. Then user specify the some other input and submit the job and get the ouput. So the  input-output-input cycle continue still we get the expected result with user interactions.

This is called Interactive Processing


Example:


An example of an interactive processing system is where an insurance company can make changes to a customer's household insurance, e.g. while the customer is on the phone. The insurance clerk simply calls up details of the customer's policy on the screen, and types in any required changes which immediately update the customer's records. A report of the change would be automatically generated and a copy sent to the customer.

CICS Meaning


This is Transaction Server.

CICS can manage large volumes of transactions. CICS allows transactions to run concurrently at the same time serving many online users.

CICS offers ACID properties. CICS allows sharing of data and resources.

Different CICS services are exposed through a rich set of API(Application programming interface) commands.

To make Cobol program(s) interactive, we code special CICS API commands in the program. CICS programs are not very different from ordinary Cobol programs.


Transaction : 


A transaction is the basic unit-of-work in online systems. A transaction runs one or more  programs to process the data. A user types the input data on the computer screen, and presses Enter to start the transaction. The transaction invokes one or more programs to process the data right away. Immediately, the output results are displayed on the terminal and the transaction ends.

A single business-transaction(such as enrollment of a customer, retirement of an employee) may involve one or more CICS transactions.

Friday, 4 October 2013

CICS table


CICS = Customer Information Control System

CICS maintains the two table

1) PCT - Program Control Table

THe PCT contains the information about the Trans ID and name of the first program to run.

2) PPT - Processing Program Table

The PPT contains the inforamtion about the Program name and load-library address of the program.


While we entered the four digit Trans id into the CICS terminal (Web Browser), its first search the Trans ID in PCT tabel. If its find the Trans ID in PCT, then its search the Program to run in PPT table.

CICS put the Program into disk main storage to run. The Active and running instance are called Task.The output results are displayed on screen and the CICS transaction ends.

Note :

1) We should define the Program in PPT table before we use that Program
2) We should define the Trans Id in PCT tabel before we use the Trans ID.