Using ATI to allocate a session

Front-end transactions are often initiated from terminals. But it is also possible to use the EXEC CICS START command to initiate a front-end transaction on an APPC session.

W hen this is done, and the front-end transaction is successfully started, a conversation can continue as if a GDS ALLOCATE command had been issued. The only difference is that, when ATI is used, the APPC session is the front-end transaction’s principal facility.
Figure 1. Starting an APPC basic conversation at sync level 2
* ...
EXEC CICS GDS ALLOCATE SYSID(WSYSID) CONVID(WCONVID) *
STATE(WSTATE) RETCODE(WRETC)
*
* Check outcome of GDS ALLOCATE
*
NC WRETC,WRETC
BNZ ALLOCERR No session allocated, check RETCODE
* ...
EXEC CICS GDS CONNECT PROCESS CONVID(WCONVID) *
STATE(WSTATE) *
PROCNAME(WPROC) *
PROCLENGTH(WLENPROC) *
SYNCLEVEL(WSYNCLVL) *
CONVDATA(WCDB) RETCODE(WRETC)
NC WRETC,WRETC
BNZ CONNERR Request failed, analyze RETCODE
* ... No errors, conversation started.
NC CDBERR,CDBERR
BNZ SESSERR Session failed, examine RETCODE.
* ... Start sending data.
* ...
WSTATE DS F
WRETC DS XL6
WCDB DS 0CL24
COPY DFHCDBLK
WCONVID DS CL4
WSYSID DC CL4'SYSB'
WPROC DC CL4'BBBB'
WLENPROC DC F'4'
WSYNCLVL DC F'2'
* ...


dfhp6c0048.html | Timestamp icon Last updated: Monday, 5 June 2017