View previous topic :: View next topic
|
Author |
Message |
rockish
Active User
Joined: 05 Jun 2009 Posts: 185 Location: Planet Earth
|
|
|
|
I am relatively new to AIX and currently I am involved in creating a job that would require triggering an AIX script from a JCL. I am trying to use BPXBATCH for the same. I was looking at the documents available in publib and got some sample JCLs. But they do not mention where I am suppose to mention the name of the server in which this AIX script should be executed. The code that I am trying to run is as below,
Code: |
//AIXEXECS EXEC PGM=BPXBATCH,PARM='SH NOHUP LS /ROOT/USERS/MYID &'
//STDOUT DD SYSOUT=*
//STDERR DD SYSOUT=* |
But i am doubtful if this job will get submitted into my desired server. Can someone help me showing some insight on how to provide the server details in the job ? |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
BPXBATCH is for executing programs / scripts on the machine you're running on and cannot start something on another host.
If your site is set up for it, and the AIX allows it, you can use REXEC on the mainframe to run a program / script on another server. Read chapter 10, titled Executing Commands on a Remote Host, in the Communications Server: IP User's Guide and Commands manual of the Communications Server bookshelf. |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
Why don't shops use comprehensive job scheduling subsystems for these types of processes? |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Kevin: $ |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
Yep. It never ceases to amaze me how short-sighted the modern generation of IT Management has become. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
So many of the new "managers" have been taught that you don't need professional developers, support people, or products (like schedulers). They have decided (been taught) that you should be able to just plug it in and it will automagically do what is needed.
I just wonder what will happen over the next 10-20 years when almost all of the folks holding things together are gone. . .
Doesn't seem to be a new generation of "heavies" (people with 15-20) coming along.
d |
|
Back to top |
|
|
rockish
Active User
Joined: 05 Jun 2009 Posts: 185 Location: Planet Earth
|
|
|
|
Thanks Robert ! I tried REXEC and it seem to be working fine !
All, regarding the question of having products like schedulers to achieve this, we do have CA ESP which helps us achieving a similar functionality. But I was trying to have some adhoc jobs that would be executed on demand from my local library. This would need changes between every execution and hence version controlling did not seem to be a wise option ! That is why we are trying to achieve something off the scheduler ! |
|
Back to top |
|
|
|