I'm an Oracle DBA (never worked with Sybase) and I need to write a simple stored procedure that will loop through the records in a table and write the contents to a file in RAW format. I've done a few quick searches, but didn't have much luck. I don't have much time to work on this and since I'm completely unfamiliar with even the basic Sybase syntax I was hoping someone could point me to some examples of Sybase stored procedures that perform file I/O. Something similar to the utl_file procedure is Oracle is what I'm looking for. The table contains IMAGE datatypes as well which need to be written to the file in RAW format. Any help would be appreciated. Thanks.