If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > transfer dataset to PC in QMF PROC

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-22-10, 11:28
ige ige is offline
Registered User
 
Join Date: Jul 2010
Posts: 3
transfer dataset to PC in QMF PROC

Please excuse me if I am asking this in the wrong place.
I have DB2 7.8 and QMF 7.2 (don't know where to run db2level to get all the other info). I have about ten datasets I transfer to my PC each month, and I have the query running in a PROC (procedure), but I have to do the file transfer manually. I could save about a few minutes each time if I had the file transfer in the PROC. Is there a way to do this? I use Extra!PC as a terminal program, I don't know if that matters or not.
My PROC is like this:
...
RUN QUERY REINBENEFICD
SAVE DATA AS REIN_BENEFIC
EXPORT DATA TO 'LAAIGE.REINBENE'
RUN QUERY REINSURE1 (&&EOM='2010-06-30')
...
The EXPORT part gets the report to a dataset, but how do I get the dataset to my PC's C: drive (or somewhere) with a command in the PROC?
Thanks for any help.
Reply With Quote
  #2 (permalink)  
Old 07-22-10, 13:02
dav1mo dav1mo is offline
Registered User
 
Join Date: Dec 2007
Location: Richmond, VA
Posts: 782
First off, there is no version 7.8.Change the QMF proc to a rexx proc. The use TSO to FTP or whatever to your PC. Ihaven't used extra in a bit, but you should be able to pull the PUT command out of there one of the times you perform it manually.
Dave
Reply With Quote
Reply

Tags
db2, file, proc, qmf, transfer

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On