Creating flat file

Hi all,
I have some data structured in table.
How to create flat file which has data in table format using java?
thanks in advance,
amar

As usual -:) You write the table row by row to a textfile turning the variables into text.

Similar Messages

  • Creating flat file on other machine.

    Hi All,
    I am working on ODI 11g( 11.1.1.6).
    i want to create flat file on another machine.
    lets say, i have two machine A & B.
    Machine A contain ODI 11g, Machine B contain source (Oracle) and Flat file location which is Target.
    How to create flat file in machineB as target.
    Please heip.
    Regards
    Prashant

    Thanx for replay,
    In machineA ODI 11g is installed.
    source and target are on machineB.
    In Physical Architecture i am able to map source(Oracle) machineB using IP,
    but for file, i am not able to map with target machineB, to generated flat file.

  • Unable to create Flat File

    Hi,
    I am trying to create a flat file source system in BW.When i do that i get an error   ' No entry for BW_USER in table RSADMIN available'.ANy ideas pls?

    Hi,
    Goto RSA1 -> Menu path "Setting" -> "Global Setting" -> Enter the background under "BW User ALE" field. You first have to creat a user like "ALEREMOTE" in SU01 and then assign that user here. After that try creating flat file source system.
    Hope this resolves the problem.
    - Parin Gandhi.

  • Create source structure -Need to create flat file or table?

    Hi All,
    Can any one let me know what needs to be created?? it should be flat file or a table on the data base?
    I am going to reecive flat files from the source system??
    If it is a flat file then is there any way to create flat file structure in the DS using SQL query statements?
    Thanks
    Rajeev

    you can create table same as file structure and use the table instead, but how are you going to populate the table with the data from flat file ? you will need some application to do that, you can do this is DS by creating a file format and using the source file as input for that file format and create a template table as target for the database datastore to wihch you want to load data from this source file, and use that table as source in other dataflows
    you can also create the table with the same structure in the database and import that in Datastore and use that as target for the source file

  • Create flat file from oracle table data

    d_adp_num char(10)
    d_schd_date char(8)
    d_sched_code char(25)
    d_pay_code char(50)
    d_mil_start char(4)
    d_mil_end char(4)
    d_duration char(5)
    d_site_code char(4)
    d_dept_id char(6)
    select payroll_id,
    schedule_date,
    reason_code ,(sched_code)
    reason_code, (pay_code)
    start_time,
    end_time,
    total_hours,
    site_code,
    department_id
    from dept_staff
    where schedule_date between (sysdate+1) and (sysdate+90)
    loading some data instead for the date range.
    sched_code - 'Unavailable' if reason_code = 'OD' and 'LA'
    pay_code - 'BD Berevevement' if reason_code = 'BD'
    'UP Unexcused PTO' if reason_code = 'UP'
    'RG' if reason_code = 'SH'
    'PTO' if reason_code = 'VA'
    these are a few.....
    start_time and end_time - convert into military time
    based on start_ampm and end_ampm
    Based on this, I need help to create a flat file. Attaching sample of flat file and data from dept_staff
    If site_code is there then no need to get department_id( see sample flat file)
    sample data for flat file
    ZZW002324006072012 PTO
    0800160008.00
    ZZW002428106072012 RG
    1015174507.50HM34
    ZZW002391606072012 RG
    1100193008.50
    ZZW002430406072012 RG
    1100193008.50 130000
    dept_staff table data
    PAYROLL_ID     SCHEDULE_DATE     REASON_CODE     REASON_CODE_1     START_TIME     START_AMPM     END_TIME     END_AMPM     TOTAL_HOURS     SITE_CODE     DEPARTMENT_ID
    ZZW0024468     6/8/2012     SH     SH     730     A     400     P     850          12
    ZZW0000199     6/8/2012     SH     SH     730     A     400     P     850          14
    ZZW0023551     6/8/2012     SH     SH     1145     A     930     P     975     GH08     95
    ZZW0024460     6/8/2012     SH     SH     515     A     330     P     1025     GH08     95
    ZZW0023787     6/8/2012     SH     SH     630     A     300     P     850          24
    ZZW0024595     6/8/2012     TR     TR     730     A     400     P     850          90
    ZZW0023516     6/8/2012     OD     OD     800     A     400     P     800          95
    ZZW0023784     6/8/2012     OD     OD     800     A     400     P     800          5
    ZZW0024445     6/8/2012     SH     SH     1145     A     930     P     975     GH08     5
    ZZW0024525     6/8/2012     OD     OD     800     A     400     P     800          23
    ZZW0024592     6/8/2012     TR     TR     730     A     400     P     850          5
    ZZW0024509     6/8/2012     SH     SH     830     A     330     P     700     MK21     95
    ZZW0023916     6/14/2012     SH     SH     1100     A     730     P     850          27

    user_anumoses wrote:
    Any examples, please provide? Thankshttp://www.lmgtfy.com/?q=oracle+utl_file+example
    Handle:     user_anumoses
    Status Level:     Newbie
    Registered:     Jun 9, 2009
    Total Posts:     155
    Total Questions:     60 (55 unresolved)
    why so MANY unanswered questions?

  • Creating Flat file in Print workbench.

    Hi,
       I have a query in Print workbench.
       I have to diable spooling and printing and I've to create a 'Flat file' instead.
       If anyone worked on this area or if anyone could suggest me some idea, it would be of great help to me.
    Thanks before-hand and Greetings,
    Sasi.

    Hi,
    Take a look at https://www.sdn.sap.com/sdn/weblogs.sdn?blog=/pub/wlg/1523. [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] It gives information on how to setup printer for file output. See if it helps.
    Regards

  • Createing flat file in cold fusion.

    i got a wddx packet and i have to create a flat file out of
    that. i can deserialize and write into a file but how can i make it
    fixed length even though the length of the contents varies in the
    wddx packet

    well, i this file what i am taking about has numbers and
    chars. i wanted each field to be fixed length. i am not talking
    about file length. for example. i have name and account number
    filed. name is 50 chars and a/c num is 10. but the data i am
    getting is name only 10 chars and a/c num is only 5. now in the
    first row i am getting total 15 chars rather than getting 10 + 40
    spaces and 5 + 5 spaces. how can i get that. do you know anything
    about WDDX DTD. can this be utilized here... thanks for your
    help.

  • Creating flat file in local machine

    Gurus,
    My database is OLAP database, i need to extract the data into flat file (.csv/.txt/.xls) in to client machine (Local machine, or End user PC) not in to Oracle DB Server.
    Is it possible to achieve the same without using UTL_FILE?
    If so please help me in this regard.
    Thanks in advance.
    Karthik.K

    What client are you running on the PC to connect to the database
    If sqlplus you can spool the output
    Re: Create a file in a local PC.
    Other options some of which write to the client.
    http://tkyte.blogspot.com/2009/10/httpasktomoraclecomtkyteflat.html

  • Creating Flat File Source System in BI

    Hi,
    How can I create a flat file source system in BI???

    Hi,
    Here are the steps...
    1. Go to RSA1.
    2. Click on Source Systems.
    3. In the right pane, right click on Source Systems and say "Create".
    4. Then choose the option of "FlatFile" from the available options.
    5. Give the name to Source system.
    Hope this helps.
    Regards,
    Yogesh.

  • How to create flat file with fixed lenght records

    I need help to export an Oracle table to a flat file with fixed lenght and without columns separator.
    the fixed length is the more important demand.
    My table have 50 columns with varchar, date and number .
    Date and number columns may be empty, null o with values.
    Thanks a lot for any help.
    [email protected]

    Hi,
    You can use this trick:
    SQL>desc t
    Name                                      Null?    Type
    NAME                                               VARCHAR2(20)
    SEX                                                VARCHAR2(1)
    SQL>SELECT LENGTH(LPAD(NAME,20,' ')||LPAD(SEX,1,' ')), LPAD(NAME,20,' ')||LPAD(SEX,1,' ') FROM T;
    LENGTH(LPAD(NAME,20,'')||LPAD(SEX,1,'')) LPAD(NAME,20,'')||LPA
                                          21                    aF
                                          21                    BM
                                          21                    CF
                                          21                    DM
    4 rows selected.
    SQL>SELECT *  FROM t;
    NAME                 S
    a                    F
    B                    M
    C                    F
    D                    M
    4 rows selected.Regards

  • Creating Flat file using AS2 Receiver adapter

    Hello everyone
    This is my first AS2 scenario,we are sending 850/Purchaser order  information from SAP to partner.
    what is the processing sequence and module configuration parameters we need to mention for converting the target structure to flat file?
    Regards
    Uday

    Try to search Seeburger scenarios on SDN. There are many blogs and wikis availble now. There you may refer to BIC, classifier and split modules. Understanding of all these will help you in configuring the scenario. If you are stuck somewhere, come up with specific doubt.
    Regards,
    Prateek Raj Srivastava

  • Creating flat files (.csv) in user defined directory using PL/SQL

    I need to extract data into a flat file (.csv) and store the flat file directly into a directory on local drive as specified by the user at runtime. I do not intend to use the UTL_FILE package. Is there a way put to do this?
    Thanks
    Amit.

    Hi Amit,
    Your users have any shared drive which every one can access? If so follow these steps.
    1> Allow users to select their destination location to an APEX item.
    2> On submit, save the user IP, destination location and user name to a database table.
    3> On submit, using JS, open XLS file template (+kept this template file in shared location+) The template should contain all the macros that will do the needful. I mean they should connect to database and should fill it with data and saving it to user specified location etc.
    Hope it helps.
    Cheers,
    Hari

  • Error while Creating Flat file Source System

    Hi Friends,
    The message "No entry for BW_USER in table RSADMIN available" is shown when I try to create a Source System for File System(Manual Metadata, Data using File Interface). Could somebody help me please.
    Thanks in advance.
    Hanuma Reddy

    Hi,
    I have solved this problem from SDN by seeing below reply to some others question. Thanks Ajay.
    I think this problem comes if you have used more than one client in BW (for example if you logged on to 000 and ran admin workbench initially after installation, and then if you prepared another client for use as BW client).
    Look at OSS note 410952, it mentions of the same error. The fix as mentioned in the note is as follows
    Symptom
    You receive the error message when trying to connect a source system to the Admininistrator Workbench:
    "No entry for BW_USER in table RSADMIN exists" (message number RSAR 059).
    Additional key words
    RSAR059, APO, RSADMINA
    Cause and prerequisites
    In table RSADMINA, the BW user is not maintained for ALE.
    Solution
    Maintain the entry using the following path:
    Call Administrator workbench (transaction RSA1).
    From the 'Settings' menu, select Global Settings'.
    If an entry already exists in the field "BW user for ALE", delete this.
    Enter the correct names for the BW users in this field.
    Save the entry.
    You must restart the Administrator Workbench (RSA1) now.
    The source system can now be linked without errors.

  • Creating flat file saying what a BPM did

    Hi all
    Can someone give me some light in how to create a fltat file that says what did a BPM did correct.
    All the system and application exceptions are handled  but I need that if something wrong happens it should  write this on a file.
    Thanks in advanced
    Regards
    Emmanuel

    Hi Emmanuel,
    If you have an exception then in the exception block you can use one more send step and can send a file. Now here if you want you can use the transformation step and write a user defined error which would write an error file. You can use the same mapping with different error based upon your exceptions.
    Regards,
    ---Satish

  • How to create source system for flat file loads

    How do I create a source system to load flat file?
    I have a screen that asks for the following:
    Logical system name
    Source system name
    Type and release
    What should I enter for these?
    I am not Basis and Basis was supposed to set this up.

    hi sam.
    STEPS TO CREATE FLAT FILE SOURCE SYSTEM
    step:1 select source systems under modeling in AWB.
    step:2 select Source Systems root node.
               |---> context menu
                   |--->create......
    step:3 select your required source system Icon.
              (in your case it is PC Icon).
    there it askes for a logical.......and source system name...
    here u can specify any name of ur wish
    for example:-
    logical sys name --- PC_FF
    source system name --- flat file source system*
    *press Continue * button.
    Observe the activation icon to confirm the successfull creation(_glowing lamp icon_ symbol)

