Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Regarding QMF(Query Management Facility)

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
suresh111

New User


Joined: 14 Feb 2005
Posts: 17

PostPosted: Tue Feb 16, 2010 2:11 pm    Post subject: Regarding QMF(Query Management Facility)
Reply with quote

Hi,

I have a large Query in my PS. I want to copy that SQL to SQL QUERY in QMF for execute that query. Could you please suggest me How can I retrieve My Query from PS to QMF.

Thanks for your help in advance.
Regards,
Suresh
Back to top
View user's profile Send private message

Gnanas N

Active Member


Joined: 06 Sep 2007
Posts: 785
Location: Chennai, India

PostPosted: Tue Feb 16, 2010 2:38 pm    Post subject: Reply to: Regarding QMF(Query Management Facility)
Reply with quote

Hi,

Open the PS which contains the query; Copy it using CUT command. In QMF, issue "EDIT QUERY" on command line and there just PASTE it. And press PF3 to come back...

Makes any sense?
Back to top
View user's profile Send private message
prem_ibm

New User


Joined: 15 Sep 2007
Posts: 31
Location: Chennai

PostPosted: Tue Feb 16, 2010 4:05 pm    Post subject: Reply to: Regarding QMF(Query Management Facility)
Reply with quote

Hi

in QMF give below on command line
IMPORT SQL FROM 'PS NAME' enter.....

it will take that SQL Query in QMF pannel....hope it wil help to u.


Thanks

Prem
Back to top
View user's profile Send private message
suresh111

New User


Joined: 14 Feb 2005
Posts: 17

PostPosted: Tue Feb 16, 2010 7:08 pm    Post subject: Reply to: Regarding QMF(Query Management Facility)
Reply with quote

Hi Gnana Sekaran,
Thanks a lot, it is working fine.

Regards,
Suresh
Back to top
View user's profile Send private message
suresh111

New User


Joined: 14 Feb 2005
Posts: 17

PostPosted: Tue Feb 16, 2010 7:12 pm    Post subject: Reply to: Regarding QMF(Query Management Facility)
Reply with quote

Hi Prem,
As you said that I tried but it is showing that "SQL cannot be imported"

Regards,
Suresh
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Tue Feb 16, 2010 7:31 pm    Post subject: Reply to: Regarding QMF(Query Management Facility)
Reply with quote

Use "IMPORT QUERY FROM 'PS NAME' ".

"SQL" is not a valid object-name in this context. Only QUERY, FORM, PROC, TABLE, or DATA can be imported.
Back to top
View user's profile Send private message
suresh111

New User


Joined: 14 Feb 2005
Posts: 17

PostPosted: Wed Feb 17, 2010 3:40 pm    Post subject: Reply to: Regarding QMF(Query Management Facility)
Reply with quote

Hi Anju,
Thank You.
It is working fine.

Regards,
Suresh
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Wed Feb 17, 2010 4:25 pm    Post subject:
Reply with quote

You're welcome ..icon_smile.gif

PS> Spelling of my name is Anuj.
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 -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Join in SQL Query vickey_dw DB2 2 Tue Jan 17, 2017 12:15 am
This topic is locked: you cannot edit posts or make replies. MQ setup query mohitsaini Java & MQSeries 4 Sun Jan 08, 2017 1:53 am
No new posts Produce Mainframe Dash Board Reports ... sdcarlson53 All Other Mainframe Topics 2 Thu Jan 05, 2017 11:01 pm
No new posts DB2 query Using Recursion, Converting... smilewithashu2 DB2 1 Tue Jan 03, 2017 12:50 pm
No new posts SQL query to run through list of valu... Ni3-db2 DB2 14 Wed Dec 14, 2016 9:52 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us