|
Post by Jeffrey Ranney on Aug 25, 2017 7:16:36 GMT -5
Is it possible to use the SUBMIT command without using Hercules?
I am utilizing an MVS Z/OS mainframe connection.
The documentation says I can use a BAT file, which I have written.
I point my OPTIONS to the BAT file (echo "hello world").
When I do SUBMIT it completely locks SPFLITE up and does not return.
If I do SUBMIT DEBUG it exeecutes, I see the "hello world" and have to close the CMD box.
I would like to run my own SUBMIT utilizing FTP as the engine via a BAT file.
What think ye?
|
|
|
Post by George on Aug 25, 2017 10:18:59 GMT -5
Jeffrey: SUBMIT doesn't know or care a whit about the externals. Whether it's a program (like SPFSUBMIT), a BAT file or whatever. SUBMIT simply builds a temporary file of the Submit contents, and then invokes the command you specify in OPTIONS => Submit, doing symbolic substitution of the filename or any other standard variables you choose.
Check the CMD.EXE flags you have set there as well, I believe it should basically be /C to close on completion. If its /K, then that means keep the CMD Open and may be what you are encountering.
George
|
|
|
Post by Jeffrey Ranney on Sept 14, 2017 6:39:07 GMT -5
Thank you Gents! I did 2 things: 1) change the flags from /K to /C 2) remove a PAUSE in my BAT file which locked up the CMD.EXE (Oooooops)
It now WORKS!! Thank you for all you do
|
|
|
Post by George on Sept 14, 2017 11:29:16 GMT -5
Jeffrey: Glad it all came together. Yes, there are lots of little pieces that have to be setup to make it all work. But once done, it usually runs pretty smoothly. A lot of stuff we do is like that. Setting up keyboard macros or full macros takes a bit of time, but it's all one-off, and the payback is repetitive convenience.
George
|
|