home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Professional
/
OS2PRO194.ISO
/
os2
/
prgramer
/
rexx
/
rdebug
/
rdbmsg.kex
< prev
next >
Wrap
Text File
|
1993-03-25
|
5KB
|
110 lines
/*H* RDBMSG.KEX 02-15-93 10:27*/
/* delete following code (when optimizing) that is marked:*/
arg dbnum .
parse arg . dbrest
parse arg . dbxme dbsigl .
Parse Value 'rdbMSG' 0 With dbme dbtrc dbtrap dbtrapp dbmsg
Signal On Error; Signal On Failure; Signal On Halt
Signal On Novalue; Signal On Notready; Signal ON Syntax
if dbnum='?' then /*Exit*/ Return tell(dbme);
sep=' '
trace o?r /*T*/
if dbnum>399 then call msg400
else if dbnum> 99 then call msg100
else call msg000
if left(dbnum,2)='80' then msg='DBG'dbnum''left(dbm.dbnum,1) dbxme dbsigl substr(dbm.dbnum,2)'!'sep
else msg= 'DBG'dbnum''dbm.dbnum dbrest'!'sep;/**/
/*Exit*/ Return msg
MSG000:
if dbnum<20 then sep=''
dbm.001="i You didn't specify an existing program - Choose OPEN.";
dbm.003="i Make changes & enter FILE or QQ to continue";
dbm.004="w Correct item after pressing F2 - Invalid item in profile:";
dbm.005="w Correct Entry after pressing F2 - Invalid entry in profile:";
dbm.007="w Missing quotes, comments at points: .1 to .x";
dbm.008="e PROCEDURE found in source",
sep "Remove statement or place routine in external file"
dbm.009="e File missing:"
dbm.010="t No system-specific code exists, please redo install for system:"
dbm.015="i If you wish To use use a new log choose 'OPEN'."
dbm.016="i If you wish to rerun last session, modify & select RERUN."
dbm.017="i Make any change(s) you wish To your LOG after pressing F2."
dbm.018="i Make any change(s) you wish To your SOURCE after pressing F2."
dbm.019="i Make any change(s) you wish To your PROFILE after pressing F2."
dbm.020="i Breakpoint on count";
dbm.030="i Change in:";
dbm.041="e Error in rDEBUG Nucleus, enter SAVE (rDEBUG may abort)";
dbm.042="e Error in rDEBUG Nucleus, (rDEBUG will probably abort";
dbm.043="e Error in rDEBUG, try another request";
dbm.044="e Error in rDEBUG or your program, try again";
dbm.045="e Error in your program, please correct. Resumes at";
return 0; MSG100:
dbm.102="w Unsupported key - try another.";
dbm.104="e Invalid key:";
dbm.110="i Breakpoint:";
dbm.111="i Invalid selection:";
dbm.112="i Welcome, ";
dbm.115="w This command is only effective in:"
dbm.190="w To continue, Please FILE or QUIT all";
dbm.220="w Exiting rDEBUG";
dbm.222="w ABORT cancelled - you may continue";
dbm.230="i Press C-F4 to restore SESSION LOG";
dbm.305="e Not > 0 and < size of program:";
dbm.310="e To label doesn't exist:";
dbm.311="e Not possible to 'SIGNAL' out of a restricted DO/SELECT",
sep"Suggest you adjust looping control variable.";
dbm.320="r Use , RESTART or SAVE to exit. You may not";
dbm.330="i To load another session please use EXIT or RESTART";
dbm.333="e Invalid characters:";
dbm.334="e Operand too short:";
dbm.335="r WATCH set for:";
dbm.337="r ";
dbm.338="e Invalid syntax for conditional",
sep " Must be of form (abc<>1) (note, there may not be any spaces";
dbm.340="e Must be numeric and positive:";
dbm.345="i Switch";
dbm.350="r Switch";
dbm.360="e May be set '1' (ON) or '0' (OFF), setting of";
dbm.364="r WATCH is:";
return 0; MSG400:
dbm.411="i Breakpoints are:"
dbm.520="i Line(s) not valid:";
dbm.610="i Not available for this release";
dbm.710="e Cursor not on a word";
dbm.711="e Cursor not in file area."
dbm.750="e Event trap in external module."
dbm.800="i Your program terminated - you may continue at line 1"
dbm.80E="t Error in system call:";
dbm.80F="t Failure in system call:";
dbm.80H="i Program interrupted by user";
dbm.80R="t Device not ready";
dbm.80S="e REXX syntax error";
dbm.80V="e Novalue found:";
dbm.840="e Error message and contents of line: ";
dbm.842="i Call stack: ";
dbm.851="w Will attempt to continue at line:";
dbm.852="t Trap in restricted DO/SELECT range-",
sep "Enter GO to set ERROR off & RESTART program";
dbm.860="r File has been changed - enter 'Y' to UNLOAD.";
dbm.920="w Missing or unmatched end";
dbm.982="i SAVE was successful on: ";
dbm.980="r Has file been changed?, enter 'Y' to SAVE.";
dbm.998="i Unsupported when FULLSW=0! - Register for FULL system.";
dbm.999="i Not available yet! Register to get FULL version."
return 0
ERROR: return db9trap(sigl 80e) sourceline(sigl)
FAILURE: return db9trap(sigl 80f) sourceline(sigl)
HALT: return db9trap(sigl 80h)
NOTREADY: return db9trap(sigl 80r) sourceline(sigl)
NOVALUE: return db9trap(sigl 80v)
SYNTAX: return db9trap(sigl 80e) errortext(rc)'~'sourceline(sigl)
db9TRAP:
if dbtrc=-7 then dbtrapp=dbtrap
parse arg dbsigl dbtcode dbtrest
dbtrap = 0 dbme dbsigl dbtcode dbmsg rdbmsg(dbtcode dbme dbsigl) dbtrest
dbtrc=-7
return -7 dbtrapp'~'dbtrap