Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Invoking AIX Scripts from Mainframes.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Invoking AIX Scripts from Mainframes.
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: 8054
Location: East Dubuque, Illinois, USA

PostPosted: Thu May 31, 2012 8:12 pm    Post subject:
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

Moderator Team Head


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

PostPosted: Thu May 31, 2012 8:20 pm    Post subject: Reply to: Invoking AIX Scripts from Mainframes.
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: 8054
Location: East Dubuque, Illinois, USA

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

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

Moderator Team Head


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

PostPosted: Thu May 31, 2012 8:23 pm    Post subject: Reply to: Invoking AIX Scripts from Mainframes.
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

Site Director


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

PostPosted: Fri Jun 01, 2012 12:32 am    Post subject: Reply to: Invoking AIX Scripts from Mainframes.
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Executing OO COBOL program invoking J... Virendra Shambharkar COBOL Programming 2 Tue Jan 10, 2017 6:37 pm
No new posts Are there any Freeware utilties for i... johnmull IBM Tools 2 Wed Dec 21, 2016 8:29 am
No new posts Invoking CA 7 commands through REXX kenshin CLIST & REXX 10 Fri Aug 12, 2016 9:33 pm
No new posts creating a physical sequential file i... Shaheen Shaik JCL & VSAM 8 Wed Jun 29, 2016 3:46 pm
No new posts Invoking SAS in Mainframe mkk157 All Other Mainframe Topics 3 Thu Jun 02, 2016 1:12 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us