Re: Need sample program



globaloney wrote:
Hello.
I have had 20 +years working with Rexx on a mainframe but I am new to
working on a pc.
I have oorexx installed on my pc running Windows Vista OS. I need a
sample program to get me started.

Could someone provide a sample list of commands to open a file on my
pc, read each line
and write each line to an output file?

Also how do you debug a rexx.exe?, When I run on that is in error the
MS window closes
before I see what the error was. Thanks in advance.


Lots of good suggestions already so I will only add the following. OoRexx provides two additional ways to run a script besides REXX.EXE - REXXHIDE.EXE and REXXPAWS.EXE. You would use the first in cases where all of the user interaction is via dialogs so there would be no need for a "command window". It also would be useful for something meant to run in the "background". The second was added by Mark Hessling to mimic the default Regina behavior of leaving the command window open after the script terminates. The default "association" for the .rex extension is to invoke REXX.EXE but you COULD change it to run REXXPAWS for example if you wanted the command window to always remain open. In my opinion, however, the best way to debug a new script is to invoke it from an already open command window and make liberal use of TRACE to step through the parts of the program that aren't working as expected.
.



Relevant Pages

  • Interesting function vs. script variable scope/precedence question
    ... Now that the code is in a function, the call to sizefails, with this message to the command window: ... Now I can see in the Workspace windows that db is loaded into the function's workspace. ... So some functions 'see' the variable db when called from my function (e.g. whos), ... But that's a hack - I'd really like to know how the precedence and/or scope rules differ in the script vs. function cases. ...
    (comp.soft-sys.matlab)
  • RE: hide python window
    ... [Bell, Kevin] ... | want to see the command window because it runs all day. ... run the script with the pythonw.exe executable (or ...
    (comp.lang.python)
  • Re: M-File editor r2006b
    ... couple of breakpoints but the datatip doesnt appear. ... run from the command window the function doesnt generate any errors. ... If there truly were an invalid statement, the script would generate ...
    (comp.soft-sys.matlab)
  • Re: redirect error output to file
    ... the script fails. ... something like that to capture the error message flahsing by in my ... Run the script from a command window: ... Use the cscript host at a command prompt. ...
    (microsoft.public.scripting.vbscript)
  • Re: after running script, wscript stays in memory
    ... I didn't see I made a typo so when the script tried to run ... ::> running in the scheduler. ... the command window stayed open. ... without even the implied warranty of merchantability ...
    (microsoft.public.scripting.vbscript)