Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
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    Post subject: How to submit a Stacked JCL in USS through a REXX whos CGI?
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

Moderator Team Head


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

PostPosted: Mon Jun 19, 2006 9:24 pm    Post subject: Re: How to submit a Stacked JCL in USS through a REXX whos C
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    Post subject: Re: How to submit a Stacked JCL in USS through a REXX whos C
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    Post subject: Re: How to submit a Stacked JCL in USS through a REXX whos C
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    Post subject: Re: How to submit a Stacked JCL in USS through a REXX whos C
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    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Passing data from REXX to C programme... chong.zhou CLIST & REXX 3 Wed Jul 26, 2017 9:11 pm
No new posts REXX to get the all datasets name parasmalik20 CLIST & REXX 5 Tue Jul 18, 2017 9:10 pm
No new posts How system know which REXX to excute? jackzhang75 CLIST & REXX 14 Thu Jul 06, 2017 1:09 am
No new posts REXX - Dynamic file Creation d_sarlie CLIST & REXX 7 Tue Jun 27, 2017 7:30 pm
No new posts REXX WTO for console message bipinpeter CLIST & REXX 6 Tue Jun 27, 2017 3:56 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us