Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Forum Index
 
Register
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Can we call QMF proc from REXX ?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
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    Post subject: Can we call QMF proc from REXX ?
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 User


Joined: 01 Sep 2015
Posts: 327
Location: Denmark

PostPosted: Fri Aug 03, 2018 12:52 pm    Post subject:
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

Senior Member


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

PostPosted: Sat Aug 04, 2018 9:58 am    Post subject: Reply to: Can we call QMF proc from REXX ?
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 User


Joined: 01 Sep 2015
Posts: 327
Location: Denmark

PostPosted: Sat Aug 04, 2018 1:42 pm    Post subject:
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: 770
Location: The Universe

PostPosted: Sat Aug 04, 2018 7:36 pm    Post subject:
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 User


Joined: 01 Sep 2015
Posts: 327
Location: Denmark

PostPosted: Sun Aug 05, 2018 7:11 pm    Post subject:
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: 1331
Location: Israel

PostPosted: Sun Aug 05, 2018 7:28 pm    Post subject:
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    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
No new posts how to show the class of an ims trans... Renato Zangerolami CLIST & REXX 1 Fri Dec 06, 2019 6:50 pm
No new posts Rexx to create VSAM define statements Dinesh Mani CLIST & REXX 9 Fri Nov 29, 2019 9:26 pm
No new posts Retrieving IMS message processing reg... tneelakandan CLIST & REXX 7 Fri Nov 22, 2019 7:23 pm
No new posts Running rexx on zOS with JCL Rajesh_98 CLIST & REXX 3 Wed Nov 20, 2019 5:19 pm
No new posts Can you manually set an EOF marker in... Don Allard CLIST & REXX 5 Sat Nov 02, 2019 12:30 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us