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: 317
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: 2136
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: 317
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: 753
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: 317
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: 1329
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 REXX VSAM Harold Barnes CLIST & REXX 2 Sat Oct 05, 2019 2:38 pm
No new posts REXX for Reading SMF type 70-1 AdrielGB Testing & Performance analysis 6 Sat Oct 05, 2019 3:03 am
No new posts Can GLobal variable used under TSOE/REXX Kaliragavendran CLIST & REXX 5 Tue Sep 24, 2019 7:16 am
No new posts REXX and 3270 highlighting Harold Barnes CLIST & REXX 3 Fri Sep 20, 2019 5:26 am
No new posts REXX EXECIO STEM No newline Harold Barnes CLIST & REXX 3 Tue Sep 17, 2019 6:07 am

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