George,
I'think we may have a Christmas bug, at least I'm not sure this is working 'as designed'.
Environment: Windows 11, SPFLite v3.0.23351 beta, /K is specified under OPTIONS SUBMIT, for both CMD and RUN
I type CMD DIR C:\*.* <ENTER>
All I see is a "Command Issued" message.
There's no Windows CMD.EXE window visible to be /K-ept. Nothing flashes up and disappears.
I also have a REXX program called MATCH.REX which is usually run from the native Windows command prompt.
The program writes a bunch of messages to the CMD.EXE window and creates an output file. It then issues a START SPFLITE2.EXE "filename" so I can view/edit the output file in SPFLite.
When I type CMD MATCH <ENTER>
Just like with DIR above, I see no Windows CMD.EXE window, I receive none of the messages from the MATCH command, but the MATCH output file DOES appear in a new tab within SPFLite as usual.
So the program did run - we just didn't see anything.
The SPFLite CMD command does initiate Windows's CMD.EXE, passes the requested command, which is executed as expected.
Given the use of /K, should we not see the CMD.EXE window?
Please note, RUN work fine.
If I am editing my MATCH.REX program in SPFLite and I type RUN <ENTER> , I DO see a Windows CMD.EXE window with the messages I would expect to see.
clayec,
Welcome! We are kindred spirits in that we have the same mainframe background.
The difference between SPFLite's CMD primary command and the RUN primary command is...
CMD passes whatever text follows it directly to Windows CMD.EXE and quits.
RUN takes whatever data you have in the current EDIT tab, saves it in a temporary file then tells Windows to execute that temporary file.
Windows figures out which application is needed to 'load' i.e. run that file.
If the file you are editing does not have a file-type (like .BAT or .REX) or it is of the wrong type, let's say you're editing XYZ.TXT but you want it run run as a .BAT file), you need to specify RUN .BAT
I run Open Object REXX (ooREXX) on Windows 10 and 11.
Current version is 5.0.0-12583, available from SourceForge.Net
sourceforge.net/projects/oorexx/files/ but I'm on oorexx-5.1.0beta-12722.
I'm sure you know this, but just in case...
- The REXX source file must have a filetype that is associated with the REXX interpreter so that Windows 'knows' which application to use to open that file.
For ooREXX, that file-type is .REX Installation of ooREXX will register that file type to the REXX interpreter.
- Windows also needs to know where to find the REXX interpreter. The install process will place the software in C:\Program Files\ooREXX.
I can't remember if the installer places an entry to that folder in your "path" environment variable or not, but you need that. See (System Properties - Advanced - Environment variables)
- If you have a 'CLIST' library (remember them?) of REXX programs, place the fully qualified name of that/those folder(s) into the path environment variable also.
This allows you to start a REXX program just by typing its name at a Windows CMD prompt, just like in our TSO days.
OK, when you have all that, you can call any REXX program from SPFLite.
I suspect that the reason you think that nothing happens is because there is nothing to see. I think this may be a bug in SPFLite.
You don't say what your REXX program needs to do, but if you are trying to execute an EDIT macro written in REXX. it won't work with SPFLite.
There's no interface between REXX and SPFlite.
SPFlite does have Edit Macros, but they are written in thinBASIC.