LegStar mainframe programs are mostly written in C/370, therefore Language Environment (LE) is mandatory.
Some COBOL sample programs are part of the delivery. They were compiled using Enterprise COBOL for z/OS 3.3.0.
All CICS programs are translated with CICS 6.4.0 COMMAND LANGUAGE TRANSLATOR.
Download the latest LegStar distribution for z/OS.
Unzip the binary distribution package into the directory of your choice, referred to as <installDir> in the following steps.
The directory tree should look like this:
<installDir>
|---->LEGSTAR.version.C370.XMIT
|---->LEGSTAR.version.CNTL.XMIT
|---->LEGSTAR.version.COBOL.XMIT
|---->LEGSTAR.version.H370.XMIT
|---->LEGSTAR.version.LOAD.XMIT
|---->LEGSTAR.version.OBJ.XMIT
Upload the XMIT files into sequential files on z/OS.
It is very important that:
With FTP, you can use command such as:
QUOTE SITE RECFM=FB LRECL=80 BLKSIZE=27920
to force new uploaded files to have an acceptable format for the TSO XMIT/RECEIVE protocol.
Under TSO, you can now RECEIVE the XMIT files into their target PDSs using a JCL such as:
//P390XMIT JOB (ACCT#),'USERID',
//* RESTART=REFRESH,
// MSGCLASS=X,NOTIFY=&SYSUID,PRTY=14,REGION=0M
//********************************************************************
//* RESTORE XMIT FILES *
//********************************************************************
//SUBMIT EXEC PGM=IKJEFT1A
//SYSTSPRT DD SYSOUT=*
//SYSTSIN DD *
RECEIVE INDATASET('hlq.LEGSTAR.version.LOAD.XMIT')
DSNAME('hlq.LEGSTAR.version.LOAD')
RECEIVE INDATASET('hlq.LEGSTAR.version.OBJ.XMIT')
DSNAME('hlq.LEGSTAR.version.OBJ')
RECEIVE INDATASET('hlq.LEGSTAR.version.C370.XMIT')
DSNAME('hlq.LEGSTAR.version.C370')
RECEIVE INDATASET('hlq.LEGSTAR.version.H370.XMIT')
DSNAME('hlq.LEGSTAR.version.H370')
RECEIVE INDATASET('hlq.LEGSTAR.version.CNTL.XMIT')
DSNAME('hlq.LEGSTAR.version.CNTL')
RECEIVE INDATASET('hlq.LEGSTAR.version.COBOL.XMIT')
DSNAME('hlq.LEGSTAR.version.COBOL')
/*
Finally in the target CICS region:
If, for some reason, le load modules shipped with the LegStar distribution are not suitable, you can chose to either re-link edit or recompile all the modules.
You might have noticed that the LegStar delivery contains object modules in the hlq.LEGSTAR.version.OBJ library. So you can re-link without recompiling. If you elect to recompile, these object modules will be overridden with yours.
if you decide to compile, make sure you have a C/370 compiler.
The hlq.LEGSTAR.version.CNTL library contains a set of cataloged procedures that you need to customize.
If you elect to recompile, you need to customize:
for link-editing, you need to customize:
Once the cataloged procedures are ready, you can use the following JCL's to process all LegStar modules at once: