Re: Issues using SysStemSort ooRex, do I have to register it?



Generally, that error means you've called some function like you would in C by placing it on a single line. When that happens, the return value from the function is passed to Windows to be executed as a command. So, somewhere, you're calling a function that's returning a value of "0", and that's being passed to Windows, resulting in that error.

The Rexx trace instruction is very handy for figuring out these sorts of things. Add the instruction "Trace Errors" to your program, and it will show you the lines in the program where this error is occurring.

Another handy variant of trace is "Trace ?I", which shows you the intermediate results of all expression evaluations. This will also pause between instructions, allowing you to single-step through the program.

Rick

Mr Coffee wrote:
The program is also saynig this to the output screen and I'm not sure
why:
C:\DDLGenerator>rexx DDLGeneratorV2.rexx QBGLK
'0' is not recognized as an internal or external command,
operable program or batch file.
'0' is not recognized as an internal or external command,
operable program or batch file.
'0' is not recognized as an internal or external command,
operable program or batch file.


It will then proceed to print out my array.

I don't see why its thinking '0' is a command, the only time I use 0
is in the following:
PARSE:
/*is going to hold the datz*/
field. = 0
/*size of the array*/
k = 0

do WHILE Lines(inputFile)
/*keep a counter*/
k = k + 1
field.0 = k


0 is the default value if there is nothing in the stem
k = 0, that is just setting k = 0, so I can use this to increment the
stem's elements.
field.0 = k, that is keeping track of how many elements are in the
stem.

I also use it here:
when compare(target,'Anonymous') == 0 then

but this should be okay, compare will return 0 if its found, so if 0
== 0

.



Relevant Pages

  • RE: Error in Event Viewer - Active in HAT
    ... unfortunately I get this error when I start the trace. ... 'tracelog.exe' is not recognized as an internal or external command, ... operable program or batch file. ...
    (microsoft.public.biztalk.general)
  • Re: All DHCP Servers Info HELP!
    ... Recieved bunch of errors. ... ''' is not recognized as an internal or external command, ... operable program or batch file. ...
    (microsoft.public.windows.server.active_directory)
  • xcopy is not recognized as an internal or external command
    ... operable program or batch file. ... 'C:\xcopy' is not recognized as an internal or external command, ... Munging English.cfg ...
    (microsoft.public.windowsxp.general)
  • Re: Clock on pc time loss
    ... operable program or batch file. ... 'cmd' is not recognized as an internal or external command, ... The Windows Time service was stopped successfully. ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: Clock on pc time loss
    ... operable program or batch file. ... 'cmd' is not recognized as an internal or external command, ... The Windows Time service was stopped successfully. ...
    (microsoft.public.windowsxp.help_and_support)