MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Invoke a Unix Script from the JCL?

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
sakreg
Beginner


Joined: 28 Feb 2005
Posts: 80
Topics: 26

PostPosted: Wed Jul 26, 2006 2:12 am    Post subject: Invoke a Unix Script from the JCL? Reply with quote

Is there a way to invoke a Unix Script from the JCL?
Back to top
View user's profile Send private message
Bill Dennis
Advanced


Joined: 03 Dec 2002
Posts: 579
Topics: 1
Location: Iowa, USA

PostPosted: Wed Jul 26, 2006 8:35 am    Post subject: Reply with quote

PGM=BPXBATCH can invoke a Unix script on the Mainframe. Look at the UNIX System Services manuals.
Code:
//STEP1 EXEC PGM=BPXBATCH,                     
// PARM='sh skinker /u/testcron 2 ',           
// REGION=0M,TIME=NOLIMIT                     
//STDOUT DD PATH='/tmp/test-stdout',     
// PATHOPTS=(OWRONLY,OCREAT,OTRUNC),           
// PATHMODE=SIRWXU                             
//STDERR DD PATH='/tmp/test-stderr',     
// PATHOPTS=(OWRONLY,OCREAT,OTRUNC),           
// PATHMODE=SIRWXU                             

_________________
Regards,
Bill Dennis

Disclaimer: My comments on this foorum are my own and do not represent the opinions or suggestions of any other person or business entity.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group