IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Can we call QMF proc from REXX ?


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
batu544

New User


Joined: 21 Jul 2005
Posts: 17
Location: bangalore

PostPosted: Fri Aug 03, 2018 11:03 am
Reply with quote

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
View user's profile Send private message
Willy Jensen

Active Member


Joined: 01 Sep 2015
Posts: 712
Location: Denmark

PostPosted: Fri Aug 03, 2018 12:52 pm
Reply with quote

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
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2547
Location: Silicon Valley

PostPosted: Sat Aug 04, 2018 9:58 am
Reply with quote

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
View user's profile Send private message
Willy Jensen

Active Member


Joined: 01 Sep 2015
Posts: 712
Location: Denmark

PostPosted: Sat Aug 04, 2018 1:42 pm
Reply with quote

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
View user's profile Send private message
steve-myers

Active Member


Joined: 30 Nov 2013
Posts: 917
Location: The Universe

PostPosted: Sat Aug 04, 2018 7:36 pm
Reply with quote

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
View user's profile Send private message
Willy Jensen

Active Member


Joined: 01 Sep 2015
Posts: 712
Location: Denmark

PostPosted: Sun Aug 05, 2018 7:11 pm
Reply with quote

Sorry, TSO CALL does indeed create a tasklib for "call dsname(program)", I had a senior moment. icon_sad.gif
Back to top
View user's profile Send private message
Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1353
Location: Israel

PostPosted: Sun Aug 05, 2018 7:28 pm
Reply with quote

Chapter 3 of the Developing DB2 QMF applications guide describes the REXX language interface, with a couple of examples.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Compile Several JCL JOB Through one r... CLIST & REXX 4
No new posts Running REXX through JOB CLIST & REXX 13
No new posts Error to read log with rexx CLIST & REXX 11
No new posts isfline didnt work in rexx at z/OS ve... CLIST & REXX 7
No new posts run rexx code with jcl CLIST & REXX 15
Search our Forums:

Back to Top