Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums 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: 228
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: 2114
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: 228
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: 667
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: 228
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: 1300
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 Encoding using rexx pkmurali CLIST & REXX 2 Sat Sep 08, 2018 1:05 am
No new posts REXX CGI - Hello World vasanthz All Other Mainframe Topics 4 Fri Jul 13, 2018 3:53 am
No new posts Run time proc edit Niki JCL & VSAM 7 Fri Jun 08, 2018 5:42 pm
This topic is locked: you cannot edit posts or make replies. Rexx code to find greater then symobl... Bharath Vikraman CLIST & REXX 8 Tue May 29, 2018 9:40 am
No new posts Trap the jcl error message or maxcc i... ankita agarwal CLIST & REXX 5 Fri May 18, 2018 2:08 pm

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