View previous topic :: View next topic
|
Author |
Message |
Knowledge Hunter
New User
Joined: 17 Aug 2006 Posts: 22 Location: India
|
|
|
|
Hi all,
Is it possible to submit a set of TSO commands from REXX?
we can submit a JCL from REXX, by queuing the lines of the JCL and write it to a dataset (or datastack) and then we use ?submit? command to, submit the member from REXX.
Is the same way possible in submitting a sequence of TSO commands?
I tried the below code and its not working for me. However there was no syntax error shown while execution.
I am giving the actually code snippet below. Please go thru it and tell me where I went wrong.
All I need to do it is to automate a sequence of commands entered manually in TSO enviornment using REXX
Pls tell me is there some other means of achieve the requirement (I heard we can use a ISPEXEC macro for submitting a set of TSO commands using REXX)
Code: |
/******** REXX****************/
ADDRESS TSO
"ALLOC F(ISFIN) TRACKS SPACE(1) REUSE"
QUEUE "USERID@DOMAIN.COM"
QUEUE "++FILE.NAME"
QUEUE "END"
"EXECIO" QUEUED() "DISKW ISFIN(FINIS"
ADDRESS TSO "SENDMAIL"
"EXECIO 0 DISKR ISFIN(FINIS"
"FREE F(ISFIN)"
RETURN
|
Regards,
Knowledge Hunter |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
First of all, SUBMIT is a TSO command, so I think you've already answered your own question. In addition, in your code:
"ALLOC F(ISFIN) TRACKS SPACE(1) REUSE"
ALLOC is a TSO command.
"SENDMAIL"
SENDMAIL is a TSO command.
"FREE F(ISFIN)"
FREE is a TSO command.
You made the statement:
Quote: |
I heard we can use a ISPEXEC macro for submitting a set of TSO commands using REXX)
|
You can use an ISPF EDIT macro to automate any series of ISPF EDIT commands. I don't know what you mean by an "ISPEXEC macro". |
|
Back to top |
|
|
Knowledge Hunter
New User
Joined: 17 Aug 2006 Posts: 22 Location: India
|
|
|
|
Actually i meant ISPF EDIT commands. Sorry for the confusion.Thanks for your quick response superk. |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
Just want to add something, for the record. ISPF EDIT Macro's can be written in any programming language desired, as documented here in the z/OS V1R7.0 ISPF Edit and Edit Macros manual.
There seems to be some mis-informed folks out there who think that TSO and ISPF dialog functions are only callable from CLIST or REXX. Not true. |
|
Back to top |
|
|
|