Use the REXXUTIL function SysQuerySwitchList (introduced in the new REXXUTIL.DLL from Object-Oriented REXX) to check if a REXX program is already running.
Note: This function is only available in the REXXUTIL DLL from Object REXX for OS/2 Version OBJREXX 6.00 11 Nov 1997 or newer.