How do use an Import Command from DB2 into a java program

I have to use a csv file to load data into a table, after connecting to the database and using the execute, it does not recognise the import statement.
How do i import that file into a table using a java program

Import is a DB2 utility program which uses sql Insert to write data into a table. Insert is called from the CLP (command line processor), not from Java. If you want to do this job using Java, then you need to establish a connection to the database, and write your own sql insert statements.

Similar Messages

  • Need to import data from DB2 into Essbase

    I need to create a Windows process (like a daemon) to constantly check DB2 for updated records and then pull the updated record into Essbase and clean the blocks. Would it be better to:
    a) Write a ESSCMD macro with the import command to somehow run constantly
    b) Write a Java class that will pull the information with SQL
    c) do something else?
    Do you have any suggestions for the best way to do this?

    What you should do depends on your skills (among other things).. It seems to me that if you write it in Java, you have a whole lot of flexibility that you don't have with scripting languages such as EssCmd or Maxl.
    Tim Tow
    Oracle ACE
    Applied OLAP, Inc.

  • How to retrive an Email ID from Microsoft Outlook in Java Programming ?

    Hi,
    Requirement : How would I get the Email lD from Outlook.
    I am developing an application where I receive a mail from it
    in that mail I have two Button One is "Approve" and other is "Reject".
    On each button I had written the separate code.Now I had not put any validation of email ID.
    Like if person who receive a mail who is authorized send a mail to another person for some analysis.
    Here the button are visible to 3rd person so he can go ahead click on button and approve and reject the request.
    To avoid this issue I need your assistance regarding how would I get the email id from outlook
    to which email had sent.
    So I can compare the email ID which I had received from the outlook and
    mail id which I had send it from my application.
    Regards,
    Tushar.

    see this
    outlook - Retrieving mails from MS Exchange Server from Java application - Stack Overflow
    java - How to read email of outlook with javamail? - Stack Overflow
    http://stackoverflow.com/questions/19623068/java-program-to-check-periodically-ms-outlook-for-new-mail

  • Working alternating with iPhoto and FCE tgrying to import pictures from iPhoto into FCE suddenly all my 22300 pictures disappeared leaving empty frames. Does somebody know where the pictures could have gone and how can I get them back into iPhoto? Lothar

    Working alternating with iPhoto and FCE tgrying to import pictures from iPhoto into FCE suddenly all my 22300 pictures disappeared leaving empty frames. Does somebody know where the pictures could have gone and how can I get them back into iPhoto? Lothar

    The ! turns up when iPhoto loses the connection between the thumbnail in the iPhoto Window and the file it represents.
    Option 1
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Rebuild iPhoto Library Database from automatic backup.
    If that fails:
    Option 2
    Download iPhoto Library Manager and use its rebuild function. This will create a new library based on data in the albumdata.xml file. Not everything will be brought over - no slideshows, books or calendars, for instance - but it should get all your albums and keywords back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one. .
    Regards
    TD

  • How can I get imported pictures from my ipad 3 to my laptop?

    Pretty much what the quetions states - "How can I get imported pictures from my ipad 3 to my laptop?"
    I've imported a load of pics from my Nikon D40 to my iPad 3 (ios 6.1) using the iPad camera connector. 
    So far so good.
    However I cannot sync the pictures to my laptop (win 7).  I would like to be able to keep the albums I have created, and get them to the laptop too.
    If a restore was required I might lose thee pics.
    Any advice or apps recommended to help me?
    Thanks in advance,
    Steve Potter

    To copy photos to your computer that were copied to it via the camera connection kit (or taken with it or saved from emails/websites) then see this page (as far as I know you can't copy their albums) - on a PC you can use the windows camera wizard

  • How can I import pictures from aperture into iPhoto

    Since moving to mountain lion OSX, I can't find a way for importing pictures from aperture into iphoto. There used to ba a tab under archive in iPhoto where you could view the aperture library and select pictures to import them into iPhoto. This tab has diappeared. Could anyone tell me how it's done now?

    I noticed indeed that you can change the library under "archive" in iPhoto but when I choose aperture library I can't find the same structure of albums as in aperture.
    Sorry I don't understand this. What is "archive"?

  • How to use ET_ATTACH importing parameter Function module BBP_PD_SC_CREATE

    hi,
    how to use ET_ATTACH importing parameter of Function module BBP_PD_SC_CREATE, my requirement is to create SC with attachment.
    an example would really help.
    Kind Regards,
    Kailash.

    Hi,
    Generally we create the SC from ITS or Portal, and there in the Create SC screen , once you add the item into the shopping cart , in the Item details, there is the section called , Documents and Attachements, where in you can upload the attachments which ever you want. Sometimes the extn .DOC, .pdf and .xls are allowed. but that also you can check which are the Authorized files extns avaialbe in Backend R/3.
    Using the FM RFC_READ_TABLE, in table pass TDWP and in the i_field pass 'APPSFX' and then you can get the authorized file formats. in Backend Transaction DC30 you can verify which are the allowed file formats.
    Moreover for restricting the User from uploading the attachment BADI BBP_ITEM_CHECK_BADI can be implemented for raising the error message if required.
    Regarding the ET_ATTACH, it is the structure of type BBPT_PDS_ATT_T,  so you have to provide the complete details for this structure. Like : GUID, P_GUID ,LOGICAL_SYSTEM, DESCRIPTION, URL, TYPE,DISP_URL, PHIO_EXT ,etc.
    Once all the entries are fine.
    You can create the SC, but the recommeded way for creating the SC is thru ITS or Portal.
    I hope this will help. Feel Free while asking questions.
    Thanks and Regards,
    Ankur Goyal

  • How to use Operating System Commands while using define in sqlplus

    How to use Operating System Commands while using define in sqlplus . The Host OS is Linux
    define report_name=PROD_${host date "+%b"}.html
    The above is not working.
    The output should be 
    define report_name=PROD_JAN.html
    Regards,
    DB

    of course I was talking nonsense: the problem here is the mixing of bind variables and DEFINE variables.
    With the following changes the script should work (the conditions for begin_interval_time are perhaps not what you want):
    variable snap1 number
    variable snap2 number
    variable rptname varchar2(20)
    begin
    SELECT min(snap_id) into :snap1 FROM dba_hist_snapshot WHERE CAST(begin_interval_time AS DATE) >= SYSDATE-1;
    SELECT max(snap_id) into :snap2 FROM dba_hist_snapshot WHERE CAST(begin_interval_time AS DATE) >= SYSDATE-1;
    end;
    col file_name_value new_value report_name noprint
    select 'PROD_'|| to_char(sysdate,'MON') || '_' ||  to_char(sysdate,'DD') file_name_value  from dual;
    define  report_type  = 'html'
    define num_days=2
    define begin_snap=:snap1
    define end_snap=:snap2
    @@?/rdbms/admin/awrrpt.sql

  • How to run a openssl command from a java program

    Hi All
    Please suggest on how to run a openssl command from a java program.
    I am using this
    Runtime runtime = Runtime.getRuntime();
    runtime.exec("openssl pkcs8 -inform der -nocrypt test.der result.pem");
    This is suppose to take test.der as input and create result.pem.
    There are no errors but the file result.pem isnt created.
    Thanks in Advance

    First off is that openssl command correct? Should it be this instead:
    openssl pkcs8 -inform der -nocrypt -in test.der -out result.pem
    Try out your openssl command within a command prompt so that you know that it works ok. I think the command line you specified waits on stdin (well it does for me).
    After that.....
    runtime.exec creates a Process object. If you do this:
    Process openssl = runtime.exec("....")
    then you can examine the return code from openssl to see the exit code - for instance if the input file does not exist then exit = 1. You can test for this with Java
    Alternatively you could get the stderr from the process and look inside it - if it is 0 length then all is good, if it has some text in there then it has likely failed. You could then throw an exception and include the stderr output in the exception messgae. You may need to experiment with this, runnig it first when openssl is happy then running it again when openssl is upset.
    M

  • How to import cache from Chrome into Mozilla FireFox?

    How to import cache from Chrome into Mozilla FireFox?

    Not something that anyone usually attempts. If you use Firefox it builds up its own cache. I am not even sure Chrome uses the sametypeof cache files. Are there particular problems you are trying to solve ?

  • I imported videos from photo into iMovie when I set up iMovie (obvious mistake) and now iMovie doesn't work properly, nor can I move specific videos into a folder where I want them. How do I fix this?

    I imported videos from photo into iMovie when I set up iMovie (obvious mistake) and now iMovie doesn't work properly, nor can I move specific videos into a folder where I want them. How do I fix this? I even tried deleting iMovie, bought a new copy and installed it, but the folder "iPhoto Videos" is still there and I can't get new clips loaded to iMovie, especially where I want them. Please help.

    The iPhoto Videos do occasionally have problems. I've seen a lot of people write messages to this Discussion group describing similar problems. The only thing that seems to get around this problem is to pull the video clips out of iPhoto then import them directly into iMovie. Once the troubles with iPhoto Videos starts, I haven't yet seen anyone write back with something that they did to fix it.
    The most difficult part of doing this is the movies in iPhoto might be a little difficult to track down. But you can create a smart alum that does that for you. Go to iPhoto > File Menu > New Smart Album:
    Set the first pulldown menu to keyword, second to contains, then in the last box type Movie with a capital 'M'. Then click OK. This smart album more or less does as search of the whole iPhoto Library and only displays items that match your search tearm of "Movie" exactly. In that smart album then you can find the original Movies you want to move out of iPhoto and into iMovie, <CTRL> click on the Movie clip, then choose Reveal in Finder. That will jump you out of iPhoto temporarily and into the iPhoto Library folder. From there you can move that movie file to the desktop. Move all the clips you want, once they're all collected up go to iMovie and go to the File Menu > Import Files. Then point it to the desktop where you moved your video clips.
    This will put all those videos into an Event folder in iMovie and bypass iPhoto Videos altogether.

  • How to use ls-l command in SAP ??

    Hi,
    can any one suggest how to use ls-l command of unix in sap to get the details of file like creation date,etc.
    Thanks.

    Hi Krishna.
    These are the steps you need to follow.
    tables: specify the table.
    data: begin of fs_...
            end of fs_    " Structure Field string.
    data: t_table like
            standard table
                      of fs_...
    data:
    w_file TYPE string.
    data:
      fname(10) VALUE '.\xyz.TXT'.
    select-options: if any.
    PARAMETERS:
      p_file LIKE rlgrap-filename.
    w_file = p_file.
    select .... statement
    OPEN DATASET fname FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
    *OPEN DATASET fname FOR OUTPUT IN BINARY MODE.
    LOOP AT t_... INTO fs_....
    write:/ .....
    TRANSFER fs_... TO fname.
    or
    TRANSFER t_... TO fname
    ENDLOOP.
    CLOSE DATASET fname.
    Reward points wisely and if you are benefitted or ask for more detailed explanation if problem not solved.
    Regards Harsh.

  • How to use "Open Stream" command?

    How to use "Open Stream" command in the iTunes application.

    File > Open Stream > Enter a URL > Click OK > Listen. Obviously the URL needs be a valid media source like an mp3 file or a streaming radio station.
    tt2

  • How do i import photos from iPhoto into LR5?

    how do i import photos from iPhoto into LR5?

    ldechiara21 wrote:
    how do i import photos from iPhoto into LR5?
    For a quick look, or are you trying to migrate?
    If the former, then "what Jim Hess said". If the latter, then do tell...

  • Hi yesterday i downloaded a software from i tunes for keyboard short cut and i don't know how to use them and install them, how to use keyboard shorts bought from i tunes

    hi yesterday i downloaded a software from i tunes for keyboard short cut and i don't know how to use them and install them, how to use keyboard shorts bought from i tunes

    You can install it on your iOS device (iPad, iPhone, iPod Touch) either by redownloading it directly on the device via the Purchased tab in the App Store app on it, or by connecting the device to your computer's iTunes and syncing it to it.
    Syncing apps from a Mac : iTunes 11 for Mac: Sync and organize iOS apps
    from a PC : iTunes 11 for Windows: Sync and organize iOS apps
    As to how to then use the app, if the description on the app's description page in the store doesn't describe how to use it in enough detail, then is there a link to the developer's website on its description page, and does that have details ?

Maybe you are looking for

  • Unable to navigate past movie menu on Apple TV 1st Gen

    I purchased a movie in iTunes that includes iTunes Extras.  It will play fine on my desktop.  When I try to play it on my Apple TV, it brings up the movie menu, just as though it was a DVD or Blu-ray.  I can highlight different menu options, like "Pl

  • Nokia Lumia 900 non-LTE version. BIG connectivity ...

    Dear all, I have my gorgeous Lumia 900 for a week now and I am experienceing massive data connectivity issues. When the network changes from 3G(HSPA) to 2G or to Wifi, Data connectivity breaks down. I have to wait for 10 or more minutes or do setting

  • MBA - slow internet/wifi then photo stream is enabled

    I have problem with very slow internet /wifi connection when photo stream is enabled. I run some test. I'm conecting MBA to internet by WIFI network. When photo stream is enabled, ping reply time to my router is around 1000ms - 2000ms. When I turn of

  • Row Level Security (VPD)

    We are enhancing our corporate security model using VPD fine grain access to allow more flexible policies. This will provide different levels of row level access on each set of mart fact tables (Health Board level access on Mart A, GP Practice level

  • Multiple landscapes in one NWDI?

    We have 2 distinct landscapes - one for BI java development (with ABAPJ2EE dev/qa/prod) and another for ERP (again, an ABAPJ2EE dev/qa/prd landscape). How could we use a single NWDI instance to manage both of those landscapes separately.  We would wa