Sqlldr - can you skip last row from a data file

Hi
I need to skip last line from the data file when I load the data into the tables. Is that possible to do using sqlldr, if yes How?
Also, the first row in the data file, which has a single column needs to be loaded into all the rows of the table. How can i do that?
Example
020051213
1088110 0047245 A 000000000000GB 00000496546700
1088110 0719210 A 000000000000GB 00001643982200
1088110 0727871 A 000000000000GB 00000083008900
9010163
The first line needs to go into all the rows, and the last row needs to be skipped. Remaining can be loaded normally. I think this would take multiple loads. Can anybody please help.
TIA

here i am sending a control file sample which use the when clause
in sql loader
load data
infile 'load_4.dat'
discardfile 'load_4.dsc'
insert
into table sql_loader_4_a
when field_2 = 'Fruit'
field_1 position(1) char(8),
field_2 position(9) char(5)
into table sql_loader_4_b
when field_2 = 'City'
field_1 position(1) char(8),
field_2 position(9) char(5)
)

Similar Messages

  • Can you restore a project from a single file

    Using Windows XP / RH8 & RH7 / RSC 3.1
    Is there a single file that lets you restore a project?   My co-worker believes this is the case, but I can find nothing in the RH Help, or on this forum using a search term of "restore project", "restore from file", "file types" etc.
    I can't find the Help page that has the explanation of each file type, which used to be easy to find.
    What we are looking for is an equivalent to the FHB file in ForeHelp.  You can restore the complete project from that one file.
    I have tried a dozen searches on the forum and get no reponses for anything.  Is search even working?
    Any info you can provide will be greatly appreciated.
    Regards,
    Joe

    There is no single file that restores the source project. You can reverse engineer a CHM and get close but I don't think that is what you are looking for.
    The only single file method is a zip of your project!
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • HT5557 how can you remove all books from books purchased file

    how can you remove all ibook from purchased file

    When I connected my iPhone, it automatically synced right away. I did click on the iPhone button and saw the contents of my iPhone including the Books. When I clicked that 'Books' button. But since the book in question was not on my iPhone, it did not show up in the list so I could not select it like you suggested. Therefore I could not sync that book to my iPhone. Thanks for the help though.
    The good news is I did manage to get the book on to my iPhone.
    When her book came out for preorder about a year or two ago, I looked for it in the iTunes store and preordered it. About a week after it came out, I found what was basically the same book for a dollar more. ($7.99 and $8.99) I figured there must be something additional (features) in the $8.99 book. So I bought it too. As far as I could tell though, they were exactly the same. So I decided to hide one of them so they would not both show up in my Library. Anyway, I went to my iTunes/iBooks account and managed the hidden books area. I unhid the Demi book and then it showed up in my iCloud to download on my iPhone. Now they are both on my computer so I need to figure out which one is the other one and hide it. So then I can delete it from my computer just have the one that is on my iPhone on both systems. But at least I found a way to get a copy on my iPhone.

  • Can you import a master from one Muse file to another?

    I've got upload space through Comcast, and my homepage and other material are there.  (home.comcast.net/~gregfisk/)
    But I have another site that I uploaded there through Dreamweaver a year ago.  I'd like to update it with Muse.  (www.caption-ator.com)
    But the thing with Muse is, when it exports a site to HTML, it defualts the home page to 'index.html'.  In this case, the caption-ator site info (made with muse) would over-write my main web page.  The same goes for any files that share the same file name, like 'site global.css', and 'sitemap.xml'.
    So I guess I should take the site info from the caption-ator Muse file, and rebuild it in my personal web page. So there will (theoretically) be no conflicts in the file names, and can all be uploaded safely.
    Rather than rebuild the whole Caption-ator muse built site in the Muse file for my personal web  page - is there any way to take a Master page from one Muse file, and import it to another?  That would be a HUGE time saver.  My first instinct would be to take the Muse tab for my personal web page, and the Muse tab for the Caption-ator web page, then drag and drop the Master from the Caption-ator page to the personal web page.  But Muse doesn't seem to allow for tabs to be kept separate like that.
    Any advice is apprecaited.

    If you still have the .muse file for the template you want you can open it up in Muse 'Select All' --> Copy.
    Open your destination blank template and paste it. You can have bothe muse files up in Muse at the same time.

  • Can you skip the overview from HRMSS_A_CATS_APPROVAL

    Hi all
    I would like to configure the WDA application HRMSS_A_CATS_APPROVAL using the application configuration HRMSS_AC_CATS_APPROVAL in such a way that it is only the detailed view that is used. The overview should be omitted entirely as the users are only interested in viewing the detailed registrations and to be able to approve/reject/resubmit those.
    Does anybody know if this is possible?
    Best regards,
    Martin Søgaard

    Firstly I have not done this myself but if I were to do it I would follow the following steps and do a bit of experimenting in se80.
    1. Config id for your mss cats approval is HRMSS_CC_CATS_APPROVAL
    2. copy that into z-config id.
    3. go into the change mode
    4. you have a few 'pages' inside this config id like --> page main, page single item, page detaildialogue and page process dialogue.
    5. remove the ones you dont want and test it...
    6. mind you .. you will need a bit of fpm in wda understandiong... but if you are a techie should be a cake walk,...
    logically what you want to do should be possible just needs a bit of getting your hands dirty and playing around a bit.
    pls let us know how you went aout this in detail
    cheers

  • Can you import form responses from one responses file to another? I know you can export...

    I have a distributed form with a responses file that has six responses in it. Somehow the distribution got cut off and I had to set up a new distributed form and a new responses file. I was able to export the six old responses to a .csv file, but have not found a way to IMPORT the .csv file into the new responses file.
    "Add" does not work-- it is looking for PDF files only. Does anyone know a way to import those 6 responses into my new responses file? The distributed form did not change in any way, so all of the fields are still exactly the same.
    I can create a master portfolio and just add the two portfolios together, but they just remain as file icons within the portfolio and I need the data to be inline together in one file.
    Thank you very much.

    If you still have the .muse file for the template you want you can open it up in Muse 'Select All' --> Copy.
    Open your destination blank template and paste it. You can have bothe muse files up in Muse at the same time.

  • Can you install Windows 7 from an *.iso file on the Bootcamp partition?

    G'Day Everyone,
    I have an ISO disk image on my Mac hard drive. (en_windows_7_professional_with_sp1_x86_dvd_631025.iso)
    Has anyone had a successful experience installing Windows 7 from an ISO disk image rather than from an installer disk?
    If so, what's the process?
    Thanks and Cheers,
    Rich

    I'm running Boot Camp 3.0.4 on Mac OS 10.6.8
    Here's what I see:
    Screen One
    Screen Two:
    Screen Three:
    I don't see the screen you shared!! :-(
    What version of Boot Camp Assistant are you running? What Mac O?
    Thanks & Cheers,
    Rich

  • How can you disable Adobe Reader from opening a file right after you save it as a pdf?

    Hi,
    I often save word files as pdf files and right after I save them as pdfs it opens the file in adobe reader. How can I disable this?
    Thanks

    Ahh, but that's the design function of any PDF viewer add-on to a browser.
    To avoid -- Use the browser feature that saves a file to the local machine.
    Then open the file with the appropriate application.
    If your machine/device does not support this then you'd want to change to one that supports what you want eh.
    Be well...

  • If you have reinstall your win on your pc, how you can deouthrized your last pc from itunes?

    if you have reinstall your win on your pc, how you can deouthrized your last pc from itunes?

    If you can, open iTunes on your PC, go to Store in toolbar and select deauthorize this computer. Shut down iTunes and reinstall your OS.
    If you can't access your iTunes account on your PC, you'll have to reinstall Windows then install iTunes again. Log into your iTunes Store account within iTunes itself and clear all authorized computers, then authorize each computer individually again.
    Hope this helps

  • Sql loader does not skip header rows from the second infile

    Hi
    I am new to Sql Loader and trying to figure out a way to load data into the table from 2 files which have different data in the same format. The files get successfully loaded into the database with just one glitch:
    Its skips first 2 rows from the first file however it takes first 2 rows from the 2nd file which I do not want. Can anyone help me with this issue? How can i restrict loader from picking up the 2 header rows from the second file as well?
    given below is the content of the control file
    OPTIONS ( SKIP=2)
    LOAD DATA
    INFILE 'C:\loader\contacts\Italy_Wave11_Contacts.csv'
    BADFILE 'C:\loader\contacts\Contacts.bad'
    DISCARDFILE 'C:\loader\contacts\contacts.dsc'
    infile 'C:\loader\contacts\Spain_Wave11_Contacts.csv'
    BADFILE 'C:\loader\contacts\Contacts1.bad'
    DISCARDFILE 'C:\loader\contacts\contacts1.dsc'
    Truncate
    into table V_contacts_dump
    fields terminated by ',' optionally enclosed by '"'
    trailing nullcols
    (ASSISTANT_EMAIL_TX,
    ASSISTANT_NM,
    ASSISTANT_PHONE_TX,
    BUSINESS_AREA_CD,
    BUSINESS_EMAIL_TX,
    BUSINESS_FAX_TX,
    BUYER_ROLE_CD,
    COMMENTS_TX,
    COUNTRY_CD,
    COUNTY_STATE_PROVINCE_CD,
    DATE_OF_BIRTH_DT,
    DO_NOT_CALL_IN,
    DO_NOT_EMAIL_IN,
    DO_NOT_MAIL_IN,
    DOMESTIC_PARTNERS_NM,
    FIRST_NM,
    FULL_NM,
    GENDER_CD,
    INTERESTS_CD,
    LAST_NM,
    MIDDLE_NM,
    MOBILE_TX,
    OFFICE_PHONE_TX,
    OWNER_PARTY_EMAIL,
    PREFERRED_CONTACT_LANG_CD,
    PREFERRED_CONTACT_CD,
    PRIMARY_CONTACT_IN,
    REFERRED_BY_TX,
    SALUTATION_CD,
    STAC_SRC_ID_TX,
    STAC_STDS_SRC_ID,
    STCN_SRC_ID_TX,
    STREET_TX,
    STREET2_TX,
    STREET3_TX,
    SUFFIX_TX,
    TITLE_CD,
    TOWN_CITY_TX,
    ZIP_POSTAL_CD_TX )

    It would be possible to call the loader twice with only one input-File at each run.

  • Can you get values back from a stored procedure via OUTPUT parameters?

    Can you get values back from calling a stored procedure via OUTPUT parameters/variables? I call the SP via a SQL statement from a script either in a WF or DF.
    I thought I read some reference that DI could not get the values from OUTPUT parameters but I could not find it again (don't know if it is in any of the documentation or referred to in a forum.
    I did try a couple of tests but it did not reutrn any values via OUTPUT. But before I give up I thought I'd see if you could and maybe I needed to change something.

    This isn't exactly an answer to your question, but I'll point out that, given that you're resorting to a SQL script in the first place, there's no reason you can't also turn the output parameters into a regular result or record set. (The following uses T-SQL, although I think it's pretty generic.)
    declare @param1 int, param2 varchar(100), @return int;
    exec @return = proc @param1 = @param1 output, @param2 = @param2 output;
    select @param1 as param1, @param2 as param2;
    That is, to get from output parameters to a "regular" output from the SQL script isn't much of a leap...
    Jeff Prenevost
    BI Consultant
    Ann Arbor, MI

  • HT202213 When using home sharing, can you copy music permanently from an iTunes library to an iPod touch?

    When using home sharing, can you copy music prmanently from a iTunes library to an iPod touch? Is it possible when home sharing music from my Mac to an iPod touch, can you copy the shard music on the ipod touch in to the ipods library?

    Not that I have found via a Google search

  • Can  you move your notes from one iphone to another and how?

    Can you move your notes from one iphone to another and how?

    You can do this a couple ways.  If you are using MobileMe, notes is one of the options for synchronization and that would be automatic.  Another way is to backup your iphone to iTunes, this backs up essentially all the information on your phone (except for music) and if you restore the other iphone to the image of the original your notes will be transfered.

  • HT202213 can you setup home sharing from your iPad ?

    can you setup home sharing from your iPad ?

    You can set Home sharing on the iPad by adding your Apple ID in the appropriate area.
    Settings->Music->Home Sharing
    But you still need a computer with iTunes from which to share the library.  You can't share libraries between iDevices.

  • How can you move the objects from one server to another?

    how can you move the objects from one server to another?

    Hi,
    Collecting objects for Transporting
    1. rsa1->transport connection
    2. left panel choose 'object type', middle panel choose 'infocube' and 'select objects'
    3. then choose your infocube and 'transfer'
    4. will go to right panel, choose collection mode 'manual' and grouping only 'necessary objects'
    5. after objects collection finished, create request
    6. If they are $TMP, then change the package.
    7. When you click the Save on the change package, it will prompt for transport. Here you can provide an existing open transport request number, or if you like here itself you can create a new one.
    8. You can check the request in SE09 to confirm.
    Releasing Transport Request  
    Lets say you are transporting from BWD to BWQ
    Step 1: In BWD go to TCode SE10
    Step 2: Find the request and release it (Truck Icon or option can be found by right click on request #)
    Note: First release the child request and then the parent request
    Steps below are to import transport (generally done by basis )
    Step 1: In BWQ go to Tcode STMS
    Step 2: Click on Import queue button
    Step 3: Double Click on the line which says BWQ (or the system into which transport has to be imported)
    Step 4: Click on refresh button
    Step 5: High light the trasnport request and import it (using the truck icon)
    Transport
    http://help.sap.com/saphelp_nw2004s/helpdata/en/b5/1d733b73a8f706e10000000a11402f/frameset.htm
    http://help.sap.com/saphelp_nw70/helpdata/en/0b/5ee7377a98c17fe10000009b38f842/frameset.htm
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/media/uuid/224381ad-0701-0010-dcb5-d74236082bff
    Hope this helps.
    thanks,
    JituK

Maybe you are looking for