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 

Multiline STDPARM for BPXBATCH

 
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
HenriqueS
Beginner


Joined: 01 Feb 2007
Posts: 29
Topics: 14

PostPosted: Fri Mar 18, 2011 5:15 pm    Post subject: Multiline STDPARM for BPXBATCH Reply with quote

Hello,

How to I write an STDPARM instream DD card with multiple lines representing a single command for Unix System Services ?

Example:
Code:

//STDPARM  DD   *         
SH mytool -arg1 -arg2 +
-arg3 "value" +         
-arg4 "value" +         
-arg5 "value"
/*


I have tried using '+', '\' and '-', but had no success trying to make a line continuation...

Regards,
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12377
Topics: 75
Location: San Jose

PostPosted: Fri Mar 18, 2011 5:57 pm    Post subject: Reply with quote

HenriqueS,

Look at the last example

http://publib.boulder.ibm.com/infocenter/zos/v1r9/index.jsp?topic=/com.ibm.zos.r9.bpxa400/bpxza471246.htm
Back to top
View user's profile Send private message Send e-mail Visit poster's website
HenriqueS
Beginner


Joined: 01 Feb 2007
Posts: 29
Topics: 14

PostPosted: Fri Mar 18, 2011 6:43 pm    Post subject: Reply with quote

Thanks for the feedback.

Solved.

Just leave one space.

Also, to execute more than one command no the same instream, connect them with a ";" , not repeating the "SH".

Sample:

//STDPARM DD *
SH mytool1 -arg1 -arg2
-arg3 "value"
-arg4 "value"
-arg5 "value" ;
mytool2 -arg1 -arg2
-arg3 "value"
-arg4 "value"
-arg5 "value"
/*
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