The uploaded program defines a string "a" that contains German umlauts.
Depending on whether one uses
SAY a
or
'echo "'a'"'
the output is different!
Stumbled over this problem analysing a problem in one of Walter Pachl's script, where he uses "dir" and "cd" via the cmd subcom, referring to directory entries that have an umlaut u (ü) as their trailing characters. The character via the cmd subcom mismatched the char extracted from a redirectred file, causing the Rexx program to fail on certain directories.
The output of such strings should be the same, i.e. independent of using a Rexx SAY statement or the cmd subcom like in the given example.
Using <ooRexx400_4852-x86_32-debug.exe> on a German Windows XP SP3. Default codepage in cmd.exe is therefore set to 850 (437 would be the DOS English codepage).
Anonymous
Rexx program that demos different output
What the commands process and how data written to the screen via various paths is out of the control of the Rexx interpreter. The data is just written to the screen using 8-bit ascii, and the OS takes it from there.