/**********************************************************************/
/*                                                                    */
/* Copyright (c) 2003 by Sun Microsystems, Inc.                       */
/* All rights reserved.                                               */
/*                                                                    */
/**********************************************************************/

      /*    ACCTREC - ACCOUNT FILE RECORD */
struct acctrec_struct {
       char acctdo[6];
       char snamedo[19];
       char fnamedo[13];
       char mido;
       char ttldo[5];
       char teldo[11];
       char addr1do[25];
       char addr2do[25];
       char addr3do[25];
       char auth1do[33];
       char auth2do[33];
       char auth3do[33];
       char auth4do[33];
       char cardsdo;
       char imodo[3];
       char idaydo[3];
       char iyrdo[3];
       char rsndo;
       char ccodedo;
       char apprdo[4];
       char scode1do;
       char scode2do;
       char scode3do;
       char statdo[3];
       char limitdo[9];
       struct { 
              char bal[9];
              char bmo[3];
              char bday[3];
              char byr[3];
              char bamt[9];
              char pmo[3];
              char pday[3];
              char pyr[3];
              char pamt[3];
              }    pay_hist[3];
       };
struct acctrec_struct acctrec;
#define AR_ACCTREC  acctrec
#define AR_ACCTDO   acctrec.acctdo
#define AR_SNAMEDO  acctrec.snamedo
#define AR_FNAMEDO  acctrec.fnamedo
#define AR_MIDO     acctrec.mido
#define AR_TTLDO    acctrec.ttldo
#define AR_TELDO    acctrec.teldo
#define AR_ADDR1DO  acctrec.addr1do
#define AR_ADDR2DO  acctrec.addr2do
#define AR_ADDR3DO  acctrec.addr3do
#define AR_AUTH1DO  acctrec.auth1do
#define AR_AUTH2DO  acctrec.auth2do
#define AR_AUTH3DO  acctrec.auth3do
#define AR_AUTH4DO  acctrec.auth4do
#define AR_CARDSDO  acctrec.cardsdo
#define AR_IMODO    acctrec.imodo
#define AR_IDAYDO   acctrec.idaydo
#define AR_IYRDO    acctrec.iyrdo
#define AR_RSNDO    acctrec.rsndo
#define AR_CCODEDO  acctrec.ccodedo
#define AR_APPRDO   acctrec.apprdo
#define AR_SCODE1DO acctrec.scode1do
#define AR_SCODE2DO acctrec.scode2do
#define AR_SCODE3DO acctrec.scode3do
#define AR_STATDO   acctrec.statdo
#define AR_LIMITDO  acctrec.limitdo

#define AR_PAY_HIST acctrec.pay_hist
#define AR_BAL(xx)     acctrec.pay_hist[xx].bal
#define AR_BMO(xx)     acctrec.pay_hist[xx].bmo
#define AR_BDAY(xx)    acctrec.pay_hist[xx].bday
#define AR_BYR(xx)     acctrec.pay_hist[xx].byr
#define AR_BAMT(xx)    acctrec.pay_hist[xx].bamt
#define AR_PMO(xx)     acctrec.pay_hist[xx].pmo
#define AR_PDAY(xx)    acctrec.pay_hist[xx].pday
#define AR_PYR(xx)     acctrec.pay_hist[xx].pyr
#define AR_PAMT(xx)    acctrec.pay_hist[xx].pamt
