01.01.2013 Views

CICS Transaction Gateway V5 The WebSphere ... - IBM Redbooks

CICS Transaction Gateway V5 The WebSphere ... - IBM Redbooks

CICS Transaction Gateway V5 The WebSphere ... - IBM Redbooks

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

ECI applications<br />

Web Browser<br />

330 <strong>CICS</strong> <strong>Transaction</strong> <strong>Gateway</strong> <strong>V5</strong><br />

ECI applications use the facilities of the <strong>CICS</strong> mirror program to link to the<br />

specified user program, passing a buffer known as the COMMAREA for input and<br />

output. <strong>The</strong> <strong>CICS</strong> mirror program (DFHMIRS) invokes the services of the data<br />

conversion program (DFHCCNV) to perform the necessary conversion of the<br />

COMMAREA (Figure A-1).<br />

<strong>CICS</strong> TG<br />

ECI<br />

z/OS, Linux, AIX, Solaris, Windows<br />

Figure A-1 <strong>CICS</strong> <strong>Transaction</strong> <strong>Gateway</strong>, ECI data conversion<br />

Only if DFHCCNV finds a conversion template in the DFHCNV table that<br />

matches the program name will it perform code page translation for the<br />

COMMAREA associated with the ECI request. Example A-1 shows the DFHCNV<br />

table entry we used for the program ECIPROG.<br />

Example: A-1 DFHCNV entry<br />

Mirror<br />

program<br />

DFHMIRS<br />

<strong>CICS</strong> TS region<br />

DFHCCNV<br />

<strong>CICS</strong><br />

program<br />

DFHCNV TYPE=ENTRY,RTYPE=PC, *<br />

CLINTCP=850,SRVERCP=037, *<br />

RNAME=ECIPROG,USREXIT=NO<br />

DFHCNV TYPE=SELECT,OPTION=DEFAULT<br />

DFHCNV TYPE=FIELD,OFFSET=0,DATATYP=CHARACTER, *<br />

DATALEN=27,LAST=YES<br />

<strong>The</strong> SRVERCP should represent the EBCDIC code page in which the data is<br />

stored within <strong>CICS</strong>. <strong>The</strong> CLINTCP should be the default code page for client<br />

requests, but this can be overridden by information flowed from the <strong>CICS</strong><br />

Universal Client, which is determined from the code page of the client machine.<br />

(Note that the <strong>CICS</strong> TG supplied CicsCpRequest object allows you to determine<br />

the code page used by the <strong>CICS</strong> Universal Client). <strong>The</strong> DATALEN should be the<br />

maximum length of the COMMAREA you require to be translated.<br />

C<br />

O<br />

M<br />

M<br />

A<br />

R<br />

E<br />

A

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!