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

      /*    ACCTREC - ACCOUNT FILE RECORD */
struct {
       char acctdo[5];
       char snamedo[18];
       char fnamedo[12];
       char mido;
       char ttldo[4];
       char teldo[10];
       char addr1do[24];
       char addr2do[24];
       char addr3do[24];
       char auth1do[32];
       char auth2do[32];
       char auth3do[32];
       char auth4do[32];
       char cardsdo;
       char imodo[2];
       char idaydo[2];
       char iyrdo[2];
       char rsndo;
       char ccodedo;
       char apprdo[3];
       char scode1do;
       char scode2do;
       char scode3do;
       char statdo[2];
       char limitdo[8];
       struct { 
              char bal[8];
              char bmo[2];
              char bday[2];
              char byr[2];
              char bamt[8];
              char pmo[2];
              char pday[2];
              char pyr[2];
              char pamt[8];
              }    pay_hist[3];
       } 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
