home *** CD-ROM | disk | FTP | other *** search
- /* header.txed - insert name, address, date, time */
-
- call ckdaylt
-
- MoveSOF
- InsertLine
- InsertLine
- Insert '" Your name here."'
- InsertLine
- Insert '" Your street"'
- InsertLine
- Insert '" Your city state zip cd."'
- InsertLine
- Insert '" U.S.A."'
- InsertLine
- Insert '" Telephone num."'
- InsertLine
- yr = ' ' || delstr(date('s',date('i')),5,4)
- dy = ' ' || delstr(date('s',date('i')),1,6)
- dd = date('M') || dy || ','|| yr time() IS_CST
-
- InsertLine
- dd = right(dd,80,' ')
- dd = '"' || dd || '"'
- Insert dd
-
- InsertLine
- InsertLine
- InsertLine
- InsertLine
- Insert "Name"
- InsertLine
- Insert "Title"
- InsertLine
- Insert "Street"
- InsertLine
- Insert "City ST Zip"
- InsertLine
- Insert "Phone"
- InsertLine
- InsertLine
- InsertLine
- Insert "Dear "
-
- exit 0
-
-
-
- ckdaylt:
- IS_CST = 'CST'
- mm = left(date('u'),2)
- if (mm < 4) | (mm > 10) then return
- IS_CST = 'CDT'
- if (mm > 4) & (mm < 10) then return
- dd = substr(date('u'),4,2)
- if (mm = 4) & (dd > 7) then return
- if (mm = 10) & (dd < 25) then return
- IS_CST = 'CST'
- mysdt = left(date('s'),4) || mm
-
- if mm = 4 then do ai = 1 to dd
- wkdy = date('w',(mysdt || '0' || ai),'s')
- if wkdy = 'Sunday' then IS_CST = 'CDT'
- end
- else do ai = dd + 1 to 31
- wkdy = date('w',(mysdt || ai),'s')
- if wkdy = 'Sunday' then IS_CST = 'CDT'
- end
- return
-
-