OPTIONS "C_CALL NOSOURCE"
rexxederr = "ERROR"
DO
PATH = editgetdoc()
editgettext("temp_name")
PARSE VAR temp_name.1 temp_name.1 '(' .
IF temp_name.1 = "" THEN
RAISE ERROR 1 DESCRIPTION "Mark a script name for loading first"
script_name = FILESPEC('D', path) || FILESPEC('P', path) || TRANSLATE(STRIP(temp_name.1))
IF FILESPEC('E', script_name) == "" THEN script_name = script_name || '.rex'
editopendoc(script_name)
END
CATCH ERROR
CONDITION("M") |