ATM Transaction Anayzer User and Installation Guide
Appendix C 162
Mapping of User-Defined Fields with TLF Fields
ATM/TA provides user-defined fields which can be mapped to fields in the TLF record.
Perform the following steps to map a user-defined field with TLF record.
1. Set the USER-TOKENS parameter in the TLFCONF file to YES.
2. Amend USRTLFC file on the ATMTA subvolume on the NonStop to populate the required TLF record in the
user fields.
3. Stop the ATM/TA environment using the STOPTLF command.
4. Compile USRTLFC using the RUN ZTCMPTLF command.
5. Verify the VPROC of the TLFCOLL programs to see if the compilation was successful.
6. Start the ATM/TA backend environment using the STRTTLF command.
Sample USRTLFC file
The sample USRTLFC file gives the information on how to populate transaction Date/Time in UserField1 and
Card Number on UserField2 from the TLF record.
#include <stdioh>
#include <stringh>
#include <stdlibh>
#include "tlfh"
#include "usrtlfh"
/*
User may change this source statement to compile
with user's customized tlf files, then bind this
proc into tlfcoll (using ZTCMPTLF TACL routine).
*/
/* Each field is of 8 bytes, so please extract the custom fields
* from the TLF record tlfrec pointer and set up the desired
* user fields.
*/
void USER_FIELDS(void *ptr, char *fld1, char *fld2, char *fld3)
{
tlf_cob_buf_def *tlfrec = (tlf_cob_buf_def *)ptr;
/* Set up the fld1, fld2 and fld3 here if required */
/***************************************************/
/* HP sample changes */
/***************************************************/
/* Field 1 is going to show the Transaction Time */
/***************************************************/
memcpy(fld1, tlfRec->u_tlf_auth_buf.tlf_auth_buf.auth.tran_dat.yy,2);
fld1 += 2; *fld1 = '/'; fld1++;