On 28/04/2017 1:28 PM, David Crayford wrote:
I agree that it would be ideal if the JZOS batch launcher was modernized to support wildcards but disagree about the shell. I find it's absolutely necessary just to do stuff like:

. /etc/profile       # set TZ variable and other stuff

Whether there should be a system wide TZ variable is another discussion :-) I'm not sure there should be anything else in /etc/profile that is required for every java batch job.

It's also unfortunate that the DD is called STDENV but is doesn't follow the same conventions as BPXBATCH STDENV (I'm not sure which came first).

I have no argument with the facility to run a shell script, it's just the *requirement* for a script, and mainly the need to customize it for CLASSPATH that I object to. Java classpath can hard enough to figure out without dealing with shell script for-do-done loops and the syntax complexities of shell variables, braces, quotes, wildcard expansion etc.

I suspect it deters a lot of people from using Java on z/OS: they find that script and think "Hmmm, maybe I'll try Rexx first".

What would be ideal: STDENV DD to set environment variables in exactly the same way as BPXBATCH, and maybe something like SCRIPT DD for an optional initialization script.

--
Andrew Rowley
Black Hill Software
+61 413 302 386

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to