Exporting CSV can overwrite files without warning

Warning about an undocumented, automatic deletion of files by Numbers.
Export a iWork'09 Numbers (Version 2.0.5 (368))  document (with 2+ sheets) as a CSV with the same name as a folder in the destination and WHAM!
Yes, WHAM - it deletes all files in that folder with no warning (and they are not sent to Trash, oh moan, on moan).
A scenario - MyData.numbers (with 2+ sheets) stored in a MyData folder on the Desktop. Open it, export as CSV to Desktop, it deletes everything in folder including itself and replaces them with Sheet 1-Table 1.csv, etc. There is no warning this will happen.
If there is only one sheet, it will create a MyData.csv on the Desktop and leave the folder alone.  If you do it again with one sheet, it will warn you the file exists.
If you repeat it with a 2+ sheet document again, there is not warning, this time csv files in the folder will be replaced.
This is horrid, unruly behaviour and cost me a huge amount of time repairing the damage.
There is nothing in the user guide to prepare me for this unhappy event.
You have been warned.  Apple please fix this.

I must say that you are right on one point.
Even if I feel that this format is the worst ever invented, I exported many times Numbers documents in csv format. I never go the described behavior.
So, as I am honest, I created a folder with the same name than the stripped document's one.
When I asked the app to export it, the save dialog displayed the default name : azertyuiop.csv
As the folder was named azertyuiop, I was sure that there will not be any kind of problem.
I was wrong and you were right.
The result was not a folder azertyuiop.csv but the folder azertyuiop.
Of course, I decided to check that I wasn't fooled by my memory.
I made an other attempt with the name azertyuio.csv.
This time, there was no existing folder. I was sure that I will get the object azertyuio.csv
It's what my memory was repeating me.
Alas, the result was a folder named azertyuio.
So, I stop this message here and enter the Bug Reporter area.
Yvan KOENIG (VALLAURIS, France) mardi 14 juin 2011 17:25:01
As my Internet connection is in maintenancecr, I was unable to post it at the date_time used in my signature.
So I had time available to preparer a bug report.
Here it is :
Bug ID# 9608202.
Summary:
Awfull behavior of Numbers
Steps to Reproduce:
Create a Numbers document with several tables.
Export it as csv.
The Export dialog offer a name, say azertyuiop.csv
Expected Results:
Several users and myself assumed that we will get an object named azertyuiop.csv containing one csv file for every existing table.
Actual Results:
in fact, what we get is a folder named azertyuiop (without the name extension displayed in the dialog)
Worse, if a folder already exist with this name, THERE IS NO WARNING ISSUED.
So, the entire content of the existing folder is destroyed.
It’s really the worst kind of bug which I may imagine.
Regression:
Triple check that there is no existing folder with the same name than the document to export.
Or no longer use the dedicated menu when we want to export as csv but trigger this AppleScript which will take care to build a unique name.
--{code}
tell application "Numbers"
          tell document 1
                    set dName to name
                    set dPath to path
          end tell
end tell
if dPath ends with ".numbers" then
          set barePath to text 1 thru -9 of dPath
else
          set barePath to dPath
end if
set csvPath to barePath & (do shell script "date +_%Y%m%d_%H%M%S.csv")
tell application "Numbers"
  save document dName in csvPath
Yes, it's foolish but if the document contain several tables,
the result will be the folder azertyuiop_20110614_174726.
Only the enclosed files will be named table 1.csv, table 2.csv…
end tell
--{code}
Yvan KOENIG (VALLAURIS, France) mardi 14 juin 2011 21:12:17
iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.7
Please : Search for questions similar to your own before submitting them to the community
To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer !

