%OP%BON %OP%WRY %OP%DESchedule of 'Work:' from 28.11.89 %CO:A,12,72%%H2%%H1%Z88 Diary Month-To-A-View Schedule Generator %H4%Simon Phipps (0221) This program produces output like this: %H1%Monday%H1% %H2%27%H2% Vacation %H2% 4%H2% Vacation %H2%11%H2% Vacation %H2%18%H2% Xmas Lun From diary entries like this: Work: 10:30 S Wales Work: . HALF DAY Work: 14:00 Branch meeting {Meetings} (on seperate days, of course). It is configured with defaults for most things, and you can just RUN it within in BASIC. However, it is capable of reading a configuration file to get defaults. It expects to find a file called :RAM.0/Config.Sys, and looks there for defaults. In particular, it is looking for a line which looks like this: Schedule=:Ram.1/Sched.Cfg The word 'Schedule' must look exactly like that & be followed by '='. If this entry is found, future parameters are looked up in the named file, otherwise Config.Sys is used. I intend to locate other parameters in this file in the future & encourage others to do so, to get rid of the proliferation of configuration files. Parameters which may be entered in the configuration file are (shown below with their defaults): SG-DiaryFile=:Ram.0/Diary SG-Kind=Work: SG-Output=Schedule.Out These may all be changed from the options menu in the program. The sequence of use is: Run the program Use the (G)enerate option to read your diary Use the (D)isplay option to look at your schedule Use the (O)utput options to generate PD or printouts The Generate option uses the following logic to fill up the schedule: a) Skip through the disry looking for the start date b) When found, look for a line tagged with the SG-Kind c) If found, EITHER take the text in {} OR 8 chars starting from char 17 in the line d) If SG-Kind is blank, take the first qualifying line for each date e) Watch out for the end date & return when found To generate a print-out, from the (O)utput menu select (O)ptions and change the file name to :PRT.0 Excuse the sketchy documentation: I'll write a proper manual for the next update! %H1%Simon Phipps SP Services +44 703 550037 All sources & documentation (c) 1989 SP Services All rights reserved: software may be freely used & distributed if free of all charges. Acnowledgments for some date routines based on Simon Berry's Z88fax program. %CO:B,12,12% %H1%Tuesday%H1% %H2%28%H2% S Wales %H2% 5%H2% S Wales %H2%12%H2% S Wales %H2%19%H2% %CO:C,12,12% %H1%Wednesday%H1% %H2%29%H2% ? Red St %H2% 6%H2% Surr Pol %H2%13%H2% Meetings %H2%20%H2% S Wales %CO:D,12,12% %H1%Thursday%H1% %H2%30%H2% Admin %H2% 7%H2% Admin ! %H2%14%H2% Admin %H2%21%H2% Admin %CO:E,12,12% %H1%Friday%H1% %H2% 1%H2% ? Red St %H2% 8%H2% %H2%15%H2% %H2%22%H2% HALF DAY %CO:F,12,12% %H1%Saturday%H1% %H2% 2%H2% %H2% 9%H2% %H2%16%H2% %H2%23%H2% %CO:G,12,12% %H1%Sunday%H1% %H2% 3%H2% %H2%10%H2% %H2%17%H2% %H2%24%H2% %H4%E