home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Oakland CPM Archive
/
oakcpm.iso
/
cpm
/
database
/
kphandyp.lbr
/
TODOLIST.CZD
/
TODOLIST.CMD
Wrap
OS/2 REXX Batch file
|
1987-07-06
|
3KB
|
145 lines
ERAS
USE todolist index todolist
STOR date() to hold
STOR $(hold,1,2) to month
STOR $(hold,7,2) to year
STOR ' ' to option
DO saytoday
SET intensity on
@ 1,0 say 'DAILY TO-DO LIST'
SET intensity off
@ 2,0 say today
STOR hold to today
SET intensity on
@ 4,0 say 'WORK TO BE COMPLETED'
@ 4,40 SAY 'CALLS TO BE MADE'
@ 18,0 say '--------------------------------------------------------------------------------'
SET intensity off
@ 19,0 say 'Enter one of the following single letter commands:'
SET intensity on
@ 20,0 say 'A)dd E)dit F)uture N)ext P)ast Q)uit R)eturn'
STOR 'T' to todo
DO WHIL todo='T'
IF !(option)#'A'
GOTO top
FIND &today
STOR 6 to row
STOR 0 to col
SET intensity off
DO WHIL row<17 .and. act:date=today .and. act:type='A' .and. .not. eof
@ row,col say act:desc
STOR row+1 to row
SKIP
ENDD
STOR row to work
DO WHIL act:date=today .and. act:type='A' .and. .not. eof
SKIP
ENDD
STOR 40 to col
STOR 6 to row
DO WHIL row<17 .and. act:date=today .and. act:type='C' .and. .not. eof
@ row,col say act:desc
STOR row+1 to row
SKIP
ENDD
STOR row to call
ENDI
SET intensity off
@ 21,0 say ' '
WAIT to option
DO CASE
CASE !(option)='A'
STOR ' ' to desc
STOR ' ' to type
@ 22,0
@ 22,0 say 'Description';
get desc
@ 22,50 say 'Category Work or Call (W/C)';
get type
READ
IF !(type)='W' .and. work<17
@ work,0 say desc
STOR work+1 to work
ELSE
IF call<17
@ call,40 say desc
STOR call+1 to call
ENDI
ENDI
GOTO bottom
APPE BLAN
REPL act:date with today
REPL act:desc with desc
IF !(type)='W'
REPL act:type with 'A'
ELSE
REPL act:type with 'C'
ENDI
@ 22,0
CASE !(option)='E'
GOTO top
SET intensity on
BROW
PACK
SET date to &today
DO todolist
CASE !(option)='F' .or. !(option)='P'
STOR ' ' to today
@ 22,0
@ 22,0 say 'Enter date as MM/DD/YY';
get today picture 'XX/XX/XX'
READ
STOR trim(today) to today
IF @('/',today)=2
STOR '0'+today to today
ENDI
IF len(today)<8
STOR $(today,1,2)+'/0'+$(today,4,4) to today
ENDI
STOR today to start
SET date to &today
DO saytoday
@ 2,0
@ 2,0 say today
STOR start to today
STOR 6 to row
DO WHIL row<17
@ row,0
STOR row+1 to row
ENDD
@ 22,0
CASE !(option)='N'
STOR 6 to row
DO WHIL row<17
@ row,0
STOR row+1 to row
ENDD
@ 2,0
DO nextdate
STOR today to start
SET date to &today
DO saytoday
@ 2,0 say today
STOR start to today
FIND &today
@ 22,0
CASE !(option)='Q'
STOR 'F' to todo
CASE !(option)='R'
SET date to &holddate
STOR 6 to row
DO WHIL row<17
@ row,0
STOR row+1 to row
ENDD
@ 2,0
DO saytoday
@ 2,0 say today
STOR hold to today
@ 22,0
ENDC
ENDD
USE
SET date to &holddate
RETU