Yes. You can unload data using a stored procedure. You just cannot use the UNLOAD verb since that is not an SQL command but a dbaccess built-in command.
You can create an external table and have the proc copy data to that with a simple
SELECT ... FROM source_table
INSERT INTO external_table;
------------------------------
Art S. Kagel, President and Principal Consultant
ASK Database Management Corp.
www.askdbmgt.com------------------------------
Original Message:
Sent: Thu July 06, 2023 05:02 AM
From: nasiha zailan
Subject: create function to unload data
Hi, anyone here knows if i can create function that can loop to unload data? since as far as i know, stored-procedure cannot do the looping for unload data. Thanks
------------------------------
nasiha zailan
------------------------------