Starting Access from a User Program

#### Search Results

Search

# Starting Access from a User Program

#### From CICS:

If for some reason you do not wish to use the normal transparency procedure (TPFXF46) to initialize to TPF, you may call the ACCESS program directly from a user written routine. A sample program to do this is provided on the source dataset (ATPFINIT). The ACCESS program expects parameters to be passed in a data area (mapped by CCACSCMN).

The first init call to TPF must always contain the string ITPF in the access common area to indicate that it is the init call to TPF.

To activate the ATPFINIT program, assemble and link the ATPFINIT program (see sample link job JCLLNKEX in the source library). The module must be linked to the TPF.CICSLOAD. The transaction calling the ATPFINIT program must be defined as normal with CEDA or in the PCT.

#### From Com-plete:

You may call the ACCESS program directly from a user written routine. A sample program is provided on the source dataset (CTPFINIT). The ACCESS program expects parameters to be passed in a data area (mapped by CCACSCMN).

The call to TPF must always contain the string CALL in the access common area.

To activate the CTPFINIT program, assemble and link the CTPFINIT program (see sample link job JCLLNKCX in the source library). The module must be linked to a library in the host Com-plete complib chain.