How to use RECNUM special field in a file bulk load interface (sqlldr)

Hi,
I'm trying to load an ordered set of full text lines from a flat file using Sql Loader 11.2 with ODI 11.1.1 bulk LKM (LKM File to Oracle - SQLLDR).
I have to keep track of each line number in a separate target table column NUM_SEQ and feed it with sqlldr RECNUM special field.
I haven't found any other way to do that but to tweak manually the generated sqlldr .ctl control file (bad but it works) :
NUM_SEQ RECNUM,
FULL_LINE CHAR(4000)
I've tried to map "RECNUM" as an expression in the map tab of the loading interface but the column itself gets discarded at .ctl generation.
I haven't found any mention of RECNUM in the whole ODI documentation, neither on this forum nor the Web.
Using an internal Oracle sequence in the subsequent steps of the ETL breaks the garantee of ordered lines.
Any hint ?

You will have to enhance the KM so that this clause gets added to the CTL file each time.
Add an Option to the KM in which you can specify name of the column that you want to act as line_number.
And then in the KM, change the "Generate CTL File" step and add
*<%=odiRef.getOption("RECNUM") %> RECNUM*
after the call to the <%=odiRef.getColList(" ") %> API
So, this will add the RECNUM column to the list of the columns generated.

Similar Messages

  • How to use the special character pallet in Maverics with Illustrator

    How to use the special character pallet in Mavericks with Illustrator - I follow the help instructions, but the pasted in object looks like a rectangle with an X, I have done this before, in earlier versions of AI, but cannot make it work in CS6.
    In fact, I can open an old AI file (CS4), copy the character (a graphic symbol, also taken from the special character set), paste it in, and it works, but can't do this with a new one, from the drop down, Show Character Viewer, in the Mavericks menu bar.

    The box with an X indicates the font you are using does not have the glyph you are trying to paste. Try a different font.

  • Okay so I set up my Time Capsule already and is now backing up 2 of my iMacs. Works great. What I want to know is how to use the TC to directly store files? I want to do this to delete some files but still have them on the TC for future reference..

    Okay so I set up my Time Capsule already and is now backing up 2 of my iMacs. Works great. What I want to know is how to use the TC to directly store files? I want to do this to delete some files on iMac 20inch but still have them on the TC for future reference..eg some movies on iTunes. I want to directly save them on the drive so I can delete them from iTunes and gain some storage. (Ps on iMac 20 inch (it's almost full - 320 GB) when I enter time machine, a tab comes up on finder which reads "Time Machine backups" it's able to be ejected like a disc or a connected device. On the iMac 20 inch, I dragged some files onto there as if using it like a hard drive. Is this the correct method? Then I went to my 27inch iMac and saw the "Time Machine Backups" hoping to see the files I dragged from the 20inch iMac. But the files were not there except a folder that said "Backups.backupdb". Can someone help me?

    It's not a good idea to use a network disk for both Time Machine backups and other things.  By design Time Machine will eventually consume all the space on its output disk, which will then cause problem for your other files.  I'd store those other files on an external disk connected to the Time Capsule.  The problem with that is that Time Machine will only back up files that are local to your Mac.  That means that you'll only have one copy of the files on or attached to your Time Capsule.
    By the way, you've been misled by poor field labeling on this forum into typing a large part of your message into the field intended for the subject.  In the future just type a short summary of your post into that field and type the whole message into the field below that.

  • How to search a special string in txt file and return it's position in txt file?

    How to search a special string in txt file and return it's position in txt file?

    I just posted a solution for a similar question here:  http://forums.ni.com/ni/board/message?board.id=170​&view=by_date_ascending&message.id=362699#M362699
    The top portion can search for the location of a string, while the bottom portion is to locate the position of a character.  Both can search for a character.
    The position of the character within the file is displayed in the indicator(s).
    R

  • How to use Xerces to validate an XML file against a DTD

    Hi, can anybody tell me how to use Xerces to validate an XML file against a DTD. its urgent. post some sample code. it would be helpful for my project. isupposed to use SAX parser(Xerces)
    Thanx in advance

    Come on, I googled "xerces validate" and the first link is the Xerces FAQ:
    http://xerces.apache.org/xerces-j/faq-general.html
    And of course "how to validate" is a Xerces FAQ. Help yourself by doing a little research instead of waiting for other people.

  • How to use Connection Pool in ADF ear file creaion from jDev 10.1.3

    Hi,
    We are developing big application in ADF with 10 different modules. We are creating ear file with data source setting.
    How to use connection pool while creating ear file from jDev. Connection pool is alreday created in Application Server 10g.
    What all the setting we need do to make use of connection pool while creating ear file jDev.
    Thanks

    User,
    If you are using ADF Business Components, you can right-click each application module, select "configurations" and edit the configuration you are using. On the initial page of the configuration dialog, you can specify to use either a JDBC URL or a Datasource - you just need to choose Datasource and then provide the name by which to access it.
    John

  • How to use a parameter field value as a substring in a "like" statement?

    Hi all,
    I'm trying to use a parameter field in a Record selection formula where the parameter field value would be a substring of the data stored in the field.
    My parameter field (SlctResearcher) is constructed as follows:
    Type: string
    List of Values: static
    Value Field: (Reports) RptAuthors
    (in Value Options) Allow custom values?: True
    {Reports.PubDate} in DateTime (2009, 04, 01, 00, 00, 00) to DateTime (2010, 03, 31, 23, 59, 59) and
    {Reports.RptAuthors} like "*{?SlctResearcher}*"
    When I hit F5 to generate the data, I get no results (and the parameter prompt field does not even come up...)
    If I modify the formula to put a hard-coded string, like
    "*Jones*"
    after the 'like', I get results (all the reports where "Jones" is a substring in the RptAuthors string.) If I modify the formula to just use the parameter field without the quotes/stars like:
    {Reports.PubDate} in DateTime (2009, 04, 01, 00, 00, 00) to DateTime (2010, 03, 31, 23, 59, 59) and
    {Reports.RptAuthors} like {?SlctResearcher}
    I do get the parameter prompt field, but still no results even if I put in a valid substring value (since it is not searching for a substring anymore...)
    How can I do this?
    Thanks,
    Will

    1st thing... Make a copy of your report before doing anything!!!
    To use a SQL Command, you'll want to open the Database Expert and look at the Current Connections. Expand the data source and the 1st option you see is the Add Command option.
    To find the SQL That CR is currently using, choose Database from the menu bar and select Show SQL Query...
    You can copy this and paste it directly into the command window. (If you you can write your own SQL you don't need copy CR's, it's just an option.)
    You'll also want to take not of any parameters that you have, you'll need to add them the the Parameter List of the command as well... be sure to spell them EXACTLY as they are in the design pane.
    Anyway, once the SQL statement is in the Command window you'll be able to alter the WHERE clause to use the wild cards.
    For future reference... What type of database are you reporting against???
    Jason

  • How to use the "Flash Field"?

    Hi Everyone,
    I'm trying to figure out how to use the new "Flash Field" inside my form.
    The form we are working on required the user to interact with the "Flash Field" (i.e., click on the bar on a bar-chart) and the "Flash Field" should return some value (defined in the Flash logic) should be returned to the host (the PDF form) as the FlashField.rawValue, for example.
    BTW: The SWF object that is consumed by the "Flash Field" is built by the Flash Builder latest edition (4.5). So we do have a total control on the logic inside the SWF project.
    The Q here is: What is the possibility to modify my code inside my Flash project so it can expose the SWF object computed value to the rawValue property of the Flash Field?
    Appreciating your collaboration....
    BR,
    Yasser

    Hi,
    Have a look at the Flash object Reference Card and the Flash object examples here: http://assure.ly/rqCuEn.
    Hope that helps,
    Niall

  • HR-How to use dynamic selection fields in prog ..?

    Hii
         I have written a prog to select data pertaining to details of all employees who belong to a particular country . For this i have provided a dynamic selection field for selecting country (through Selection View).But when i am getting all the records for all countries.
                    How to use the dynamic selection fields in program or they behave in the same way as the standard selection given by the LDB .As if we enter a value in the std screen then the GET event acts accordingly .
    Ajitabh Pradhan

    Hi Ajitabh,
    First off, is the Dynamic Selection working? If so, try the following code.. I am assuming, you only want to look at Permanent Address.
    tables: pernr.
    infotypes: 0001,0006.
    start-of-selection.
    get pernr.
      rp-provide-from-last p0001 space pn-begda pn-endda.
      check pnp-sw-found eq 1.
      rp-provide-from-last p0006 1 pn-begda pn-endda.
      check pnp-sw-found eq 1.
      write:/ pernr-pernr,p0001-ename,p0006-land1.
    end-of-selection.
    Regards,
    Suresh Datti

  • How to use a screen-field when applying BADI or User Exit to a T Code

    Hi Experts,
    I need your help on this problem.
    I have created a BADI for the transaction code miro. I have got the Exit name on which the enhancement has to be done. I want to perform a check on a text field (Scrren field name INVFO-SGTXT).
    When my break point occurs i enter INVFO-SGTXT in the field to check the value present in it. But it shows that no such field exists.
    My Basic doubt is how to use a value entered in a text field in a tcode while performing a User Exit or BADI on it.
    Do I have to declare it. If yes please mention how?
    Thanks in advance guys.

    Hi,
    The first question here would be... do you plan on having multiple implementations down the road because if not there really isn't any reason to create a BADI inside the exit.  If that is the case then add the field as an importing parameter in your BADI interface and then you should be able to see it inside the BADI at your break-point.
    Regards,
    Ryan Crosby

  • How to use Bar code field in Item master

    Hi Experts
    I want to know that How to integrate Bar code scanner data with SBO. Bar code contain many information like price, serial no., description etc . For example I want that when I read a barcode by barcode scanner it automatically update itemcode, description , price and serial no.
    Thanks
    regards
    Gorge

    Hello Gorge,
    A barcode would ideally contain only an identification code and not other information. All such information like price, etc. should be fetched from a database, after reading the barcode, and identifying the item.
    You can simply enter the barcode in the Item Master Data and than use the barcode field to identify the item in sales / purchase documents instead of itemcode or itemname.
    Rahul

  • How to use a select field as a tooltip in a report

    Dear,
    i have a customize report based on the statement below
    SELECT '#WORKSPACE_IMAGES#folder.GIF' icon , lower(a.application)label,(a.appli_acronym) acronym,(ap.app_server)host
    FROM app_users ap, applications a
    where a.appli_user= ap.app_user
    and ap.app_server=:P31_LABELVALUE
    and upper(a.application) like DECODE (:P31_SEARCH, NULL,'%', UPPER ('%' || :P31_SEARCH || '%'))
    order by labelHow can i use the second field (a.appli_acronym) as tooltip in my report?
    Thx in advance.
    Celio

    Hi in fact is already use a customize template for my report
    CSS in html header
    <style type="text/css">
    ul.icon-list {
      margin: 0;
      padding: 0;
      list-style: none;
    ul.icon-list li {
      display: inline-block;
      margin: 0;
      padding: 0;
      width: &P31_LABEL_WIDTH.em;
    ul.icon-list li a img {
      vertical-align: middle;
    </style>
    <!-- IE is broken -->
    <!--[if IE]>
    <style type="text/css">
    ul.icon-list li {
       display: inline;
    </style>
    <![endif]-->Icon List template for the report
    in the span balise i have (onmouseover="ToolTip('#TOOLTIP#');">#LABEL#), not appears in the balise 'code'
    <li class="dd">
      <a href="#DERIVED$01#">
        <img src="#ICON#" alt="#LABEL#" />
        <span onmouseover="ToolTip('#TOOLTIP#');">#LABEL#</span>
      </a>
    </li>
    <ul class="icon-list">
      </ul>
    <table>#PAGINATION#</table>I test the following javascript :
    function ToolTip(texte) {
    toolTip_enable(texte,this,texte);
    }When the mouse is over the field i get well the tooltip value i'd like to have but it appears in the bottom of the page always in the same area.
    could someone give me more info about 'toolTip_enable' function?
    Thx in advance.
    Celio
    Edited by: Celio on 10-Feb-2011 04:00
    Edited by: Celio on 10-Feb-2011 04:01
    Edited by: Celio on 10-Feb-2011 04:03
    Edited by: Celio on 10-Feb-2011 04:04

  • How to deal with special character in source file

    Hi experts,
                      i am doing a file to file scenario in which my source file contains many special characters when i am puting this file into moni its going with the special character .My source file is a fixed length file so in content conversion i have specified the file length but due to these special charcters these field lenght is also varing.So please guide me how to deal with these special characters in sender adapter
    regards,
    Saurabh

    you could try using a Java Mapping to change the encoding manually. For that, set the encoding of the OutputFormat of the XML you'll serialize. Try the following code piece for the mapping (inside a try/catch declaration):
    DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
    DocumentBuilder documentBuilder = factory.newDocumentBuilder();
    Document input = documentBuilder.parse(in);
    OutputFormat format = new OutputFormat(XML, "ISO-8859-1", false);
    XMLSerializer serializer = new XMLSerializer(out, format);
    For more details check this guide:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/502991a2-45d9-2910-d99f-8aba5d79fb42

  • How to use multiple table in single control file?

    Hi,
    How to use multiple table and data file in sigle control file? I have a four table and four csv file i mean data file for that. I am running concurrent program to load the data from csv file to custom table. based on my input data file name, it has to take automatically from one control file.
    Can anyone share with me how can i acheive this?
    Thanks

    Hi,
    Can't we acehive like below. I don't this exactly corrcect.
    OPTIONS (SKIP=1)
    LOAD DATA
    INFILE << file name 1 >>
    APPEND INTO TABLE XXCZ_VA_SAMPLE1
    FIELDS TERMINATED BY "," OPTIONALLY ENCLOSED BY '"' TRAILING NULLCOLS
         PARENT_ITEM               "TRIM(BOTH FROM :PARENT_ITEM)"
    LOAD DATA
    INFILE << file name 2 >>
    APPEND INTO TABLE XXCZ_VA_SAMPLE2
    FIELDS TERMINATED BY "," OPTIONALLY ENCLOSED BY '"' TRAILING NULLCOLS
         ITEM_NUMBER               "TRIM(BOTH FROM :ITEM_NUMBER)"
    )Edited by: orasuriya on Sep 14, 2009 3:03 AM

  • How to reve Extra special characters from source file

    Hi all
           I am doing an file to idoc scenario in which i am using SEEBURGER BIC adapter for converting flat file to xml.My input file contain HEADER ,ITEMHEAD AND FOOTER.When i am processing an error is coming extra charcterYP persent before header.While in input file its not visible,it might be some special controll character
    my file is with utf-16 format( little endian) encoding.
    Plz share if u have any idea about the sudden occurence of special character and how to overcome it.
    Regards
    Saurabh Sharma

    sorry, i meant the code for removing the special character.
    Just a quick clarification about what i read in your previous post: that you are using a SEEBURGER adapter and in this adapter there is a module deployed called BIC which does the file to xml conversion.
    So the plan is to insert the custom adapter which will remove the extra space before the BIC adapter in Seeburger adapter right. my only assumption here is that we can add this custom adapter before bic module in Seeburger adapter module tab.
    Basically i dont no whether you have the option of adding a new adapter module in SEEBURGER ADPTER BIC MAPPING DESIGNER just like there is one in File adapter.
    Please confirm

Maybe you are looking for

  • IPod stops when im half way through uploading my songs

    Please help i get through about 100 songs then it just stops i have a 4G 20 Giger. I have tryed everything my problem is like this Ben Vallack1, "iPod stalls when uploading songs, every time", 03:27pm Jul 19, 2005 CDT please help me .

  • Download Flash Player content?

    I have Flash Player 10 & it works great.  I want to know how copy or download what is playing.  I've got a new Braun 790 electric razor.  When I go to: http://www.amazon.co.uk/Braun-System-Electric-Rechargeable-Shaver/dp/B000RNP5B4 - - I have the opt

  • Financial Reporting - PDF has not been configured for this web server.

    When I try a Print Preview of my report, I received this error "PDF has not been configured for this web server". As far as I know, this error is confusing because when I look on my log files I found this: --- FRLogging.log --- [APP: FINANCIALREPORTI

  • Mac mail font issue

    Hi, I just started using Mac Mail. I have adjusted the font size in preferences, yet when I reply to a message, the font appears tiny. It says it is 12 point, so I don't what to increase it beyond that, but it looks more like 8 pt. on the screen. Is

  • Nueva Version Phtoshop Elements 5 para Mac

    Hola, hay alguien que este informado de la nueva versión para Mac de Photoshop Elements V.5, para cuando, la versión profesional es demasiado cara, esta fuera de mi alcance. Saludos