Export data in a flat file without use of FL

Hello

I'm looking for options where I can export data into a flat file without using a FL (line Layout) i.e., using only the App Engine.

Please share your experience if you did something like this

Thank you

A simple way to export any folder (table/view) to a csv gall, is to create a set of lines and loops through all fields of record 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 for generic class call this piece of code.

It will be useful.

Note:
Do not complain to me ;) on performance issues

Tags: Oracle Applications

Similar Questions

  • Export data to a flat file HRMS

    Hi all!

    Are there ways to export related employees data in a flat file without using a client (PeopleCode or Integration Broker) application, it's simply generate a CSV of power of the UI?

    You can schedule a query and specify the output text format. Note that when you select View Log/Trace in the process monitor, you will see a file with a .csv extension. However, it opens by default in Excel, and even if you select Save instead of open, he will try to change the .xls extension. You will need to return to .csv.

  • Export of table to flat file

    OWB 10.2.0.1
    DB 10.2.0.4

    I need to export data to a flat file, and the ADMINISTRATOR has implemented a directory object:
    CREATE DIRECTORY "TEST_OUT" AS '(PATH ON THE SERVER)'
    Warehouse Builder can use it in a file location (and if so, how)?

    An alternative would be to put the utl_file_dir in the init.ora file and then create a file location that refers to the value utl_file_dir?

    If none of those who won't work, which is a good way to export data from flat files?

    Thanks in advance.

    If you create a connector to the location of the Oracle where the mapping will be deployed to a location where the file is configured (in OWB) and name the connector with the same name as the SQL directory it should do the trick. OWB mapping with the file as a target use UTL_FILE routines with a Directory SQL name. OWB can give you cannot create directory SQL errors because it exists, but you should ignore these and be OK. A small number of if and of but here in version 11 GR 2, we have the same functionality as db links where the connector can use an existing or create a new.

    See you soon
    David

  • Is there a way to recover the deleted files without using any software?

    Is there a way to recover the deleted files without using any software?

    Is there a way to recover the deleted files without using any software?

    # Software is necessary.

    First check the recylcl tray. If she isn't here, read the following:

    "Deleting" a file does not delete actually it brand just space be used. There are third-party programs that can sometimes recover deleted files. The problem is that the space used by the file is likely to be replaced very quickly, and this makes the unrecoverable file.

    So your chances of successfully recover this file are decent, if you try it again immediately after deleting it and quickly down. If you have used the computer since then (for example to read this answer and write that question), your chances may be very weak now.

    But if the file is large enough, it's still worth a try. Stop using the computer in question immediately, if you haven't done so already. Download an undelete program (in here is one: http://www3.telus.net/mikebike/RESTORATION.html but there are many other choice; do a search) on a friend's computer and bring it to you on a diskette, CD, or drive to the thumb.

    If that fails, your only recourse is to bring or send the drive to a professional file recovery company. This kind of service is very expensive and may or may not work in your case.

  • How can I recover deleted files without using any software?

    How can I recover deleted no matter what folder, image, Word & excel files without using any software inculd Recycle Bin?

    Monday, June 11, 2012 11:03:01 + 0000, dipakparate wrote:

    How can I recover deleted no matter what folder, image, Word & excel files without using any software inculd Recycle Bin?

    You cannot retrieve files deleted with the help of software. And even using
    software, you may or may not be able to recover.

    What you have against the use of software? The first thing to try is to
    being trash. If she isn't here, read on.

    "Deleting" a file does not actually delete it marks just the space
    also available to be used. There are third-party programs that can
    sometimes recover deleted files. The problem is that the space used by
    the file is likely to be replaced very quickly, and it makes
    the unrecoverable file.

    So your chances of successfully recover this file are decent if you
    Try it again immediately after the deletion of it and go quickly
    downhill from there. If you have used the computer since then (for
    example to write this question and read this answer), your chances may
    be very poor now.

    But if the file is large enough, it's still worth a try. Stop
    using the computer in question immediately, if you have not done
    already. Download an undelete program (and here's one:)
    http://www3.TELUS.NET/mikebike/restoration.html but there are several
    others to choose from; Do a search) on a friend's computer (do not
    it on yours because that would overwrite the files you want
    Undelete) and bring it to you on a CD or thumb drive to try.

    If that fails, your only recourse is to bring or send the disc
    a company of professional file recovery. This kind of service is very
    expensive and may or may not work in your case.

    Ken Blake, Microsoft MVP

  • How to load flat files without header to table in ODI

    I try to get data from a flat file, but it doesn't have any header

    as 1, tom, 36, usa.

    I have a table with id column, name, age, country, and I want to get the data. Please let me know how to proceed.

    Thanks in advance

    If you add columns manually in the data model there is no need to reverse engineering. If you reverse engineer with header set to 0 ODI will simply give the columns arbitrary identifiers such as C1, C2, C3 etc. That you can leave or change.

  • A link to the files without using the FScommand folder

    Is there a way to bind an executable Flash to doc, pdf, and other exe files without using a 3rd third party tool or the FScommand subfolder? I want all the files in the root folder. Is there a solution to actionscript (Flash 8)?

    Thanks for any help.

    Just tried it myself, and in fact, now there must be something inside the fscommand that blocks execution of vbs. Security? I'm sorry.
    My advice would be to use .bat files, but to write
    Start c:\test.txt
    instead of only
    c:\test.txt
    The DOS window still not open, but immediately close again, given that the start command returns immediately.
    All the best
    Wolf

  • How to open data.bin file without using exe?

    I had downloaded a game on the internet its really big in size, I downloaded 2 GB of files and when decompressing, it would be gb(that's_what_the_installer_say).i 8-5 files there are 4 data1.bin, data2.bin and so on until data4.bin and one installer with it, but when I install with installer there is unpack to the slowly so I want to decompress without using the installer some alternative program to make it work. But when I try to open it with ultra iso or winrar it shows the error invalid or unknown format. What should do? Sorry for my bad English.

    A .bin file is a binary data file, you cannot unpack without the program who can read binary data.  You must continue to use the correct Installer.

  • How can I remove a strain using layers to export the file without using the bridge

    In earlier versions of Photoshop, I was able to comment on the part of the "Export of Layers.jsx" folder and was able to remove the sequence number before each layer after export. Does anyone know how to do this for the current version of CC2015 without using a bridge or a post-secondary program?

    Found the answer. Open the export of layers for files.jsx file in Dreamweaver and

    Comment out the line 1066

    On line 1067 change '_' for «»

  • We can recover a virtual machine of flat files without committing snapshots?

    I have a virtual machine that has died due to having excessive snapshots. "Too many levels of redo logs.

    Can I get out this virtual machine to the top without committing the delta files, IE just use original flat files?

    I tried going through the KB1004545 to solve the problem of the snapshot, and it fails

    Thanks in advance!
    Brendan

    It's really kind of unusual, but we will try to fix things.

    1.) create multiple subdirectories which you will pass some files during this procedure
    -not used
    -backup

    -fact
    -temp

    (2.) do a cleaning of unused files
    -move all the files to "...-ctk.vmdk" for the "unused" subdirectory
    -move the "000002" files in the subdirectory "unused" (not in the chain of snapshot)
    -move the '000239' files in the subdirectory "unused" (not in the chain of snapshot)
    -move the "000258' - '000287' files in the 'unused' subdirectory (contain no user data)

    3.) backs up the descriptor files

    -Copy all the hard of descriptor/header files in the subdirectory "backup."

    4.) merging the snapshots in the basic disk using the vmkfstools utility
    Given that problems with two virtual disks are the same, I'll explain the procedure for the first disc of "nzaklapp11" only. Once you are done with the first virtual disk, repeat steps to 'nzaklapp11_1 '.

    First round:

    • run: vmkfstools-i nzaklapp11 - 000030.vmdk temp/nzaklapp11.vmdk
    • the files '000030' moving 'nzaklapp11.vmdk', "nzaklapp11 - flat hard" as well as the "000001" - to the subdirectory 'done '.
    • Move hard files created in sub-repertoire 'temp' in the virtual machine file
    • Edit "nzaklapp11 - 000031.vmdk".
      parentFileNameHint = "nzaklapp11.vmdk".
      parentCID =

    Repeatedly executes:

    • run: vmkfstools-i nzaklapp11 - 000060.vmdk temp/nzaklapp11.vmdk
    • move the "000031' -"000060"files in the subdirectory 'done '.
    • Remove "nzaklapp11.vmdk", "nzaklapp11 - flat hard."
    • Move hard files created in sub-repertoire 'temp' in the virtual machine file
    • Edit "nzaklapp11 - 000061.vmdk".
      parentFileNameHint = "nzaklapp11.vmdk".
      parentCID =

    Repeat the "works on several occasions" by increasing the number of 30 until you are finished with all snapshots.

    Once finished with the two discs, and you confirmed that the new disks are ok, you can remove the subdirectories created in step 1.

    If anything is unclear, please feel free to ask.

    André

  • Pass data to a flat file to sql query

    Hi all
    I have the table table1 with the columns workitem_id, c1, c2, and c3, number of data for all type.

    I use the following query

    Select work_item_id, c1, c2, c3 from table1 where workitem_id (pass the values of flat file)

    Suppose my table contains 500 work item ID and the flat file contains 1000 ID, my above query returns only 500, right?

    I want to display all the work item IDS (1000) with c1, c2, c3 as 0.

    Help, please.

    Thank you

    Vermorel

    So you want to use a [EXTERNAL TABLE | http://download.oracle.com/docs/cd/E11882_01/server.112/e10713/tablecls.htm#CNCPT1141]

    now, suppose you called this 'TABLE_EXT '.

    Now, you want to have a query as...

    select
       te.COLUMN_NAME_HERE   AS work_item_id,
       NVL(t1.c1, 0),
       NVL(t1.c2,0),
       NVL(t1.c3, 0)
    from table_ext te, table1 t1
    where te.COLUMN_NAME_HERE = t1.workitem_id (+)
    
  • Hi I need to read the data in vaiables local file delimited using the utl_file package «»


    Hi all

    I want to read data from a .csv file which is ',' delimited in a local variable that is different from a plsql stored procedure so that I can insert into the table.

    I use this way to read data...

    --------------------------------------------------------------------------------

    -get the position of ',' (comma) in csv file

    --------------------------------------------------------------------------------

    l_c1: = INSTR (l_in_file, ',', 1, 1);

    l_c2: = INSTR (l_in_file, ',', 1, 2);

    l_c3: = INSTR (l_in_file, ',', 1, 3);

    l_c4: = INSTR (l_in_file, ',', 1, 4);

    l_c5: = INSTR (l_in_file, ',', 1, 5);

    l_c6: = INSTR (l_in_file, ',', 1, 6);

    l_c7: = INSTR (l_in_file, ',', 1, 7);

    l_c8: = INSTR (l_in_file, ',', 1, 8);

    l_c9: = INSTR (l_in_file, ',', 1, 9);

    l_c10: = INSTR (l_in_file, ',', 1, 10);

    --------------------------------------------------------------------------------
    -pull data into local variables
    --------------------------------------------------------------------------------
    l_0003: = SUBSTR (l_in_file, l_c2 + 1, l_c3-(l_c2 + 1));

    l_0004: = SUBSTR (l_in_file, l_c3 + 1, l_c4-(l_c3 + 1));

    l_0005: = SUBSTR (l_in_file, l_c4 + 1, l_c5-(l_c4 + 1));

    l_0006: = SUBSTR (l_in_file, l_c5 + 1, l_c6-(l_c5 + 1));

    l_0007: = SUBSTR (l_in_file, l_c6 + 1, l_c7-(l_c6 + 1));
    l_0007: = To_Char (To_Date (l_bdate_0007, "mm/dd/yyyy '"), 'yyyy-mm-dd');

    l_0008: = SUBSTR (l_in_file, l_c7 + 1, l_c8-(l_c7 + 1));

    l_0009: = SUBSTR (l_in_file, l_c8 + 1, l_c9-(l_c8 + 1));

    l_0016: = SUBSTR (l_in_file, l_c9 + 1, l_c10-(l_c9 + 1));
    l_0016: = To_Char (To_Date (l_eff_dt_0016, "mm/dd/yyyy '"), 'yyyy-mm-dd');

    I need to find an alternative way to reduce the length of the Code.

    Any Suggestion please!

    Hello

    Please see the query below...

    SELECT RTRIM (REGEXP_SUBSTR ('John, 100, Manager, 26000', ' [^,] *,', 1, 1), ',') AS part_1

    , RTRIM (REGEXP_SUBSTR ('John, 100, Manager, 26000', ' [^,] *,', 1, 2), ',') AS part_2

    , RTRIM (REGEXP_SUBSTR ('John, 100, Manager, 26000', ' [^,] *,', 1, 3), ',') AS part_3

    , LTRIM (REGEXP_SUBSTR ('John, 100, Manager, 26000', ', [^,] *', 1, 3), ',') AS part_4

    DOUBLE;

  • With the changes made in the Adobe Acrobat DC he has made things more difficult for me. All I want to do is to rename a file. Used to be simple. Please tell me how to rename a file without using the cloud. I'm not paying for storage when I have an SD card

    Hate the new update.  I need to rename files and cannot do without using the cloud.  Could not sign in the cloud free services.  Someone knows how to rename the files with Adobe Acrobat DC? I use a HD with Android corner.

    Do you have any file manager installed on your device? This feature is no longer available in the latest version of Acrobat DC but we actively seek to provide the same in one of our future releases. To work around the problem, you will need to duplicate/rename the files using a third-party file manager application.

  • Is there a way I can get a photo 360 degrees in a pdf file without using flash (because of iPad)

    Hi all

    My client wants a rotation of 360-degree images in a pdf file that can be read on an iPad, to give to its sellers. 3D photography is not a problem. But how can I get in pdf format, without using the Flash (as Flash is not accepted on Apple).

    Thanks in advance.

    See you soon,.

    Henk

    You can't, and that's all.

    Mylenium

  • Problems to reverse a flat file and use it as TARGET

    Hi all.

    I have a requirement to create a CSV file with two columns, username and password. I use an ODI Client in a Windows XP and my ODI Server is a Unix server.

    I tried so many different ways to reverse the file, but all attempts fail. :(

    In my unix server, the file is located in/opt/odi_files/csv and my windows client is in C:/TEST_TXT_ODI. The file name is Export_Siebel_to_CA. CSV.

    I created 2 logic diagrams, one called LS_FILE_WINDOWS_CSV and the other called LS_FILE_UNIX_CSV and the procedure of the physical schema, putting DS at the beginning... the other connecting correctly. I use the driver JDBC of Sunopsis file and when I test the connection by using the local agent or server, I have a success message. When I try to turn the tide, I get the error "unable to retrieve the list of files.

    I have used this site as my guide until now ["http://odiexperts.com/?p=78"], but the configuration of the topology to access the unix server or using my own machine as a location for the file, I was not able to retrieve the columns in the file.

    I think that there is something that I miss. Anyone help me?

    Kind regards.
    Luiz Araujo

    Fala AI Buchu!

    Can you send me a photo of your definition of data store? (the file to the template tab)

    Cezar Santos
    http://odiexperts.com

Maybe you are looking for

  • Lost '+' tab at the top right of the bar

    I don't know, but since Firefox 6.0.2 I can't find '+' tab at the top right of the bar. Now to open new tab, I can: use the icon or Ctrl + t or the menu.Someone can help me.I just installed firefox 7 but it's the same problem

  • slate of HP 7 power cord replacement

    Hello It's sad to say, but so far I found no answer to my double open communication on my power chord that does not load to my tab 7. can you help me in this matter? Nestor

  • Before Panel full-screen when open

    Hello, I would like to know if there is a way for LV open a Vi and have the façade fit entirely on-screen, when it is open. Each one that I saved so far, even though this positioning where I thought he would take the entire screen, it opens in as dia

  • Cursor for display and control time video

    Hey community,. I run a video with the IMAQ / AVI components. To this effect I want to have a timeband as there is one in a normal video player. Time turns and if I click the video on the tape should be at this point in the video. Is it possible to m

  • A mission continues to load when I'm doing the free flight on Flight Simulator

    It seems that my FLight Sim is blocked on a mission.  If I try to make free flight, she won't have to the city I chose instead to the last mission, that I flew.  Is there a way to reset it or prevent it?