Similar Messages

  • Save or export an opened .mp4 file without re-encoding

    How can I save or export an .mp4 file that I opened and trimmed without being required to re-encode it. I'm looking for an option to either save the .mp4 file without exporting, or export with a passthrough option such as the one available when using QuickTime Pro. Thanks.

    Hmm, I would have expected inclusion of the basic feature set of QuickTime Pro to be a prerequisite for any commercial audio editing program.
    The reason commercial audio editing programs don't work the way Quicktime Pro does is Quicktime Pro really isn't an audio app. If Quicktime is able to cut an trip an mp4 file (m4a, aac, whatever you call it) it's becaue it's editing the stream directly, probably similar to the way a file-splitter would work. MP3 was able to have this one too, one could chop an mp3 up in to parts without re-encoding...however, due to the way data is represente in a lossy format, you have several limitations in doing so.
    Commercial Audio applications don't do this because it's not going to be done by professionals...even if Audition had this feature, it wouldn't be able to work the same as cutting a wave file. You have servere limitations on where you can cut a lossy audio file up without having to re-encode it.
    Cutting the bitstream of an mp3 or m4a file is generally not a standard inclusion for any audio program...
    But, remember, Quicktime is a "basic" video editor...not an audio editor nor should it be confused for one.

  • JS/AS - Open file without warning dialogs

    I have files with placed raster images that when opened need to be relinked. Relinking them is actually the first procedure of my script however I need illustrator to open the file without throwing me an error dialog asking me to repair the link. I've searched through the documentation but haven't found a param to pass, or a different method to call for opening without dialogs. Applescript has a 'without dialog' option for open but it doesn't work for this dialog, that i've found. And JS doesn't have an options that i can find in the documentation for open();
    Thanks
    /j

    Hi,
    Maybe the app.userInteractionLevel helps you.
    Maybe not :-)
    Regards,
    Tom

  • Import and Export CSV Through XML File in Oracle

    Hi Gurus,
    I am sorry , I had deleted this post.
    Thanks
    Edited by: user10679113 on Feb 5, 2009 6:13 AM

    What does it mean to do something with comma separated values through XML. That is a new concept for me.
    Either something is CSV or XML but what is it you are trying to describe? Please provide an example.
    Then come the obvious questions like what version and edition of Oracle on what platform? What does any of this have to do with email? How large a file? etc.
    No one else has responded so I can only assume they are thinking what I am ... "what is this person trying to do?"

  • Overwriting file without damaging

    Hi there,
    I have a List<> in java which I XMLSerialize into a file. This file holds some data which gets updated frequently. If I overwrite the file every time there is a possibility that I may damage / lose the critical file. What is the best way to handle this. Move the old file to .bak, create the new file ?. But if the operation gets interrupted then I may end up with no file. So what is the best practice.

    josephj1989 wrote:
    This file holds some data which gets updated frequently. Where frequently means what?
    And what exactly updates it? Specifically how many applications?
    And what happens if data gets lost?

  • Exporting PDFs to EPS files without masks or invisible paths to release or deal with.

    We send files to a CAD department which has issues with masks and paths which can't be seen in Acrobat, nor Illustrator unless in preview mode, and which cause problems when programming.
    In other words, is there a function in distiller or acrobat or Illustrator which can provide a file using a plugin or flattener (preset) which gives me a vector file with just the black as seen on screen and no other vectors? Usually the PDF file is vector to begin with.
    I've tried opening in Photoshop and get what I need but the file is sooooo big it is not very easy to manage.
    We're Mac OS 10.6 based CS4 on the front end with very old cad software at the end. We have to save as AI/EPS 8.
    TIA,
    KC
    [email protected]

    Here is one way,
    open the PDF in Illustrator, make a new layer, select the desired path(s) and move them to the new layer (drag the little box from the old layer to the new), delete the old layer(s). Save as .eps

  • Bug? Export overwrites photos without permission

    Hi,
    I shoot all my photos as JPEG and RAW parallel. Both photos have the same file name, except the extensions.
    If I export the developed photo from LR 3.3, I'm not asked, if LR should overwrite the existing image or create a new one.
    In the export options I selected "Existing files:  Ask what to do".
    The algorithm works correct, if I export the photo from LR first (the file is created) and after some time again - then I'm asked, If the file should be overwritten.
    It looks like as the protection of existing files only works for files, created with LR and not with other programs / the camera.
    Is this a bug? How can I change this behavior?
    Many thanks
    Konrad

    Hi, Conrad.
    I'm not sure I grasp the details of your issue, but maybe I can help a little. I'm guessing you are worring about exporting as a jpg and having your original camera jpg overwritten. Not to worry. Lr has barriers to doing this by accident.
    Lr will only "Ask what to do" if there is a naming conflict. If you export as a jpg to a different folder than the Raw+jpg, there is no conflict. Lr just creates the new file with the same name as the the original jpg, but in a different folder. You can only have the same file name once per folder. But the file name can be used over and over, as long is it is in a different folder. If you export as a jpg to the same folder as the original, there is already a jpg there with that name. Lr recognizes this conflict and asks what to do. This dialog box appears.
    Even if you set your option to "Overwrite WITHOUT WARNING", you still get a warning. Which is good.
    But if you are exporting to a different folder than the original, you won't be asked or warned, because there is nothing to ask or warn about. The original jpg is safe and sound in the original folder, and the new jpg of the same name is safe and sound in the new folder. But if I try and drag the newly exported jpg into the same folder as the original, this box pops up.
    I'm pretty sure Lr export is not overwriting photos without permission. If you are exporting them to different folders, nothing is being overwritten.
    Try exporting a test photo with the same filename to the original folder and see what happens.
    FWIW.
    Peace,
    Lee

  • InDesign cs6 crashes when I export to an epub file.

    The file orginally was a cs5.5 file. I have tried rebuilding the file in a new digital file but that hasn't worked. When I save it to open it in cs5.5, I can export to an epub file without any problem. I don't know what I'm doing  wrong.  I'm running OS 10.7 and I have 4 Gigs of memory.  I upgraded to cs6 principally because the advanced epub ability as I'll be publishing mainly e-books. Help! What's happening?
    Here is the beginnings of the crash report. (I tried using a converted IDML file.)
    Process: Adobe InDesign CS6 [1298]
    Path: /Applications/Adobe InDesign CS6/Adobe InDesign CS6.app/Contents/MacOS/Adobe InDesign CS6
    Identifier: com.adobe.InDesign
    Version: 8.0.0.370 (8000)
    Code Type: X86 (Native)
    Parent Process:  launchd [271]
    Date/Time: 2012-05-27 17:20:00.866 -0400
    OS Version: Mac OS X 10.7.4 (11E53)
    Report Version:  9
    Interval Since Last Report:          -7314 sec
    Per-App Interval Since Last Report:  262 sec
    Per-App Crashes Since Last Report:   6
    Anonymous UUID: 312E1911-54EA-4BAB-B989-09606B5F50C7
    Crashed Thread:  0  Dispatch queue: com.apple.main-thread
    Exception Type:  EXC_BAD_ACCESS (SIGBUS)
    Exception Codes: KERN_PROTECTION_FAILURE at 0x0000000000000000
    VM Regions Near 0:
    --> __PAGEZERO 0000000000000000-0000000000001000 [    4K] ---/--- SM=NUL  /Applications/Adobe InDesign CS6/Adobe InDesign CS6.app/Contents/MacOS/Adobe InDesign CS6
        __TEXT 0000000000001000-0000000000005000 [   16K] r-x/rwx SM=COW  /Applications/Adobe InDesign CS6/Adobe InDesign CS6.app/Contents/MacOS/Adobe InDesign CS6
    Application Specific Information:
    objc[1298]: garbage collection is OFF
    Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
    0   com.adobe.InDesign.EBookExport            0x19f1c5c9 0x19ee0000 + 247241
    1   com.adobe.InDesign.EBookExport            0x19f1f0a7 0x19ee0000 + 258215
    2   com.adobe.InDesign.EBookExport            0x19f26d34 0x19ee0000 + 290100
    3   com.adobe.InDesign.EBookExport            0x19f26d07 0x19ee0000 + 290055
    4   com.adobe.InDesign.EBookExport            0x19f26d07 0x19ee0000 + 290055
    5   com.adobe.InDesign.EBookExport            0x19f19ffb 0x19ee0000 + 237563
    6   com.adobe.InDesign.EBookExport            0x19f602ff GetPlugIn + 210559
    7   com.adobe.InDesign.EBookExport            0x19f62df9 GetPlugIn + 221561
    8   com.adobe.InDesign.EBookExport            0x19eec25c 0x19ee0000 + 49756
    9   PublicLib.dylib 0x01722c62 CExportProvider::ExportToFile(IDFile const&, IDocument*, IPMUnknown*, PMString const&, K2::UIFlags) + 370
    10  com.adobe.InDesign.Import Export UI            0x0f23461a GetPlugIn + 19946
    11  com.adobe.InDesign.Import Export UI            0x0f233307 GetPlugIn + 15063
    12  com.adobe.InDesign.Import Export UI            0x0f2316f6 GetPlugIn + 7878
    13  com.adobe.InDesign.Actions                0x17103bc4 GetPlugIn + 19908
    14  com.adobe.InDesign.Actions                0x171087b2 GetPlugIn + 39346
    15  com.adobe.InDesign.AppFramework            0x0df70614 0xdf60000 + 67092
    16  com.apple.HIToolbox                       0x9be13dec _InvokeEventHandlerUPP(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*, long (*)(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*)) + 36
    17  com.apple.HIToolbox                       0x9bc8f4f3 _ZL23DispatchEventToHandlersP14EventTargetRecP14OpaqueEventRefP14HandlerCallRec + 1602
    18  com.apple.HIToolbox                       0x9bc8e970 _ZL30SendEventToEventTargetInternalP14OpaqueEventRefP20OpaqueEventTargetRefP14HandlerCall Rec + 482
    19  com.apple.HIToolbox                       0x9bca3755 SendEventToEventTarget + 76
    20  com.adobe.InDesign.AppFramework            0x0df6ee21 0xdf60000 + 60961
    21  com.adobe.InDesign.AppFramework            0x0df8d327 GetPlugIn + 12007
    22  com.adobe.InDesign                        0x00001ec5 main + 341
    23  com.adobe.InDesign                        0x00001d55 start + 53
    Thread 1:: Dispatch queue: com.apple.libdispatch-manager
    0   libsystem_kernel.dylib                    0x99b6490a kevent + 10
    1   libdispatch.dylib                         0x904ace10 _dispatch_mgr_invoke + 969
    2   libdispatch.dylib 0x904ab85f _dispatch_mgr_thread + 53
    Message was edited by: JSiamon

    Thanks for your response. I just gave up and rebuilt the file and now the file is fine. Incidentally, I had created two InDesign book files at the same time and one opened in CS6 without any problem. Both use the same chapter head graphics -- so who knows what strange beasts these computer programs are.

  • Overwrite files BUG! Save PDF to Web Receipts Folder

    In Safari, I will often want to save receipts of bank transactions. So I hit Command-P to print, then in the PDF menu button, I'll choose "Save PDF to Web Receipts Folder."
    When I look in my Web Receipts folder, it has saved the file, but if there was already a file there with that file's name, the old one is replaced by the new one. I found this out the hard way, as my bank's page title is always "National Bank," and Safari uses the page title as the file name. So instead of accumulating receipt PDFs there, I merely had the most recent one.
    This is certainly a bug: the Mac shouldn't be overwriting files without telling me. If it's going to save PDFs in the Web Receipts folder, then I should have the option to choose a name or approve the name that it generates from the HTML title.

    Yes I agree this is an intentional bug.
    Other things you can do to get around this issue:
    1) Disable the "Save PDF to Web Receipts.workflow" located at /Library/PDF Services. This is at the root level of your disk and you will need Admistrator level authority to accomplish this task.
    2) After you disable the workflow you could build your own without the: "with replacing" (save file) option enabled in the script. However, I believe this will not work, as you are already in a dialog box (printer), and the script will generate an error, and prompt a dialog box for you to enter a new name. I am not sure if this is the conduct, as I do not use this workflow or "feature."
    3) After you disable (or just plain not use) the above workflow: Instead create a folder in your Home Directory called "Online Receipts" or whatever memorable name you like. You can place this folder anywhere.
    Next, navigate to ~/Library/PDF Services (that is the folder in your Home folder, not at the root level as in (1) above. If this folder is not there, create it.
    Next create and drag an alias of your "Online Receipts" folder into this PDF Services folder.
    The next time you pull up a print dialog, and hit the PDF button, you will see this newly created folder in the menu. Just select it to save a PDF of your document to it. Files with identical names will be handled by the Finder's naming convention: (eg. file.pdf, file 2.pdf, file 3.pdf, etc.) and no files will be overwritten.
    I hope this helps,
    Zac
    PBG4, iMacs & 99-44/100 wireless   Mac OS X (10.4.3)  

  • Receiving files without accepting?

    hi
    i'm looking for a way to receive files (from different devices) via BT without having to accept them, i.e. to click "ok".
    i know this is insecure, but i need a way to let people easily drop files from their mobile phone on a mac without any further need for interaction.
    thanks
    sascha

    The following may work...
    System Preferences > Bluetooth pane > Sharing tab > Bluetooth File Exchange service
    Select 'Accept files without warning' from the 'When recieving items' pop-up and select 'Save' in the other two pop-ups.
    Jools

  • Lightroom CC exports Jpgs in wrong orientation ONLY when Overwriting WITHOUT WARNING

    This is the first time I post so please bare with me, I will try to explain as much as I can because it is an specific issue.
    The computer I have at work uses Windows 7 pro (Brand New Computer). I import pictures from a network drive, manipulate the pictures and then save them to the same drive. When I see the pictures in the folder browser on windows the pictures have a landscape orientation (even though they should be portraits because they are head shots). Once I import those pictures to LR they appear with the right orientation (portrait), so I play with the pictures and export them to a JPG file. The issue I'm having is when I export with the setting "Overwrite WITHOUT WARNING", I see the picture in the file explorer (Windows) and I can see all the changes I made, but with the old picture's orientation (the wrong one, Landscape) . However, If I choose to create a new file (not overwriting) it will have the orientation I viewed in LR. (The correct one, portrait).  Anyone knows how to export overwriting with the orientation I was seeing in LR?
    Thanks,
    //UPDATE: Also, I just noticed cropping is NOT working when exporting with the same setting "Overwrite WITHOUT WARNING". I had to create new files on a folder and the move and replace in Windows File Browser.

    Yes I have been trying to use my main catalogue, not the back ups - I thought the main catalogue was updated in synch with the latest back up - the reason you can fall back on a back up if all goes pear-shaped. .
    I have managed to resolve the issue as follows:
    I accessed an external hard drive (bootable back up of main computer) and the main Lightroom catalogue. Upon launching Lightroom it gave me the option to use the last saved back up Catalogue and as the default one. This workaround didn't work the same on my main computer as recent image imports and work done were missing.
    I had to delete the main catalogue on my main computer and drag the one from the external back up HD to rectify the situation.
    I have no idea why this has occurred as all I did on my main computer was delete 10 redundant back up folders after which Lightroom failed to launch citing one of the oldest back ups as missing.
    I wonder why Lightroom saved the most recent back-up (upon closing Lightroom) in a Zip folder only? - not noticed this behaviour before.

  • Apex 3.0: export a report as .csv file without any Enclosed By character?

    In Apex "Report Attributes page/Report Export" is possible to define the Enclosed By field.
    The default Enclosed By by characters are a double quotation marks (" ").
    Is there a way to export the report as .csv file without any Enclosed By character?
    Example line format:
    a) using default Enclosed By
    "value1";"value2";"value3"
    b) using ('') as Enclosed By
    'value1';'value2';'value3'
    c) using blank space as Enclosed By
    value1 ; value2 ; value
    d) without any Enclosed By character
    value1;value2;value3
    What can we do in Apex to export a report as .csv file with the line format example d)?
    Thanks for your help.

    Hi,
    There is no Out of the box feature in Apex to achieve this functionality. But what you can do is write a page process to generate the CSV that you want.
    For this what I will do is on the first page where you press the Button it will call a PL/SQL page process which actually generates the csv. You can keep the existing report only for display purposes. Find the below process which generate the csv that you require.
    begin
    -- Set the MIME type
    owa_util.mime_header( 'application/octet', FALSE );
    -- Set the name of the file
    htp.p('Content-Disposition: attachment; filename="filename.csv"');
    -- Close the HTTP Header
    owa_util.http_header_close;
    htp.prn('columnHeader1,ColumnHeader2,ColumnHeader3'||chr(13));
    -- Loop through all rows
    for x in (
    Select column1,column2,column3 from table;
    loop
    -- Print out a portion of a row,
    -- separated by commas and ended by a CR
    htp.prn(x."column1"||','||x."column2"||','||x."column3"||chr(13));
    end loop;
    -- Send an error code so that the
    -- rest of the HTML does not render
    htmldb_application.g_unrecoverable_error := true; --You can leave out this line if you still want to display the existing HTML report.
    end;
    This will show a download box, so you can download the csv file. The page process should be called before header and the condition should be the button press.

  • Can I export Adobe Proto files without Creative Cloud?

    I would like to buy the app, but i'm reading a lot about exporting to Creative Cloud, but I don't have Creative Cloud.
    Is it possible to export Adobe Proto files without Creative Cloud?

    As of now, the only way to transfer or share Proto files from the app is via the Creative Cloud website.

  • Looking for a program that can handel import and export of palm doc files

    I am looking for a program that can handel the import and export of palm doc Files that can convert them to to either txt or RTF files for Vista 32, running Palm Desktop 7.1.
    Could anyone give me a few suggestions of any plug-ins that would be good me?
    Hearns
    Post relates to: Palm IIIxe
    This question was solved.
    View Solution.

    Ok, you need to clean uninstall Palm desktop 6.2. Install Palm desktop 4.1.4 and download and install documents to go version 6.
    Here are the clean uninstall instructioins for Vista.
    You should first make a copy of your data to have just in case something
    happens. You can find your data files by going to Start --> Documents -->
    Palm OS Desktop. Highlight your Palm Desktop username and right click and
    copy. Then go to your PC desktop right click on a blank spot and select paste.
    If this is the first time you are installing Palm desktop and encountering a problem, skip the previous step.
    Now you want to uninstall Palm Desktop and remove everything that has to do
    with Palm Desktop from your computer.
    Go to the following locations on the PC and delete the folders listed below.
    C:\Program Files\Palm or Palm One
    C:\Users\[Vista Login Name]\appdata\local\virtualstore\Program Files\Palm or
    PalmOne
    C:\Users\[Vista Login Name]\appdata
    *Note you may need to view hidden folders to get to appdata. To do that go
    into your control panel and open folder options. Go to view tab and uncheck
    hide hidden files.
    Once this is done you will need to delete some registry keys from your PC Operating System.
    Word of warning, going here and deleting the wrong thing can cause your PC
    from starting up, crashing and deletion of programs and data. If you feel
    you are unsure of yourself, see if you have a friend that can help you or a
    PC technician that you can pay to help you. This procedure will show them everything they need to delete. To make sure we have a good copy of the current registry, we need to do a backup of the Registry.
    Go to start on the PC, in the search field type "regedit.exe" without quotes.
    Highlight COMPUTER, go to File --> Export. Should pop up with a Save As box.
    Current location is fine, should be in My Documents or save to a location you will remember. In the file name on the bottom type "backup[todaysdate]" i.e. backup07072008. Next, the hard part.
    The easiest way to make sure your working with the correct key, highlight the key i.e. palm quick install, and press delete on your keyboard. It will ask you, are you sure. Say yes. Do the same thing for all keys below.
    If you make a mistake, stop what you are doing. And call a PC technician.
    BUT do not turn off your computer.
    The reg keys are as follows (Note: some of theses reg keys will not be here
    but if they are delete them)
    * HKEY_CURRENT_USER\Software\U.S. Robotics\Palm Quick Install
    * HKEY_CURRENT_USER\Software\U.S. Robotics\PalmOne File Transfer
    * HKEY_CURRENT_USER\Software\U.S. Robotics\Pilot Desktop
    * HKEY_CURRENT_USER\Software\Palm
    * HKEY_CURRENT_USER\Software\Palm, Inc.
    * HKEY_CURRENT_USER\Software\PalmDesktopAutorun
    * HKEY_CURRENT_USER\Software\palmOne
    * HKEY_CURRENT_USER\Software\PalmSource
    * HKEY_LOCAL_MACHINE\Software\PalmSource or anything else that says palm
    Next reboot your computer.
    Then reinstall your palm desktop from the CD and do a hotsync. Use the username that is on the handheld.

  • Export table data in a flat file without using FL

    Hi,
    I am looking for options where I can export table data into a flat file without using FL(File Layout) i.e., by using App Engine only.
    Please share your experience if you did anything as this
    Thanks

    A simple way to export any record (table/view) to an csv fiel, is to create a rowset and loop through all record fields, like below example code
    Local Rowset &RS;
    Local Record &Rec;
    Local File &MYFILE;
    Local string &FileName, &strRecName, &Line, &Seperator, &Value;
    Local number &numRow, &numField;
    &FileName = "c:\temp\test.csv";
    &strRecName = "PSOPRDEFN";
    &Seperator = ";";
    &RS = CreateRowset(@("Record." | &strRecName));
    &RS.Fill();
    &MYFILE = GetFile(&FileName, "W", %FilePath_Absolute);
    If &MYFILE.IsOpen Then
       For &numRow = 1 To &RS.ActiveRowCount
          &Rec = &RS(&numRow).GetRecord(@("RECORD." | &strRecName));
          For &numField = 1 To &Rec.FieldCount
             &Value = String(&Rec.GetField(&numField).Value);
             If &numField = 1 Then
                &Line = &Value;
             Else
                &Line = &Line | &Seperator | &Value;
             End-If;
          End-For;
          &MYFILE.WriteLine(&Line);
       End-For;
    End-If;
    &MYFILE.Close(); You can of course create an application class for generic calling this piece of code.
    Hope it helps.
    Note:
    Do not come complaining to me on performance issues ;)

Maybe you are looking for