Re: CLASSPATH in .profile not used.

2007-06-22 Thread Hunkeler Peter (KIUK 3)
Now, IIRC, the reason that BPXBATCH doesn't do what you want is because it is not a shell. The UNIX shell is what uses /etc/profile to set environment variables. And, at that, only a login shell will use it. BPXBATCH does not use it. BPXBATCH is not a shell, indeed, but when asked to run a

CLASSPATH in .profile not used.

2007-06-20 Thread Big Iron
You may wish to try running the env command from BPXBATCH to see what environment variables have been set by your .profile. Sometimes, some processing in .profile is conditional on the settings of other environment variables. You will reach a wider audience if you send your message to the

Re: CLASSPATH in .profile not used.

2007-06-20 Thread Greg Keuken
: CLASSPATH in .profile not used. You may wish to try running the env command from BPXBATCH to see what environment variables have been set by your .profile. Sometimes, some processing in .profile is conditional on the settings of other environment variables. You will reach a wider audience if you

Re: CLASSPATH in .profile not used.

2007-06-20 Thread McKown, John
cogitoergosum wrote: Hi, I have defined the CLASSPATH variable in my .profile file. Therefore, this job step should work : //STEP1EXEC PGM=BPXBATCH, // PARM='SH java HelloWorld' //STDOUT DD SYSOUT=* //STDERR DD SYSOUT=* Instead, I have this message in

Re: CLASSPATH in .profile not used.

2007-06-20 Thread Barkow, Eileen
You can run the shell .profile script from BPXBATCH by passing it in the parm field: // SET R='SH . /u/eileen/.profile;java HelloWorld run from batch' //RUN EXEC PGM=BPXBATCH, // PARM='R' //STDOUT DD PATH='/u/eileen/tmp/HelloWorld.stdout', // FILEDATA=TEXT, //

Re: CLASSPATH in .profile not used.

2007-06-20 Thread Mark Zelden
On Wed, 20 Jun 2007 07:46:05 -0500, McKown, John [EMAIL PROTECTED] wrote: Now, IIRC, the reason that BPXBATCH doesn't do what you want is because it is not a shell. The UNIX shell is what uses /etc/profile to set environment variables. And, at that, only a login shell will use it. BPXBATCH does

Re: CLASSPATH in .profile not used.

2007-06-20 Thread McKown, John
-Original Message- From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] On Behalf Of Mark Zelden Sent: Wednesday, June 20, 2007 9:04 AM To: IBM-MAIN@BAMA.UA.EDU Subject: Re: CLASSPATH in .profile not used. snip But OSHELL does. Here is an example //OSHELL EXEC