Maybe you are looking for

  • How to display "No data for yesterday" in a scheduled report on Webi

    Hi All, In Webi, I am working on scheduling reports and was asked by a user if the scheduled report on Webi can display "No data for yesterday/no orders for yesterday" when the report returns no data due to No Orders submitted or a business holiday.

  • Unable to open and view photos in iphoto

    I am unable to view my photos in iphoto, or from anywhere else on my computer.  iphoto looks normal but is running very slow.  My thumbnails are all there.  I will click on a thumbnail, but the border turns from yellow to light blue, but the photo do

  • How to select different database columns in a single BO Universe Object

    We have 'n' databases. All the databases have identical tables and views but some tables in few database have custom columns. Ex. 'database1' has table 'sites' with the following columns 1. sitenumber 2. sitename 3. siteaddress 4. phone 5. email 6. A

  • PPro CS4 - half of audio is missing from exported files

    Hi all. I'm currently working on a project in PPro CS4, and by that I mean that I've already completed the project. It was exported and uploaded to youtube for my boss, no problems. Then he asked me to combine the two videos, so I copied the second h

  • [CS2] [JS] Resize anchored object...

    Good morning: I need help figuring out how to resize different objects that are anchored in text. They do have a script label on them. For example I have an inline text box with the script label "gadget" that needs to be resized from 1 inch to 2 inch