APPC (Application Program to Program Connection) is an open standard that is supported on most platforms. APPC enables high-speed communication which takes place between programs residing on different computers, and on mainframe computer servers.It perform transactions in a Client-Server network.
APPC (Application Program to Program Connection) facilitates communication between two programs i.e. they execute together and synchronously. To achieve this, one program has to be compiled in one environment and the other program in different environment or system. APPC is unlike the LINK command where the linked program gives back the control to the linking program only after finishing.LINK command is meant to connecting two program in a single mainframe system.
APPC is available on all IBM systems. Specifically, it can be used in CICS, in MVS "batch". APPC is an efficient choice for mainframe communications
Lets take an example to explain it better :
Suppose the requirement is User of Postal mainframe System wants to establish communication with Railway mainframe System for a bulk parcel delivery so that it can keep track for the status of its baggage.
So for this, 1st program(Postal mainframe System in our case) should create a conversation session with the CICS region using ALLOCATE command and it should initiate the specified transaction using CONNECT PROCESS command. It should send the data using SEND command.
Second Program(Railway mainframe System) should receive the data using RECEIVE Command ,process the data and it should send back the results using SEND command.
The smallest APPC client program executes an Allocate and a Deallocate. Such a transaction requests that a program can be run on the server node, but it provides no data and doesn't wait for a response.
To check connectivity from CICS, log in to the region to check the state of the CICS connection using the following command:
CEMT I CONN(NNNN)
Where 'NNNN' is the four alphanumeric letters that represent the CICS connection definition name.
Sample example:-
I CONN
STATUS: RESULTS - OVERTYPE TO MODIFY
Con(SC09) Net(SC02009I) Ins Acq Vta Appc
Nqn(USIBMSC.SC02009I )
RESPONSE: NORMAL
A very good article on Mainframe Connectivity via APPC link
A very good introduction to APPC link
APPC connections to CICS link
How to Compress files in IBM Mainframe
Utility PKZIP is used to
ZIP(compress, decompress) flat files, PDS’s , sequential files, VSAM files, and
PDSE members.
PKZIP in mainframe reduces the amount of time to transfer data
between systems. The Output Zipped file is in ASCII mode, so if we
want to transfer the zipped file to our system, then we should transfer it in
"binary" mode.
PKZIP ensures that compressed
data is secure during transmission and storage. File sizes can be reduced by up
to 95% and protected with persistent security with PKZIP.
For Example Sample job below is
used to ZIP the files:-
//STEP01 EXEC PGM=PKZIP
//SYSPRINT DD SYSOUT=*
//FILE1 DD DISP=SHR,DSN= Input file to be compressed
//COMPFIL DD DISP=Compress file name
// DISP=(NEW,CATLG,DELETE)
// SPACE=(CYL,(1,1),RLSE)
//SYSIN DD *
-ECHO
-INFILE(RTFILE)
-ARCHIVE_OUTFILE(ZIPFILE)
-ACTION(ADD)
//*
//STEP01 EXEC PGM=PKZIP
//SYSPRINT DD SYSOUT=*
//FILE1 DD DISP=SHR,DSN= Input file to be compressed
//COMPFIL DD DISP=Compress file name
// DISP=(NEW,CATLG,DELETE)
// SPACE=(CYL,(1,1),RLSE)
//SYSIN DD *
-ECHO
-INFILE(RTFILE)
-ARCHIVE_OUTFILE(ZIPFILE)
-ACTION(ADD)
//*
PICIN and PICOUT in CICS
Map field Definition PICIN and PICOUT in CICS ,IBM Mainframe
BMS (Basic Mapping Support) is a standard facility, to deal with the formatted screen operations. For making the application program device independent and format independent CICS provides Basic Mapping Support (BMS).
Screen defined through BMS is called a "MAP".
To build mapset defintion in CICS(Customer Information Control System) we use
- DFHMSD macro which defines a mapset,
- DFHMDI macro which defines a map within the mapset that is defined by
the DFHMSD macro and
- DFHMDF macro which defines a field within a map that is illustrated by the
DFHMDI macro.
Here we will talk about PICIN and PICOUT in DFHMDF while coding Basic Mapping Support in CICSMAP. We use many operands such as ATTRB, ASKIP, PROT, UNPROT, NUM, NORM, FSET in DFHMDF normally.
But suppose the
requirement is map variables involves many amount fields like
9(9)V99, 9(6)V99, 9(11) etc then we should use PICIN and PICOUT with DFHMDF. It reduces lot of effort of not to use temp variables in the code to move the input field
from the map to temp variable and then again from temp variable to output field in
map.
PICIN applies to the data field being input Eg. PICIN = ‘99999999’
PICOUT applies to the data field being output Eg. PICOUT = ‘ZZZZZ.99’ - If PICIN/PICOUT is not coded in the macro, the pic generated is always PIC X (length of field)
- By using PICIN/PICOUT BMS can be forced to generate the appropriate PIC.
- PICIN tells BMS how to move data into the `I' suffix field.
- PICOUT tells COBOL how to edit your data move to the `O' suffix field.
PICIN applies to the data field being input Eg. PICIN = ‘99999999’
Both occupy the same bytes of memory
Sample Example:-
Map declaration
-----------------------------------
AMT1 POS =(08,070),LENGTH=10, ATTB=(UNPROT,NUM,FSET),
PICIN='9(8)v99',PICOUT='ZZZZZZ9.99'
Map will generate the copybook like below
-----------------------------------------------------
02 AMT1L COMP PIC S9(4).
02 AMT1F PICTURE X.
02 FILLER REDEFINES RTAMT1F.
03 AMT1A PICTURE X.
02 AMT1I PICTURE 9(8)V99.
02 AMT1O PICTURE ZZZZZZ9.99
A very good article on CICS Tutorial
http://vatsmusic.blogspot.sg/2010/01/cics-tutorial.html
A very good article on Difference between PICIN and PICOUT
http://ibmmainframeforum.com/viewtopic.php?f=17&t=5735
JCL to delete members in PDS in Mainframe
The Sample JCLs below deletes all the members in a PDS.
Example 1:-
Step 1> Create a
sequential dataset (for example SAMPLE. EXAMPLE.FILE.) with all Delete
instructions for the members such as:-
DELETE 'SAMPLE.DATA.FILE1
(DATA1)'
DELETE 'SAMPLE.DATA.FILE2
(DATA2)'
.....
.....
etc
We can mention in SYSIN with the dataset like below
//SORTNAM
EXEC PGM=IDCAMS
//SYSPRINT
DD SYSOUT=*
//SYSOUT DD
SYSOUT=*
//SYSIN DD
DSN=SAMPLE. EXAMPLE.FILE,DISP=SHR
/*
Then it
will delete all the members in the dataset SAMPLE. EXAMPLE.FILE.
Example 2:-
The JCL
below also deletes the members in PDS EXAMPLE.PDS.NAME
//STEP01 EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//IN DD DUMMY
//OUT DD DSN=EXAMPLE.PDS.NAME.,DISP=OLD
//SYSIN DD *
REPRO IFILE(IN) OFILE(OUT) REPLACE
/*
Difference between Internal Sort and External Sort in IBM Mainframe
Internal sort is when an application program calls sort.Internal sort is done using COBOL programming language using SORT verb
In a COBOL program the input routine is the
reserved word 'INPUT PROCEDURE' followed by a SECTION name that performs the
procedure.
The output routine is the reserved word 'OUTPUT
PROCEDURE' followed by a SECTION which prints the report .
Eg:-
SORT filename ON ASCENDING KEY dataname
USING filename1
INPUT PROCEDURE IS
paragraph1
GIVING filename2
OUTPUT PROCEDURE IS
paragraph2
( Filename is the name given in the SD entry, Filename1
is the input file, and Filename2 is the output file)
Advantage of Internal Sort is that we have to pass the file only once.
Well,the diadvantages are more,Some of them are following:-
1. If we need to change the sort sequence , the COBOL program has to be recompiled.
2. The programmer will not remember that Internal Sort is done in the program if he just looks at the JCL
3. If a program has to open about 30 files for processing and need tp perform a sort on one of the file. Then, when one file is getting sorted, all the 30 files are 'locked' and other jobs will not able to use them.i.e Resources are held when Sorting is going on.
4. Cobol Code is easier without Internal Sorts.
In External Sort we explicitly code EXEC PGM=SORT
in our JCL, and the SORT utility usually DFSORT or SYNCSORT gets invoked. DFSORT is a sort utility. It can be called directly
or from a program.
When DFSORT is invoked directly, control statements
can be specified using the data set defined by SYSIN.
Eg:-
//SYSIN DD *
OMIT
COND=(30,5,CH,EQ,C'COBOL')
SORT
FIELDS=(1,9,CH,D)
SUM
FIELDS=NONE
/*
The system calls DFSORT directly.
DFSORT reads the input data set and deletes each
record with a zero OMIT field as requested by the OMIT statement. DFSORT sorts the remaining records as requested
by the SORT control statement. DFSORT writes one record with each key to the
output data set as requested by the SUM statement. External Sorting is better than Internal Sorting.
To summarize The primary difference between an
Internal and an External Sort is that in Internal Sort, Program uses the
SORT statement and in External Sort, Sort is directly invoked via
JCL.
SOA(Service-Oriented Architecture) makes Banking IT Systems fly..
Banking Industry has numerous technology even then it needs more. Banks operate on huge number of platforms such as Mainframe, Unix, Linux, Solaris, Windows.
Banks are growing at extreme rate through Merging and Acquisition. Merging and Acquisition presents the
classic need of IT Integration of respective banks.Many of the Mainframe applications are getting redeployed in distributed manner.Most of the Mainframe applications are migrating to UNIX and Microsoft Application Platform
SOA(Service-Oriented Architecture) is the process of extracting business rules from an existing application and using them to create specifications or code for a new system. In this modern era, SOA has emerged as the easiest method that could be accessed by clients or customers, End Users don't want to see black and white screens of the operating systems such as Mainframe,Unix etc. They want to see the GUI. We cannot retire the older technology but making a little alteration to these technologies makes banking and IT Systems easy. SOA avoids the risk of complete systems replacement.
With SOA concepts, Banks can implement IT systems that can quickly adapt to shifting customer requirements and new business opportunities
SOA Services are independent. Banks can adopt SOA across all platforms or operating System to improve platform interoperability, in short Banks can improve efficiency.SOA enables reusablity of business processes.SOA eliminates unnecessary complexity, It is simple and robust.
Use of SOA is such significant that no one cares what platform or operating system is running behind the popular Web Services like Google and Yahoo. Use of SOA is needed in all industries, not just banking.
SOA supports both business and IT requirements.
Banks are growing at extreme rate through Merging and Acquisition. Merging and Acquisition presents the
classic need of IT Integration of respective banks.Many of the Mainframe applications are getting redeployed in distributed manner.Most of the Mainframe applications are migrating to UNIX and Microsoft Application Platform
SOA(Service-Oriented Architecture) is the process of extracting business rules from an existing application and using them to create specifications or code for a new system. In this modern era, SOA has emerged as the easiest method that could be accessed by clients or customers, End Users don't want to see black and white screens of the operating systems such as Mainframe,Unix etc. They want to see the GUI. We cannot retire the older technology but making a little alteration to these technologies makes banking and IT Systems easy. SOA avoids the risk of complete systems replacement.
With SOA concepts, Banks can implement IT systems that can quickly adapt to shifting customer requirements and new business opportunities
SOA Services are independent. Banks can adopt SOA across all platforms or operating System to improve platform interoperability, in short Banks can improve efficiency.SOA enables reusablity of business processes.SOA eliminates unnecessary complexity, It is simple and robust.
Use of SOA is such significant that no one cares what platform or operating system is running behind the popular Web Services like Google and Yahoo. Use of SOA is needed in all industries, not just banking.
SOA supports both business and IT requirements.
Subscribe to:
Posts (Atom)