home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga MA Magazine 1998 #3
/
amigamamagazinepolishissue1998.iso
/
bazy
/
carcosts
/
rexx
/
test3.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
1996-11-02
|
653b
|
40 lines
/* Test Carcost's ARexx-Port */
/* Basename is ALWAYS >CARCOSTS.x<, even if you call the programm */
/* >AUTOKOSTEN<... */
address "CARCOSTS.1"
options results
/* Example how to get some statistics */
getfuelnumber
max = result - 1
say "Number of entries " max+1
getsummary STARTDATE
date0 = result
say "Database starts at " date0
getfuelinfo date max
date1 = result
say "Database starts at " date1
datetoint date0
day0 = result
datetoint date1
day1 = result
days = day1 - day0 + 1
say "These are " days "days"
getsummary KM
dkm = result
say "The distance is " dkm ", or " dkm/days " per day"