#!/bin/ksh
#print_statements, a script to print out a persons contributions.
#The database for the people is called master, the contributions are
#in a database named fund3, and the contributors list is in file id3.

set -u ; # exit on unset shell variable

sleep 2;
for aperson in `cat contribs`
do
cat header.out;
uprintf -q -f"%s %s\n%s\n%s, %s\n%s\n\n\n" Name_First Name_Last St_Addr City\
 St_Abbr ZIP in /users/jrs/.fec/database/master where ID eq ${aperson}
uprint Date Fund_Desc Check Donation in fund.sdate where ID eq ${aperson}
stat Donation in fund.sdate where ID eq ${aperson} | cut -c1-26
print -u2 "";
done;

