home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 2 BBS
/
02-BBS.zip
/
murexx05.zip
/
calldate.cmd
next >
Wrap
OS/2 REXX Batch file
|
1995-02-28
|
1KB
|
46 lines
/* MaxUserREXX Examples */
'@echo off'
/* Setup the catch all loader for the user functions */
Call RxFuncAdd 'UserLoadFuncs', 'MaxUser', 'UserLoadFuncs'
/* Load all the user functions at once */
Call UserLoadFuncs
/* Define some constants */
UserError = 'ERROR'
UserFile = 'USER.BBS'
/* Open the user file for use */
UserCount = OpenUserFile(UserFile)
if UserCount <> UserError then do
Signal On Syntax Name BadCommand
Signal On Halt Name BadCommand
index = 0
Say ' U# Name Data'
Say ' ---- -------------------- --------------------'
do until index = UserCount
UserName = Left(QueryUserName(index), 20)
LastCall = QueryUserLastCallDate(index)
NoCalls = Right(QueryUserSystemCalls(index), 6)
credits = Right(QueryUserCredit(index), 6)
Say Right(index, 5)' 'UserName' 'LastCall' 'noCalls' 'credits
index = index + 1
end
/* Close up shop and free the system resources */
Call CloseUserFile
end
/* We are done, so we can drop all the functions */
Call UserDropFuncs
Exit
BadCommand:
Say
Say 'REXX Error ('rc')'
Call CloseUserFile
Call UserDropFuncs
Exit