IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Invoking AIX Scripts from Mainframes.


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
rockish

Active User


Joined: 05 Jun 2009
Posts: 185
Location: Planet Earth

PostPosted: Thu May 31, 2012 8:01 pm
Reply with quote

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
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Thu May 31, 2012 8:12 pm
Reply with quote

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
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Thu May 31, 2012 8:20 pm
Reply with quote

Why don't shops use comprehensive job scheduling subsystems for these types of processes?
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Thu May 31, 2012 8:21 pm
Reply with quote

Kevin: $
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Thu May 31, 2012 8:23 pm
Reply with quote

Yep. It never ceases to amaze me how short-sighted the modern generation of IT Management has become.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Fri Jun 01, 2012 12:32 am
Reply with quote

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
View user's profile Send private message
rockish

Active User


Joined: 05 Jun 2009
Posts: 185
Location: Planet Earth

PostPosted: Fri Jun 01, 2012 12:39 am
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts SH256/MD5 Checksum in Mainframes JCL JCL & VSAM 14
No new posts After hours quick-fix support for IBM... Mainframe Jobs 0
No new posts Identify unused (junk) REXX scripts TSO/ISPF 30
No new posts getting RC=3650 when invoking REXX wi... CLIST & REXX 7
No new posts Schedulers on Mainframes JCL & VSAM 7
Search our Forums:

Back to Top