× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Thanks Pete! Between this and the as400 tech link sent
by... (I'm sorry, I deleted the email BEFORE I thanked
you), I got it figured out. I guess I forgot how
simple CL could be (and I was trying to "RPG" it ;o) )

--- Pete Helgren <Pete@xxxxxxxxxx> wrote:

> Here is how I start Tomcat from a CL program. 
> Perhaps it will help:
> 
> PGM
> SBMJOB     CMD(QSH CMD('export as +                 
>      
>             
> CATALINA_HOME=/jakarta-tomcat-5.0.28;export +
>              as +                                   
>      
>             
> CATALINA_BASE=/jakarta-tomcat-5.0.28;export +
>              as +                                   
>      
>             
> CATALINA_TMPDIR=/jakarta-tomcat-5.0.28/temp+ 
>              ;/jakarta-tomcat-5.0.28/bin/catalina.sh
> +    
>              start')) JOB(STRTC528C) JOBQ(QSYSNOMAX)
> +    
>              CPYENVVAR(*YES) ALWMLTTHD(*YES)        
>      
> ENDPGM
> 
> Basic QSH syntax would be QSH CMD('command to
> start')
> 
> It is the embedded "'" that will get you.  In that
> case you may want to 
> build the string as a variable and pass it.
> 
> Pete
>  
> 
> Jen Raihala wrote:
> 
> >It has been since I was in tech college that I used
> >CL. While I can read it, I have lost the knack for
> >"whipping up a simple driver that calls a series of
> >"stuff" on the fly".
> >
> >I need to make a call to QSH (qshell) with a set
> >string.
> >Then I need to call 2 RPG programs in sequence
> (Call
> >PGM(program1), call PGM(program2) at least I think
> I
> >remember that much!).
> >Then I need to place 2 more calls to QSH with a set
> >string for each.
> >
> >Looking in the book I had in school doesnt help
> much
> >as some of the directions it gives serves to only
> >light my screen green with "hey! Ya can't do that!"
> >messages.
> >
> >How can I declare my strings as set variables (they
> >need the ' at both ends. is that ''?)
> >
> >Thanks in advance (I cant get to Orlando fast
> enough
> >after this week!!).
> >
> >JenR
> >Struggling...but learning...then forgetting and
> moving
> >on...until...someone says: Hey! Didn't you?...
> >  
> >
> -- 
> This is the Midrange Systems Technical Discussion
> (MIDRANGE-L) mailing list
> To post a message email: MIDRANGE-L@xxxxxxxxxxxx
> To subscribe, unsubscribe, or change list options,
> visit:
>
http://lists.midrange.com/mailman/listinfo/midrange-l
> or email: MIDRANGE-L-request@xxxxxxxxxxxx
> Before posting, please take a moment to review the
> archives
> at http://archive.midrange.com/midrange-l.
> 
> 


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.