Re: READING 2 RECS before write to PRINT REC



Wouldn't I need a few loops to handle the prior years and also reset a
counter after your counter is = prior years?


docdw...@xxxxxxxxx () wrote:
In article <1156164371.856184.15880@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
<jeff@xxxxxxxxxx> wrote:
I have a program that I wrote that creates a work file to read from to
create a print record. The program is a sales report that allows the
user to specify how many years to compare. An example is 07-01-06 thru
07-31-06 If they answer 3 prior years it would show sales data (it also
handles exact day instead of just 070106, 071005, 070104)
20060701
20050702
20040703

20060702
20050703
20040704

When I read the Work file I need to read 2 recs before writing the
print record to calculate the percentage change in amount.

That's usually accomplished by coding two READ statements.

DD

.



Relevant Pages

  • Re: READING 2 RECS before write to PRINT REC
    ... The program is a sales report that allows the ... 07-31-06 If they answer 3 prior years it would show sales data (it also ... When I read the Work file I need to read 2 recs before writing the ... print record to calculate the percentage change in amount. ...
    (comp.lang.cobol)
  • Marc Reynolds: reg change "resets" itself
    ... prior to and after the "reset". ... as we will be migrating a UNIX server next week and need ... all the Windows changes to be set prior to the new UNIX ...
    (microsoft.public.win2000.advanced_server)
  • Reset to One Month Prior?
    ... Is there way I can reset Win 2000 Prof. to old month prior ... I've tried "restore to last known good config" ...
    (microsoft.public.win2000.security)
  • Re: Lost password
    ... which one would help me reset the system password....?????? ... Prior to your recommendation I tried getting in the same way but ... Probably a typo. ...
    (comp.sys.mac.advocacy)
  • AdminCount keeps getting reset
    ... users created prior to Oct of 2006 keep getting their admincount setting ... the hour the users admin coutn will be reset to 1 and their inheritance is ...
    (microsoft.public.windows.server.active_directory)