Unix Technical Forum

Automating exports of some files

This is a discussion on Automating exports of some files within the DB2 forums, part of the Database Server Software category; --> [8.2.1 on LUW, Suse 9] I've got various affiliates that want to be emailed a report on a weekly ...


Go Back   Unix Technical Forum > Database Server Software > DB2

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-27-2008, 06:21 AM
James Conrad StJohn Foreman
 
Posts: n/a
Default Automating exports of some files

[8.2.1 on LUW, Suse 9]

I've got various affiliates that want to be emailed a report on a
weekly basis.

Could I write a stored procedure that took two parameters: the
affiliate's id, and a filename, and then used EXPORT to create a file
with the specified filename, using a query that used the affiliate's id
to get the right bookings?

I know I could just write a lot of sql and cron it up to dump out a
file for each affiliate in turn, but (a) I'm lazy and (b) if we could
do it using a stored procedure, then I can probably let my marketing
people do it instead of me, so they can add more affiliates as and when
they need to.

Thoughts? I'm wondering to myself if this is just a case of treating
everything like a nail because all I've got is a hammer...

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:50 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com