foreground exec on mvs

General discussion on the JZOS batch launcher and toolkit
Post Reply
Orlov_O
Posts: 3
Joined: Mon Apr 16, 2007 6:59 am

foreground exec on mvs

Post by Orlov_O »

Is it possible to launch some tasks in foreground in separated java thread such as "EXEC" command form TSO Console?
Usually, it can be launched over Runtime.getRuntime().exec()... and I can redirect stdin/stdout into java program, but it isn't ajusted for mvs.

Thanks.
dovetail
Site Admin
Posts: 2022
Joined: Thu Jul 29, 2004 12:12 pm

Post by dovetail »

You can run Unix System Services commands using Runtime.exec().

Are you asking about launching a TSO/REXX exec? It is possible to do that via the "tso" USS shell command.
Orlov_O
Posts: 3
Joined: Mon Apr 16, 2007 6:59 am

Post by Orlov_O »

"tso" is really needed command, thanks .

But some TSO/E commands are not supported in dynamic TSO environment.
I need to launch some rexx scripts in real TSO environment. Some scripts needs to write result data into special DD (DD:MYRXXOUT for example).

How can I call a rexx script in real TSO environment from java-program and get it's results without dataset or hfs-file allocation?

Can I allocate temporary DD from JZOS (over BPXWDYN call) and launch rexx script (over "tso exec proxy.rexx" which launches target rexx over ADDRESS TSO "EXEC ...") with the DD specified in arguments? Then the script writes the result into the dd, allocated by jzos, and java-program reads the result from the dd and remove it. Is it possible?
Post Reply