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

How to submit a Stacked JCL in USS through a REXX whos CGI?


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Naldoven

New User


Joined: 07 Jun 2006
Posts: 6

PostPosted: Thu Jun 15, 2006 8:18 pm
Reply with quote

I have to write a Program to Kill the TSO Session from our Intranet. I wrote a Macro in rexx to do this in the MVS itself... no problems... now i had to use REXX as a CGI in the USS (Unix) Environement. Now my question is how i can submit stacked Job? this is the way i done this:

QUEUE "//ICKILUSE JOB (SSP,M),'SES 3400',CLASS=T,"
.
.
.
.
QUEUE "//*"
QUEUE "$$"
address tso "SUBMIT * END($$)"

was en example i found here in the Forum!
the addres TSO instruction doesnt work in USS Environement
Back to top
View user's profile Send private message
superk

Global Moderator


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

PostPosted: Mon Jun 19, 2006 9:24 pm
Reply with quote

The best and easiest way that I can think of to submit a job from the USS environment is to use FTP:

ftp mainframe.ip.address or domain.name
>userid (must match the jobname in the JOB statement)
>password
>ascii
>filetype=jes

>put local.file.containing.JCL

or

>get remote.dataset.containing.JCL

>quit
Back to top
View user's profile Send private message
Naldoven

New User


Joined: 07 Jun 2006
Posts: 6

PostPosted: Thu Jun 22, 2006 1:50 pm
Reply with quote

Found out how to submit a Job =) When ya use REXX as a CGI you can submit jobs through this command

say submit('outline.');

outline. is the stack Variable who contains the JCL (like the queue instruction). But i found a little problem. I submit the job from our Webserver S51(Development) and want to route it throught this JCL statements

//*ROUTE XEQ BDTR1N
//*MAIN CLASS=S11

to the S11(Productive) Machine to cancel the session of a user on that machine. But the interpreter ignores the //*ROUTE instruction... anyone done this before? and have a helping hand for me?
Back to top
View user's profile Send private message
Naldoven

New User


Joined: 07 Jun 2006
Posts: 6

PostPosted: Thu Jun 22, 2006 2:02 pm
Reply with quote

Here the REXX CGI as a print screen
Back to top
View user's profile Send private message
Naldoven

New User


Joined: 07 Jun 2006
Posts: 6

PostPosted: Thu Jun 22, 2006 8:14 pm
Reply with quote

it is with the //*ROUTE XQA Instruction
it works now ;-)

Greets
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 -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Compile Several JCL JOB Through one r... CLIST & REXX 4
No new posts Running REXX through JOB CLIST & REXX 13
No new posts Error to read log with rexx CLIST & REXX 11
No new posts isfline didnt work in rexx at z/OS ve... CLIST & REXX 7
No new posts run rexx code with jcl CLIST & REXX 15
Search our Forums:

Back to Top