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: 4648
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
This topic is locked: you cannot edit posts or make replies. Calling REXX code from ISPF panel sanchita dey TSO/ISPF 4 Mon Jan 02, 2017 5:13 pm
No new posts REXX DB2: Dynamic allocation of DB2.D... BHAS CLIST & REXX 3 Mon Dec 19, 2016 8:26 pm
No new posts find particular member name in PDS us... ravi243 CLIST & REXX 10 Mon Dec 19, 2016 6:44 pm
No new posts What is the command to check MODE of ... rohanthengal CLIST & REXX 7 Fri Nov 18, 2016 1:48 pm
This topic is locked: you cannot edit posts or make replies. Rexx to create GDG by scanning JJ result krish.deepu CLIST & REXX 5 Tue Oct 25, 2016 5:32 pm


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