Cannot Solve My Problem
haroldef
haroldef at sbcglobal.net
Sun Mar 25 14:04:43 PDT 2012
On 3/24/2012 9:28 PM, Robert T. Repko wrote:
> Since you are using a print statement you must have a print statement for the last record. After the last record is processed the program ends without hitting the print statement. Add the following line
> @wgt::print
>
> That will force a print after the last record.
>
> Robert T. Repko
> R Squared Consultants
> 4 Juniper Ave.
> Easton, PA 18045
> 610.360.1117
>
*Hi,*
**
*I made the program simpler and put in @wgt, but that didn’t help.See
the printout below.*
**
*The program is:*
**
*:'NOTE YT IS FOUR DIGIT YEAR:'NB IS THE NUMBER OF NEW MEMBERS IN A YEAR:*
*:'TM=Total For Each Year:'FIELD 64 IS THE ENTRY FOUR DIGIT YEAR:*
*:YT NE ""'YT=Each Year STARTING IN 1989:GOTO LINE:*
*::YT="1989";NB="0";tm="":*
*LINE:64 NE YT:GOTO PRT:*
*::NB=NB+"1";END:*
*PRT::TM=TM+NB;PRINT:*
*::yt=yt+"1";nb="0";END:*
*@WGT::TM=TM+NB;PRINT:*
**
*The printout is:*
**
*By the way, we only had four new members in 2011, and perhaps 2000 left
to find.*
**
***MEMBERS SIGNED UP PER YEAR*
**
*TOTAL SIGN UPTOTAL MEMBERSHIP*
*YEARPER YEAREACH YEAR*
**
*1989132132*
*199024156*
*199110166*
*199216182*
*19933185*
*199422207*
*199514221*
*199629250*
*1997140390*
*199866456*
*199927483*
*200025508*
*200179587*
*2002216803*
*2003121924*
*200449973*
*2005511024*
*2006261050*
*2007191069*
*2008181087*
*2009171104*
*201061110*
More information about the Filepro-list
mailing list