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.

Tags: Business Intelligence

Similar Questions

  • How to load the file name in the table target. ?

    Hi Expertise,

    I load the data of 100 files of same schema using packages,

    It is a variable stores the names of files. I used this link for reference: ODI gurus: SEVERAL FILES - TARGET SINGLE TABLE - SINGLE INTERFACE & several files simple single interface target .

    but now I need what files have been executed in the interface. Please give me some ideas?
    I need when the data from a particular file was loading then in DB, the particular file name must also be sent to the target.

    using ODI 11.1.1.9 & wls 10.3

    Help with kindness,

    Thank you

    Shakur

    In my example src_file_name is a column name

    and #projectName.variableName - is a variable

    If you want to store in the column you define '#projectName.variableName.txt '- don't forget the single quotes - (as a result, you get an error)

  • When I try to open a compressed folder, I get an error message. How to open this file without error message?

    When I try to open a compressed folder, I get an error message saying: "Windows cannot open the folder. _ Compressed (zipped) folder is invalid. How to open this file without error message?

    Click on this link: http://www.vistax64.com/tutorials/65254-zip-file-support-restore.html or

    http://www.7-zip.org/download.html

    Make sure that you choose the correct version of bit. (32-bit or 64 - bit).

    Helped?

  • 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

  • How to create a model to look for an ftp location loading flat files

    Hello world

    My requirement is - I need my model to a ftp location where our files food source are kept and loading every day. Right now my model ODI resembles my odi home default load my files. Can anyone suggest how this is possible. And also how can I customize the loading of flat file in the package (my flat file has a name that has the date of days on that (0628xxx.txt for today and tomorrow 0629xxx.txt).) How can I tell odi to search for files in my parcel today and tomorrow.

    Thanks in advance.

    concerning
    Badin

    Babu,

    The default port for ftp is 21. What is your port?
    You can specify the name of the port next to the server name as in "servername.company.com:27" assuming that your ftp is running on port 27

    You use local or remote agent. It will also make a difference, because maybe remote agent cannot see this IP.
    Another point to consider is that your ftp could be a secure ftp, in this case, you need to use another tool - odiSFtpGet

    Try using the ftp commands in the command prompt Windows.

    Get the means to get the files from the FTP server.
    Put the means you want to place the files on the FTP server.

  • Data period multi loading flat file to database ASO

    FDM gurus,

    We try to load Plan data for 12 months to an Essbase ASO using FDMEE database.

    We followed the documented specification stage in the format of import for amount (column = < start >, < end >) AND choosing the "multi-period Text file (contiguous period)' in the data load the rule.

    However, the Validation fails even for period dimension he complained of "value without Source for UD3".  {The UD3 in our case is be the period}

    Our record of flat file looks like in below:

    Dim1, Dim2,Dim3,Dim4Dim5,6, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12

    Import mappings formats, I also see the dimension of 'period '. Could be the problem? As you know, database planning, it does not show.

    If you'd be grateful if someone could shed some light. Thank you!

    You don't have to specify which version you're on.

    When you set the size of the target Application you set period of your ASO [size target class] cube dimension as period?

    Try and that should remove it from the map area of import Format.

    Let us know how make you out.

    Be sure to mark the response as if it were useful and correct, if it has solved your problem.

  • 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é

  • How to print a file without having to install any printer

    Hello!

    As I know, there was a possibility of printing to a file without having to install a printer and get a picture of your page to print somewhere as a service bureau or print Center. Please help how to get out if there is this possibility.

    Thanx

    There is a nice free program called PDFCreator which will allow you to do:
    http://www.pdfforge.org/PDFCreator>

    I used it since Windows 95 without any problem. It is very simple to install and use.

    SC Tom

  • How to merge PDF files without creating a pdf portfolio?

    I use Acrobat Pro DC and when I go to merge two PDF files, I do tools > combine files > select my PDF files that I want to merge and sort it then creates a PDF portfolio, I don't want to. I think it has changed with the last update, but how do I merge my files without creating a portfolio? I'm not selecting 'Create a Briefcase' anywhere, and I used to be able to do it before the update. Any ideas?

    Click on the Options button in the combine files dialog box and you will be able to change it there.

  • 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.

  • How to load a file by using unique code for the table values

    Hi Experts,

    I'm loading the file to Table data.
    In the file, I will have values such as as follows

    ABC = 1234; XYZ = 5627; NAME = Chavigny
    ABC = 1254; XYZ = 5684; NAME = riadh
    ABC = 1235; XYZ = 5524; NAME = Nani


    How to approach this kind of needs in ODI.

    THX,
    Sara.

    No problem here because we does not specify the third parameter (limit) of SUBSTR.
    Then it just starts after EMPNO = and will go until the end, regardless of how many characters you have after EMPNO =.

    If you want to replace:

    REPLACE(., '')
    

    It will replace all the occurrence of EMPNO = in the chain.

  • Loading flat file in planning in ODI

    Hello

    I'm trying to load data from a flat file into the planning with ODI. When I create the model planning and try to reverse using the knowledge RKM Hyperion Planning module, I get an error in step 2 of the process: start the reverse.

    This is the code in the Description tab in the operator:

    from java.util import HashMap
    import java.lang Boolean
    from com.hyperion.odi.common import ODIConstants
    from com.hyperion.odi.common import ODIModelImporter
    from com.hyperion.odi.connection import HypAppConnectionFactory

    #
    source # planning of the connection properties
    #
    serverName = "epmdemo."
    userName = "demoadmin".
    password = "< @= snpRef.getInfo ("SRC_PASS") @ >.
    request = "PhysPrac."

    srvportParts = serverName.split(':',2)
    srvStr = srvportParts [0]
    portStr = srvportParts [1]

    #
    # Set connection properties and initializes the charger of planning
    #
    srcProps = HashMap()
    srcProps.put (ODIConstants.SERVER, srvStr)
    srcProps.put (ODIConstants.PORT, portStr)
    srcProps.put (ODIConstants.USER, userName)
    srcProps.put (ODIConstants.PASSWORD, password)
    srcProps.put (ODIConstants.APPLICATION_NAME, application)

    iMod = 10001

    connection of planning #get
    hApp = HypAppConnectionFactory.getAppConnection (HypAppConnectionFactory.APP_PLANNING, srcProps);

    #get connection to the repository
    repCon = odiRef.getJDBCConnection ("DEST")

    #
    # START THE REVERSE
    #
    odiModelImporter = ODIModelImporter (imod, hApp, repCon)
    odiModelImporter.importModels)


    and the error message from the explanation tab:

    org.apache.bsf.BSFException: exception of Jython:
    Traceback (innermost last):
    "< String >" file, line 17, in there?
    IndexError: index out of range: 1

    at org.apache.bsf.engines.jython.JythonEngine.exec(JythonEngine.java:146)
    at com.sunopsis.dwg.codeinterpretor.k.a (k.java)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.scripting (SnpSessTaskSql.java)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execScriptingOrders (SnpSessTaskSql.java)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execScriptingOrders (SnpSessTaskSql.java)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt (SnpSessTaskSql.java)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSqlC.treatTaskTrt (SnpSessTaskSqlC.java)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask (SnpSessTaskSql.java)
    at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep (SnpSessStep.java)
    at com.sunopsis.dwg.dbobj.SnpSession.treatSession (SnpSession.java)
    at com.sunopsis.dwg.cmd.DwgCommandSession.treatCommand (DwgCommandSession.java)
    at com.sunopsis.dwg.cmd.DwgCommandBase.execute (DwgCommandBase.java)
    at com.sunopsis.dwg.cmd.e.k (e.java)
    at com.sunopsis.dwg.cmd.g.A (g.java)
    at com.sunopsis.dwg.cmd.e.run (e.java)
    at java.lang.Thread.run(Thread.java:595)

    I should mention that I am a beginner with ODI.

    Thank you
    Adina

    Are you sure put you the port number of the rmi in the topology Manager, it does not appear that you have
    When you set the server in the topology for the Planning Manager is servername:11333
    For example:-http://4.bp.blogspot.com/__2AaArK5lW8/SNZicAzzHQI/AAAAAAAAAZw/zIdHfP0tnew/s1600-h/8.png

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • How to load several files DBF table 1 target using only 1 interface?

    Hello, I am a beginner in ODI and I have a problem.

    I have several DBF / Foxpro files that is stored in a directory like this:
    2010_10/account.dbf
    2010_11/account.dbf

    All DBF files have the same structure, but stored in a different folder (the folder name is < year > _ < month >)

    I managed to create an interface to load a DBF unique for the target table and the source table is hardcoded in the interface. Ideally, the interface will take place once a month.

    How can I use the same interface to load other DBF files?

    I know, if the data source is a text file, you can link the resource name to a variable, and the variable can be set to a file name. But I can't do since I use a JDBC driver to connect to the DBF file.

    Any help will be appreciated

    Hello

    I have no idea on the DBF files, yet...

    What is create a variable to build the 'months' and then pass this variable to OdiFileCopy, move this file to a specific directory. Then run your interface to load this file into your database. Once the work is successful, you can delete the file using OdiFileDelete (optional)

    Thank you
    Fati

  • How to load multiple files into multiple tables using a Controlfile?

    Hello world

    I have four different tables with similar structures, get the data from four different data files. I would like to use one control file to load the data from four different files from four different tables.

    Here's the DOF of the tables:

    CREATE TABLE Product_Sales(  
        Year_of_Sale NUMBER,  
        Product_Type VARCHAR2(25 CHAR),  
        Product_Group VARCHAR2(25 CHAR),  
        Category_Type VARCHAR2(25 CHAR),  
        Category_Group VARCHAR2(10 CHAR),  
        Product_Count NUMBER,  
        Product_Amount NUMBER(19,2),  
        Category_Count NUMBER,  
        Category_Amount NUMBER(19,2)  
    )  
    
    

    CREATE TABLE Retail_Sales(  
        Year_of_Sale NUMBER,  
        Product_Type VARCHAR2(25 CHAR),  
        Product_Group VARCHAR2(25 CHAR),  
        Category_Type VARCHAR2(25 CHAR),  
        Category_Group VARCHAR2(10 CHAR),  
        Product_Count NUMBER,  
        Product_Amount NUMBER(19,2),  
        Category_Count NUMBER,  
        Category_Amount NUMBER(19,2)  
    )  
    
    

    You still have products_sales instead of product_sales in when your article, so it does not load anything in the product_sales table.  You have not reset the position for the first after subsequent field in the table and when clauses, then it starts looking for the first field to the position you left it in the previous section, instead of 1, so he can't find anything and does load all the data in the household_sales table.  You need to reset the position 1 for each combination of table and what clause after the first.  The first argument is optional.  Please see the corrected below control file.

    DOWNLOAD THE DATA

    INFILE 'output.txt '.

    IN THE PRODUCT_SALES TABLE TRUNCATE

    WHEN filename = "Product_Sales".

    FIELDS ENDED BY ',' POSSIBLY FRAMED BY ' '.

    TRAILING NULLCOLS

    (

    file name of FILLING,

    Year_of_Sale,

    Product_Type,

    Product_Group,

    Category_Type,

    Category_Group,

    Product_Count,

    EXTERNAL DECIMAL Product_Amount,

    Category_Count,

    EXTERNAL DECIMAL Category_Amount

    )

    IN THE HOUSEHOLD_SALES TABLE TRUNCATE

    WHEN filename = "Household_Sales".

    FIELDS ENDED BY ',' POSSIBLY FRAMED BY ' '.

    TRAILING NULLCOLS

    (

    filename FILLER POSITION (1),

    Year_of_Sale,

    Household_Type,

    Product_Group FILLING,

    Category_Type FILLING,

    Category_Group FILLING,

    Product_Count,

    EXTERNAL DECIMAL Product_Amount,

    Category_Count,

    EXTERNAL DECIMAL Category_Amount

    )

  • Loading flat file of LINUX Server

    Hello

    We have the system of remote files (CIFS) on linux server where the .csv files are stored and we ODI to read these files.

    How does the ODI on the remote file server connection? It would be useful that some examples are shared to find out how the path, the physical architecture must be configured in ODI?

    Any help much appreciated. Thank you

    1 understand agent goal in ODI. When you use the Local Agent during execution of the script, it will seek the files available in the local path. When you use an agent that is configured on your remote server, it will search the files available in the path of the remote server.

    Hope you got it now.

    Thank you.

Maybe you are looking for