home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.wwiv.com
/
ftp.wwiv.com.zip
/
ftp.wwiv.com
/
pub
/
BBS
/
SWAP20.ZIP
/
HOLIDAYV.DOC
< prev
next >
Wrap
Text File
|
1992-10-12
|
11KB
|
265 lines
SWAP v2.0 12 October 92
***** SWAP v2.0 *****
(12 October 92)
GOODBYE/HELLO/HOLIDAY Screen Rotator for Wildcat!
Written By: Terry Atkinson
Adsum Wildcat! BBS
Dartmouth, NS
NODE 1 902-434-3121 (Intel 9600ex v32)
NODE 2 902-435-2455 (HST DS 14.4k v32)
===================
SPECIAL DOCUMENT
USE OF VARIABLE HOLIDAY LISTS
====================
Review of SWAP.CFG (default name)
==================
CONFIGURATION ITEM COMMENT
================== =======
C:\WC30\ROTATE\HELLO\ 1. Input Path - ASCII (.BBS)/HELLOx.BBS
C:\WC30\ROTATE\HELLO\ 2. Input Path - ANSI (.SCR)/HELLOx.SCR
C:\WC30\ROTATE\GOODBYE\ 3. Input Path - ASCII/GOODBYE.BBS
C:\WC30\ROTATE\GOODBYE\ 4. Input Path - ANSI/GOODBYE.SCR
C:\WC30\ROTATE\HOLIDAYS\ 5. Input Path - ASCII/FIXED HOLIDAY BBS
C:\WC30\ROTATE\HOLIDAYS\ 6. Input Path - ANSI/FIXED HOLIDAY SCR
C:\WC30\ROTATE\HOLIDAYS\ 7. Input Path - ASCII/VARIABLE HOLIDAY BBS
C:\WC30\ROTATE\HOLIDAYS\ 8. Input Path - ANSI/VARIABLE HOLIDAY SCR
C:\WC30\DISP\HELLO1.BBS 9. Output Path/filename for HELLOx.BBS
C:\WC30\DISP\HELLO1.SCR 10. Output Path/filename for HELLOx.SCR
C:\WC30\DISP\GOODBYE.BBS 11. Output Path/filename for GOODBYE.BBS
C:\WC30\DISP\GOODBYE.SCR 12. Output Path/filename for GOODBYE.SCR
C:\WC30\DISP\HELLO2.BBS 13. Output Path/filename for HOLIDAYF BBS
C:\WC30\DISP\HELLO2.SCR 14. Output Path/filename for HOLIDAYF SCR
C:\WC30\DISP\HELLO2.BBS 15. Output Path/filename for HOLIDAYV BBS
C:\WC30\DISP\HELLO2.SCR 16. Output Path/filename for HOLIDAYV SCR
HELLO1.LST 17. List of HELLO screens for rotation.
GOODBYE.LST 18. List of GOODBYE screens for rotation.
HOLIDAY.LST 19. List of FIXED HOLIDAY screens.
HOLIDAY.LST 20. List of VARIABLE HOLIDAY screens.
COPYIT.BAT 21. Name of BATCH file to produce. It is
MANDATORY that you have a BATCH file
on line 21. It may be any name of YOUR
choosing, but it must be specified.
C:\WC30\ACTIVITY.003 22. Path/filename to LOG file.
In this document, DAYofWEEK will refer to a number corresponding
to the name of the DAY of the week as follows:
SUN=1, MON=2, TUE=3, WED=4, THU=5, FRI=6, SAT=7
If you are conversant with Michael Conley's TODAYBBS program and
associated TODAY.xxx files, this is going to be a snap. If you are not
familiar with it, don't worry about it. You probably won't have a
difficult time grasping the concepts presented below anyway. They are
straight forward.
Page 1 of 4
SWAP v2.0 12 October 92
My definition of HOLIDAY:
========================
As far as this program and documentation goes, HOLIDAY refers to
ANY DAY for which you want to rotate a screen. It could be Christmas
Day, Labour Day, Mother's/Father's Day or even your own birthday or
anniversary.
There are two types of HOLIDAYS. One type is the old familiar
FIXED-DATE holidays such as Christmas Day, New Year's Day, Halloween,
etc. They always fall on the same DATE every year (ie. 25 Dec, 1 Jan,
31 Oct respectively). These types of holidays are put into the
HOLIDAYF.LST (default filename). See the SWAP.DOC file for more
information.
The second kind is a VARIABLE-DATE holiday - such as Mother's Day
(falling on the 2nd Sunday in May) or Labour Day (falling on the 1st
Monday in September). They do NOT fall on the same DATE every year.
This document explains how to set up a HOLIDAYV.LST (default filename)
to compensate for variable date holidays.
A text file called HOLIDAYV.TXT is included with this archive. It
gives some major variable date holidays and when they occur. You might
want to get a copy of this to your printer for quick reference as we
go along. (Note: HOLIDAYF.TXT is a file giving major FIXED holidays).
Example HOLIDAY (VARIABLE) rotation list (default - HOLIDAYV.LST)
========================================
DATE SCREENS COMMENT
==== ======= =======
01152,MLKING.BBS,MLKING.SCR Martin L. King Day [3rd Mon in Jan]
05081,MOTHRDAY.BBS,MOTHRDAY.SCR Mother's Day [2nd Sun in May]
Explanation:
Martin Luther King day falls on the 3rd Monday in January. Find
the MAXIMUM date by assuming that the 1st of the month is a TUESDAY.
This makes the 3rd Monday fall on 21 Jan. Note this date.
Then assume the 1st of the month is on a Monday. MLK day would then
fall on the 15th of Jan. Note this date. Of course you can now
realize that the 3rd Monday *could* fall on any DATE between the 15th
and 21st of Jan inclusive. Your VARIABLE DATE HOLIDAY LIST must
compensate for this by REPRODUCING the range of dates with a qualifier
following it.
The example above for MLK is 01152. This is to say:
01 = January (leading zeros are necessary)
15 = date
2 = qualifier -- day 2 is MONDAY (see above)
, = separator
MLKING.BBS = BBS (ASCII) screen to rotate today IF it is a Monday
, = separator
MLKING.SCR = SCR (ANSI) screen to rotate today IF it is a Monday
You may have comments in this file providing they are separated
from the filenames by AT LEAST one space. "Martin L. King Day [3rd Mon
in Jan]" is a comment. Given this example, the entire listing for this
day would look as shown below:
Page 2 of 4
SWAP v2.0 12 October 92
DATE SCREENS COMMENT
==== ======= =======
01152,MLKING.BBS,MLKING.SCR Martin L. King Day [3rd Mon in Jan]
01162,MLKING.BBS,MLKING.SCR
01172,MLKING.BBS,MLKING.SCR
01182,MLKING.BBS,MLKING.SCR
01192,MLKING.BBS,MLKING.SCR
01202,MLKING.BBS,MLKING.SCR
01212,MLKING.BBS,MLKING.SCR
05081,MOTHRDAY.BBS,MOTHRDAY.SCR Mother's Day [2nd Sun in May]
Our second example is Mother's Day falling on the 2nd Sunday in
May. Assuming that the 1st of the month is on a MONDAY, the 2nd Sunday
would be on the 14th of May. Assume that a SUNDAY is the 1st day of
the week. Mother's Day would then fall on the 8th. Your "Mother's Day"
entries must reflect that range of dates: 8th to the 14th inclusive.
The entire listing for Mother's Day would look something like:
05081,MOTHRDAY.BBS,MOTHRDAY.SCR Mother's Day [2nd Sun in May]
05091,MOTHRDAY.BBS,MOTHRDAY.SCR
05101,MOTHRDAY.BBS,MOTHRDAY.SCR
05111,MOTHRDAY.BBS,MOTHRDAY.SCR
05121,MOTHRDAY.BBS,MOTHRDAY.SCR
05131,MOTHRDAY.BBS,MOTHRDAY.SCR
05141,MOTHRDAY.BBS,MOTHRDAY.SCR
Given those examples, I'm sure you can work out almost any
variable holiday.
The dates (ie. 0508x above) must be in the format MMDDx. This
program will not work if not in this format. It does not affect the
remainder of the program. Your DOS must also return the date in the
standardized format of MM-DD-YYYY. You may put comments in the .LST
files providing they are separated from the file listing by at least
ONE space as shown above. This is handy for those who wish to NUMBER
their screens. i.e. 1.BBS, 2.BBS, 3.SCR, 109A44.BBS, and want to make
a small comment of what these are. Note that the dates do NOT have to
be in chronological order as the ENTIRE file is read and checked for a
date coincident with your system date. The FIRST CORRECT DATE
encountered will be used, and the program will exit.
The DATE/DAYofWEEK flag and the BBS filename MUST be separated by
a comma. Likewise the BBS filename and the SCR filename. If either are
not used, insert a comma anyway. ie. [See example .LST files]
01152,,MLKING.SCR Martin L. King Day [3rd Mon in Jan]
05081,MOTHRDAY.BBS, Mother's Day [2nd Sun in May]
(MLKING.SCR will be used by no .BBS file will be used, MOTHRDAY.BBS
file will be used by there is no .SCR file.
Page 3 of 4
SWAP v2.0 12 October 92
Those using only .BBS screens with "@" codes on a WC3.x system
will find this feature handy. You may have as many holiday screens as
you wish. The BBS filename and the SCR filename do not have to match,
ie.
05081,MOTHER1.BBS,MOTHRDAY.SCR Mother's Day [2nd Sun in May]
You do not have to put dates before the files if you want to
maintain a list of available files for later assignment. Those files
will be ignored, ie.
EASTRMON.BBS,EASTERMON.SCR Easter Monday
FATHRDAY.BBS,FATHRDAY.SCR Father's Day
Beg for $$$
===========
Details for registering are in the SWAP.DOC file.
My address and/or where I can be contacted is in the SWAP.DOC file.
Page 4 of 4