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

Multiline STDPARM for BPXBATCH


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

New User


Joined: 17 Feb 2007
Posts: 30
Location: Brazil

PostPosted: Sat Mar 19, 2011 3:45 am
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:

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

New User


Joined: 17 Feb 2007
Posts: 30
Location: Brazil

PostPosted: Sat Mar 19, 2011 5:11 am
Reply with quote

Solved.

Just leave one space.

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
Robert Sample

Global Moderator


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

PostPosted: Sat Mar 19, 2011 5:14 am
Reply with quote

Have you removed line numbers from your JCL?
Back to top
View user's profile Send private message
HenriqueS

New User


Joined: 17 Feb 2007
Posts: 30
Location: Brazil

PostPosted: Sat Mar 19, 2011 7:45 pm
Reply with quote

Yes. All solved now.
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 BPXBATCH , Need Help All Other Mainframe Topics 6
No new posts How to use STDPARM with df command JCL & VSAM 5
No new posts Need help in reading and validating a... COBOL Programming 8
No new posts '-c ' in STDOUT of BPXBATCH TSO/ISPF 8
No new posts BPXBATCH output All Other Mainframe Topics 12
Search our Forums:

Back to Top