MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

To submit jcl through rexx

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF
View previous topic :: View next topic  
Author Message
lal
Beginner


Joined: 21 Oct 2003
Posts: 70
Topics: 25

PostPosted: Sat Nov 08, 2003 5:07 am    Post subject: To submit jcl through rexx Reply with quote

Hi Everybody,
I have a jcl utility ie IEHLIST, which is embedded in the REXX program using QUEUEs. I want to submit this utility through the REXX. Please let me know how to do this. Question
Back to top
View user's profile Send private message
Cogito-Ergo-Sum
Advanced


Joined: 15 Dec 2002
Posts: 637
Topics: 43
Location: Bengaluru, INDIA

PostPosted: Sat Nov 08, 2003 5:15 am    Post subject: Reply with quote

There are 2 ways to do that.

1. Use "SUBMIT" TSO command.
2. Copy the utility to SYSOUT directed to INTDR.
_________________
ALL opinions are welcome.

Debugging tip:
When you have eliminated all which is impossible, then whatever remains, however improbable, must be the truth.
-- Sherlock Holmes.
Back to top
View user's profile Send private message
lal
Beginner


Joined: 21 Oct 2003
Posts: 70
Topics: 25

PostPosted: Sat Nov 08, 2003 5:47 am    Post subject: Reply with quote

HI cognito,
Thanx for the reply. But I have the jcl embedded in the rexx program ie it is in between above and below this jcl i have so many other rexx commands to execute.
Back to top
View user's profile Send private message
Cogito-Ergo-Sum
Advanced


Joined: 15 Dec 2002
Posts: 637
Topics: 43
Location: Bengaluru, INDIA

PostPosted: Sat Nov 08, 2003 6:05 am    Post subject: Reply with quote

Could you please paste the code?

The answer will still remain the same. Only thing is, the point of insertion. Paste the code and we can figure out where that point should be.

PS: I do not know what is wrong with my id. This is the nth time, someone has referred me as Cognito whereas my id is COGITO-Ergo-Sum.
_________________
ALL opinions are welcome.

Debugging tip:
When you have eliminated all which is impossible, then whatever remains, however improbable, must be the truth.
-- Sherlock Holmes.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12372
Topics: 75
Location: San Jose

PostPosted: Sat Nov 08, 2003 9:17 am    Post subject: Reply with quote

Lal,

Allocate a Dataset, create a New Stack , push the lines of JCL into the stack and write the stack to the allocated dataset and using ADDRESS TSO 'SUBMIT 'jcl_dsn submit the JCl

Hope this helps...

cheers

kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
lal
Beginner


Joined: 21 Oct 2003
Posts: 70
Topics: 25

PostPosted: Mon Nov 10, 2003 7:38 am    Post subject: Reply with quote

Thanx Cogito & kolusu,
Sorry cogito for spelling ur name wrongly and this is my code which i need to execute still it has plenty of it. But have just copied few. Just let me know the detail description how to run jcl embedded in rexx through rexx.

SAY "ENTER THE MEMBER NAME"
pull member
say "u have entered tso id as:" id "& ur member name as:" member
x=outtrap("var.")
"listc volume"
say "var.0=" var.0
/* set up job */
QUEUE "//"USERID()"B JOB (LC03,S116),JHR,CLASS=L,MSGLEVEL=(1,1),"
QUEUE "// NOTIFY="USERID()
do count = 1 by 3 to var.0
if count = 1 then
do
A = 1
B = 3
end
QUEUE "//IEH EXEC PGM=IEHLIST"
QUEUE "//SYSPRINT DD DISP=SHR,DSN="VAR.A
QUEUE "//DDNAME1 DD UNIT=3390,VOL=SER="VAR.B",DISP=OLD"
QUEUE "//SYSUT2 DD SYSOUT=*"
QUEUE "//SYSIN DD *"
QUEUE " LISTPDS DSNAME="VAR.A",FORMAT,VOL=3390="VAR.B""
QUEUE "/*"
.....
....
...
Back to top
View user's profile Send private message
taltyman
JCL Forum Moderator
JCL Forum Moderator


Joined: 02 Dec 2002
Posts: 310
Topics: 8
Location: Texas

PostPosted: Mon Nov 10, 2003 11:08 am    Post subject: Reply with quote

do a TSO HELP SUBMIT and check out the SUBMIT * END(xx) syntax.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group