Cannot Solve My Problem

Robert T. Repko rtr at rsquared.com
Sat Mar 24 19:28:45 PDT 2012


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

On Mar 24, 2012, at 7:10 PM, "haroldef" <haroldef at sbcglobal.net> wrote:

> Hi,
> 
> I sent this to myself before sending out.  It looked good.  I will send 
> this to myself to see what it looks like.
> 
> I am having trouble with a printout, probably because of my age.  I have 
> done this in the past, but cannot do it now.  I am keeping a list of my 
> fellow Navy guys that was on my ship while it was commissioned for my 
> Navy Reunion Group.  A report has been developed that shows the number 
> of new men that have been found per year, for example:
> 
> MEMBERS SIGNED UP PER YEAR
> 
> YEAR            PER YEAR            EACH YEAR
> 
> 1989                 132                            132
> 1990                   24                            156
> 1991                   10                            166
> 1992                   16                            182
> 1993                     3                            185
> 1994                   22                            207
> 1995                   14                            221
> 1996                   29                            250
> 1997                 140                            390
> 1998                   66                            456
> 1999                   27                            483
> 2000                   25                            508
> 2001                   79                            587
> 2002                 216                            803
> 2003                 121                            924
> 2004                   49                            973
> 2005                   51                          1024
> 2006                   26                          1050
> 2007                   19                          1069
> 2008                   18                          1087
> 2009                   17                          1104
> 2010                     6                          1110
> 
> I cannot get the year 2011 and 2012 to show up,Of course we have not had 
> any new members in 2012, but we had six in 2011.So, how do I include 
> those who joined in 2011, which hits the end of the file?
> 
> The program is:
> 
> :'NOTE-- YT IS FOUR DIGIT YEAR; RN IS RECORD NUMBER:'ZN IS TWO DIGIT 
> YEAR, NB IS THE NUMBER OF NEW MEMBERS IN A YEAR:
> 
> ::'TM=Total For Each Year:
> 
> :YT NE "":GOTO LINE:'YT=Each Year Since 1989
> ::ZN=63;ID=63;YT="1989";NB="0";tm="":
> LINE:ZN NE ID:GOTO PRT:
> ::NB=NB+"1";END:
> PRT::DEBUG ON:
> ::tm=tm+nb;PRINT:
> :ZN="99":ZN="00";yt=yt+"1";nb="0";END:
> ::ZN=ZN+"1";yt=yt+"1";nb="0";END:
> 
> 
> _______________________________________________
> Filepro-list mailing list
> Filepro-list at lists.celestial.com
> Subscribe/Unsubscribe/Subscription Changes
> http://mailman.celestial.com/mailman/listinfo/filepro-list
This email was scanned for viruses by ClamAV AntiVirus.


More information about the Filepro-list mailing list