Unix Technical Forum

Re: Unloading to two destinations

This is a discussion on Re: Unloading to two destinations within the Informix forums, part of the Database Server Software category; --> Well, as it happens, SQSL (see http://www.4glworks.com/4wrcsqll.htm#FGWLANGREF ) allows you to do precisely that Andy Kent wrote: > I ...


Go Back   Unix Technical Forum > Database Server Software > Informix

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-20-2008, 08:23 AM
Marco Greco
 
Posts: n/a
Default Re: Unloading to two destinations


Well, as it happens, SQSL (see http://www.4glworks.com/4wrcsqll.htm#FGWLANGREF
) allows you to do precisely that

Andy Kent wrote:
> I am writing a purge routine on a large table where we need to keep a
> copy of the purged rows. We also need to re-size the table extents. So
> the best bet would be to produce two ASCII files. Because of the size
> of the table I'd like to make as few passes through it as possible -
> one would be good.
>
> In an ideal world I'd have a piece of code that did something like
>
> foreach row
> if <to keep>
> unload (append) to ascii file1
> else
> unload (append) to ascii file2
> end foreach
>
> In an even more ideal world I'd do the whole thing in SPL. (HPL would
> be even better but the criteria are rather verbose and may need to be
> held in a memory-resident table).
>
> Given that we don't live in such Utopian conditions, what approach
> would give the best compromise?
>
> Thanks
>
> Andy Kent
>
>



--
Ciao,
Marco
__________________________________________________ ____________________________
Marco Greco /UK /IBM Standard disclaimers apply!

Informix faq http://www.iiug.org/techinfo/faq/informix.htm
4glworks http://www.4glworks.com
Informix on Linux http://www.4glworks.com/ifmxlinux.htm


sending to informix-list
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 11:04 AM.


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