View previous topic :: View next topic
|
Author |
Message |
batu544
New User
Joined: 21 Jul 2005 Posts: 17 Location: bangalore
|
|
|
|
Hi,
I would like to execute a QMF proc (which runs multiple queries) from REXX. Is it possible? My Rexx has one Panel which will take input from user and it will run the QMF.
I can run QMF in batch mode from rexx by building a JCL, but I would like to know if we can do it directly.
I did a search, all I can find it converting QMF proc to a rexx qmf proc.
Thank you |
|
Back to top |
|
|
Willy Jensen
Active Member
Joined: 01 Sep 2015 Posts: 712 Location: Denmark
|
|
|
|
I don't know QMF, but most batch processes can run under REXX by allocating datasets dynamicaly and then calling the program with Address TSO "pgmname" or Address AttchMVS pgmname, depending on what parameters must be passed. |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2547 Location: Silicon Valley
|
|
|
|
Quote: |
by allocating datasets dynamicaly |
You should become familiar with the ALTLIB and TSOLIB commands of TSO.
ALTLIB: define a file where to search for rexx programs.
TSOLIB: defines a file where to search for load modules. |
|
Back to top |
|
|
Willy Jensen
Active Member
Joined: 01 Sep 2015 Posts: 712 Location: Denmark
|
|
|
|
TSOLIB sadly cannot be used from within a REXX running under ISPF. But the TSO CALL should work, though it will not create a tasklib. |
|
Back to top |
|
|
steve-myers
Active Member
Joined: 30 Nov 2013 Posts: 917 Location: The Universe
|
|
|
|
TSO CALL always creates a tasklib when the program is specified as dsname(program). Obviously it cannot create a tasklib when the program is specified as *(program). |
|
Back to top |
|
|
Willy Jensen
Active Member
Joined: 01 Sep 2015 Posts: 712 Location: Denmark
|
|
|
|
Sorry, TSO CALL does indeed create a tasklib for "call dsname(program)", I had a senior moment. |
|
Back to top |
|
|
Marso
REXX Moderator
Joined: 13 Mar 2006 Posts: 1353 Location: Israel
|
|
Back to top |
|
|
|