Rexx output redirection seems to be broken

Jul 23, 2009
3
0
I just purchased TCC 10 and seem to have run into a problem. My system info is as follows:-

TCC 10.00.71 Windows XP [Version 5.1.2600]
TCC Build 71 Windows XP Build 2600 SP3

I am using Object Rexx Version 4.0.0 (RC2).

My problem is that whereas using 4NT9 I could run a command such as:-

rexxcps > test.1

and have the output redirected to the file test.1, in 4NT10 this no longer works. Executing the same command in 4NT10 will send all the output to screen and create an empty file called test.1 with 0 length.

I have both versions 9 and 10 on my system so I can launch both 4NT9 and 4NT10 and I get this problem. This seems to relate to the Rexx installation because some of the other files seem to have their output redirected correctly. Can you let me know what I am doing wrong here?

Daniel
 
Jun 2, 2008
38
0
Denmark
Hmm, just for the fun of it, I downloaded Object Rexx, installed it and tried to run the same command - and it works as expected around here.

I have the same version of TCMD/TCC and rexx -v gives this result:

Open Object Rexx Version 4.0.0
Build date: Jul 13 2009
Addressing Mode: 32

Copyright (c) IBM Corporation 1995, 2004.
Copyright (c) RexxLA 2005-2009.
All Rights Reserved.

FOLLOW-UP:

My first test was performed with the TCC option 'REXX Scripting' turned off. When I turn that option on, it does indeed behave as you observed. And no, this is not because it redirects to standard error. None of the redirection commands (>, >& or >&>) work, when 'REXX Scripting' is turned on.

Ebbe
 
Jul 23, 2009
3
0
Thanks ebbe, for taking the time to verify the problem exists. Am I to understand that with Rexx scripting turned off, you don't have the problem? I am not sure what the Rexx scripting option does or what I lose by turning it off. I hope JPSoft can look into this and fix it soon.

Daniel
 
Jun 2, 2008
38
0
Denmark
Am I to understand that with Rexx scripting turned off, you don't have the problem?
Correct.

I am not sure what the Rexx scripting option does or what I lose by turning it off.
*.rex files are not recognized as executables when 'REXX scripting' is turned off, i.e. when you type part of the name, the tab key won't expand it to the full name and you need to add the extension (.rex) for the command to run. An example:

[REXX Scriting off]

rexxcps
TCC: Unknown command "rexxcps"

[REXX Scriting on]

rexxcps
----- REXXCPS 2.1 -- Measuring REXX clauses/second -----
REXX version is: REXX-ooRexx_4.0.0(MT) 6.03 13 Jul 2009
System is: WindowsNT
Averaging: 100 measures of 30 iterations

Total (full DO): 0.01422 secs (average of 100 measures of 30 iterations)
Time for one iteration (1000 clauses) was: 0.000474 seconds

Performance: 2109705 REXX clauses per second

Ebbe
 
Similar threads
Thread starter Title Forum Replies Date
Steve Pitts REXX support - order of selection Support 2
Joe Caverly @REXX Support 6
P Fixed Rexx .cmd files no longer work in TCC 20 Support 3
fpefpe How to? Rexx -- Regina / Object Rexx Support 2
fpefpe How to? Rexx, Object Rexx Support 3
Steve Pitts Failed REXX invocation not closing file Support 3
fpefpe Rexx support Support 11
A How to? TEE - duplicate output to STDERR Support 3
FreezerBurnt ANSI Prompt messes up list output. Support 39
Ó Recent git output not shown on TCC Support 1
Peter Murschall TEE cannot handle Unicode output Support 2
C TEE command appending null characters to output Support 6
Jesse Heines webform output different in ver. 26 than ver. 25 Support 2
vefatica Piping the output of a DO loop. Support 4
vefatica TCMD output invisible on Win10 Support 22
B How can TCC make an output as a part of command string Support 2
Enigma Take Command 23 duplicates output Support 0
Joe Caverly Works with CMD.EXE, no output with TCC.EXE Support 7
S Output from debugger Support 4
M TCC incorrect dir output since Windows 1803 Support 6
A WAD Output redirection to IF block fails with "unbalanced brackets" Support 7
P Scrollable colored output Support 3
scottb How to? ipconfig output in current window Support 4
David McClelland TEE command puts it's output file in c:\ Support 4
vefatica How to? TPIPE ... see output right away? Support 4
T Fixed Unnecessary debug output Support 3
JohnQSmith Weird DIR output (missing lines) Support 1
J WAD Output redirection in tcexit looses data Support 31
vefatica Console output slower that before Support 8
Mordachai How to capture all console output from a TCMD session? Support 4
C Output continues after Ctrl-Break Support 8
Steve Pitts WAD Strange output from DEL of a non-existent directory Support 7
I perl output is not visible Support 4
I v16 - cls corrupts output stream Support 7
D Fixed Minor problem: output not alligned in the tree command Support 1
vefatica WAD IDE, output window to foreground Support 3
R WAD Strange output from "memory" command Support 1
A How to? Set up a log file for all command output Support 3
A How to? Use TEE with .NET output Support 6
T How to? Logging Output from External Programs Support 4
Frank output of @ipaddress/@ipname Support 1
dcantor Unidentifiable output Support 16
Stefano Piccardi forum software writes debugging output Support 5
Stefano Piccardi TCC 13 vs. TCC 14 different FFIND /E"d$" output Support 1
H TPIPE: /FILTER and /OUTPUT unexpected incompatibility Support 6
Stefano Piccardi issue: redirecting GOSUB output Support 11
A How to? Pass output from ffind to another command in a BTM file Support 5
J Can you redirect output to printer device with echo? Support 1
A How to? How to enable UTF-8 output in tcmd.ini Support 9
W Ascii character output Support 12

Similar threads