|
|
|
**Summary**
|
|
|
|
This project is a RexxUtil replacement I did back in 2007-2008. I got bored and decided to trip down memory lane. After a decade and a half, it was not pretty. I found mistakes in the original source and, of course, my bugs introduced. I went over all the source for fun and did at least simple tests for each function. As a check, I used Alexander Taylor's, [REXX Utilities API Documentation v1.2](Notice) to verify the input and output of the standard functions.
|
|
|
|
|
|
|
|
**Utility Functions**
|
|
|
|
[SysLoadFuncs](SysLoadFuncs)
|
|
|
|
[SysDropFuncs](SysDropFuncs)
|
|
|
|
[SysRxStatus](SysRxStatus) * non-standard function
|
|
|
|
|
|
|
|
**Version Functions**
|
|
|
|
[SysOS2Ver](SysOS2Ver)
|
|
|
|
[SysECSVer](SysECSVer) * non-standard function
|
|
|
|
[SysArcaVer](SysArcaVer) * non-standard function
|
|
|
|
[SysVersion](SysVersion) * modified return
|
|
|
|
[SysUtilVersion](SysUtilVersion)
|
|
|
|
|
|
|
|
**Screen Functions**
|
|
|
|
[SysTextScreenSize](SysTextScreenSize)
|
|
|
|
[SysTextScreenRead](SysTextScreenRead)
|
|
|
|
[SysCls](SysCls)
|
|
|
|
[SysCurPos](SysCurPos)
|
|
|
|
[SysCurState](SysCurState) * modified return/additional options
|
|
|
|
|
|
|
|
**Drive Functions**
|
|
|
|
[SysBootDrive](SysBootDrive)
|
|
|
|
[SysDriveInfo](SysDriveInfo)
|
|
|
|
[SysDriveMap](SysDriveMap)
|
|
|
|
|
|
|
|
**File Functions**
|
|
|
|
[SysSearchPath](SysSearchPath) * additional options
|
|
|
|
[SysFileDelete](SysFileDelete)
|
|
|
|
[SysFileSearch](SysFileSearch)
|
|
|
|
[SysGetFileDateTime](SysGetFileDateTime)
|
|
|
|
[SysSetFileDateTime](SysSetFileDateTime)
|
|
|
|
[SysFileTree](SysFileTree)
|
|
|
|
[SysMkDir](SysMkDir)
|
|
|
|
[SysRmDir](SysRmDir)
|
|
|
|
[SysTempFileName](SysTempFileName) * additional notes
|
|
|
|
|
|
|
|
**Semaphore Functions**
|
|
|
|
SysCreateEventSem
|
|
|
|
SysOpenEventSem
|
|
|
|
SysCloseEventSem
|
|
|
|
SysResetEventSem
|
|
|
|
SysPostEventSem
|
|
|
|
SysWaitEventSem
|
|
|
|
|
|
|
|
**Language Functions**
|
|
|
|
[SysSetProcessCodePage](SysSetProcessCodePage)
|
|
|
|
[SysQueryProcessCodePage](SysQueryProcessCodePage)
|
|
|
|
[SysGetCollate](SysGetCollate)
|
|
|
|
[SysMapCase](SysMapCase)
|
|
|
|
[SysNationalLanguageCompare](SysNationalLanguageCompare)
|
|
|
|
|
|
|
|
**Miscellaneous Functions**
|
|
|
|
[SysGetKey](SysGetKey)
|
|
|
|
[SysSleep](SysSleep)
|
|
|
|
[SysWildCard](SysWildCard)
|
|
|
|
[SysGetFileHandle](SysGetFileHandle) * non-standard function
|
|
|
|
[SysAddFileHandle](SysAddFileHandle) * additional notes
|
|
|
|
[SysSetFileHandle](SysSetFileHandle)
|
|
|
|
[SysElapsedTime](SysElapsedTime)
|
|
|
|
|
|
|
|
**Macro Functions**
|
|
|
|
|
|
|
|
Because I have not had a reason to use the macrospace, it took a while to find a good explanation to understand how the RexxMacro functions work. This is a good reference: [Macrospace Interface](http://manmrk.net/tutorials/rexx/oorexx/rexxpg/x5240.htm)
|
|
|
|
|
|
|
|
**[The functions to work on the macro space](http://www.edm2.com/index.php/REXX_Tips_%26_Tricks:REXXUTIL_functions#The_functions_to_work_on_the_macro_space)**
|
|
|
|
- SysAddRexxMacro can only load one macro from a REXX cmd file at a time. You can't load a tokenized REXX program into the macro space using this function.
|
|
|
|
- SysAddRexxMacro overwrites an existing macro. The file with the REXX macro must have an extension - SysAddRexxMacro doesn't find files without an extension.
|
|
|
|
- SysLoadRexxMacroSpace can only load an image that was previously saved with SysSaveRexxMacroSpace. SysLoadRexxMacroSpace works only if the macro space is empty (thus you can't concenate two or more images in the macro space but AFAIK the number of macros in the image is not limited).
|
|
|
|
|
|
|
|
There's no function to get a list of all existing macros in the macrospace. (see also LoadMac.cmd)
|
|
|
|
|
|
|
|
[SysAddRexxMacro](SysAddRexxMacro)
|
|
|
|
[SysReorderRexxMacro](SysReorderRexxMacro)
|
|
|
|
[SysDropRexxMacro](SysDropRexxMacro)
|
|
|
|
[SysQueryRexxMacro](SysQueryRexxMacro)
|
|
|
|
[SysClearRexxMacroSpace](SysClearRexxMacroSpace)
|
|
|
|
[SysSaveRexxMacroSpace](SysSaveRexxMacroSpace)
|
|
|
|
[SysLoadRexxMacroSpace](SysLoadRexxMacroSpace) |