Re: Unloading to two destinations
Posted in 2005
Topics: Connectivity: ESQL/C, 4GL & Embedded SQL, Migration, Import/Export & Data Conversion
Andy Kent said: > Given that we don't live in such Utopian conditions, what approach > would give the best compromise? Call me old fashioned, but this really sounds like a job for Captain ACE (or 4GL) :o) -- Bye now, Obnoxio "C'est pas parce qu'on n'a rien ' dire qu'il faut fermer sa gueule" - Coluche "I'm trying to see things your way, but I can't get my head up my ass" - JCH "Ogni uomo mi guarda come se fossi una testa di cazzo" - Marco You're so stupid, you think martial arts are paintings by a sheriff... I went to the airport to check in and they asked what I did because I looked like a terrorist. I said I was a comedian. They said, "Say something funny then." I told them I had just graduated from flying school. -- Ahmed Ahmed sending to informix-list
Ah. I forgot to mention, they don''t have 4GL or SQL. I'd hoped there might be an UNLOAD ... EXECUTE PROCEDURE to dump the purged rows, and do an in-place copy of the wanted rows within the procedure, but such an option doesn't seem to exist. Andy
create 2 tables keep_rows and purge_rows write a stored procedure which will read the existing data and copy the data into either keep_rows or purge_rows. drop the existing table rename keep rows unload the purge ros and file them away Andy Kent wrote: > Ah. I forgot to mention, they don''t have 4GL or SQL. > > I'd hoped there might be an UNLOAD ... EXECUTE PROCEDURE to dump the > purged rows, and do an in-place copy of the wanted rows within the > procedure, but such an option doesn't seem to exist. > > Andy