Hw to skip first field of input file in ctl file and map other fields- cols

I need to write a ctl file where in my input file has 3 fields by comma separated.
My table has 2 columns. In my ctl file I am using
LOAD
INFILE *
TERMINATED BY ','
COL1 need second field in the file
COL2 need third field in the file
Not sure how to skip the first field.

Not sure abt it as
load data
infile *
into table [table name]
terminated by ','
(COL1 has to be filled wth second field of the data file,
COL2 has to be filled wth third field of the data file )
i need to skip first field of the data file.

Similar Messages

  • Output file as a text file with tab delimited and fixed length fields

    Hi all,
    I have developed a custom report which outputs an excel file on the user desktop who executes that report.Now i need to create an additional (second) excel file with almost the same data as the first file.
    Im using the FM GUI_DOWNLOAD to create the file.i need have the 2nd file as txt file(seperated by space/tab delimited) and also i want the fields to have fixed length.For this format of the file,what parameters do I need to pass to the FM ?
    BR,
    SRM Tech.

    Thanks for the prompt reply.
    Also in the sel screen,Im entering the path where  the o/p file needs to be downloadede.g. C:/Output_folder/Output.xls...Now if I need a text file,do I need to give the fielname as C:/Output_folder/Output.txt.?

  • How do I make a form field validate that it is the sum of two other fields?

    Hi there,
    I am creating a form, and I would like one of the fields to validate by making sure that this field is the sum of two other fields in the form.  Does anyone have any ideas on how to go about this?  I know I'll need to run a custom validation script, but I'm not sure where to begin - I've never done one for validation before.
    Thanks for any help!

    OK, here's a sample script that I hope will clearly demonstrate the general approach. It is intended to be the custom Validate script of the field that the user enters that value that is supposed to be equal to the sum of the two others.
    // Custom Validate script
    (function () {
        // Get the value that the user entered
        var sVal = event.value;
        // If it is blank, do nothing else
        if (!sVal) {
            return;
        // Convert string to a number
        nVal = +sVal;
        // Get the values of the fields, as numbers
        var v1 = +getField("text1").value;
        var v2 = +getField("text2").value;
        // Add them together, rounding to two decimal places, converting to number
        var sum = +util.printf("%.2f", v1 + v2);
        // Compare entered value to the sum of the other two fields
        // Alter the user if they do not match
        if (nVal !== sum) {
            app.alert("The value you entered does not equal the sum of text1 and text2. Please correct.", 3);
            // If you want the entered value rejected, include the following
            event.rc = false;
    Replace "text1" and "text2" with the actual field names.

  • Auto-fill calender date and validate other fields depending upon selected date for infopath forms

    I have a calender box in infopath form which i want to autoselect when user opens the form..Ex..i am opening form on 14th march the calender should show as 19th march and also i have to perform few validation and action such as if i am selecting date with
    more than 5 days gap should open other field which is a dropdown..How can i perform this..

    Do you have Excel Services? if so, this article may be of use to you:
    http://sergioblogs.blog.co.uk/2013/01/08/infopath-2010-and-excel-services-in-sharepoint-15407321/
    You can configure an excel workbook to validate if a date is a working day and then use formulas to workout the working date for 5 days after the date you enter, then link your InfoPath form to connect to the excel workbook and return the result of your
    calculation.
    Regards
    Sergio Giusti
    http://sergioblogs.blog.co.uk/
    Whenever you see a reply and if you think is helpful, click " Vote As Helpful". And whenever you see a reply being an answer to the question of the thread, click "
    Mark As Answer".

  • Utility to convert ASE  fmt files to ctl files for sql*loader

    Does anyone have a utility to convert bcp format files to oracle ctl files for use with sql*loader?

    Hi,
    The Oracle Migration Workbench will produce both BCP and the equivalent Oracle .ctl files for all tables in a database.
    Regards
    John

  • File Adapter - Skipping first row (header row) in a csv file

    How can I skip processing the first row in BPEL? I have a csv file and the first row has column header that I should not process.
    Thanks

    Hi,
    Use nxsd:headerLines="1" in the declaration section see the sample below
    Name,Street,City,State,Country
    ABC Private Limited, Street 1, Bangalore, Karnataka, India
    XYZ Private Limited, Street 2, Bangalore, Karnataka, India
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
                xmlns:nxsd="http://xmlns.oracle.com/pcbpel/nxsd"
                targetNamespace="http://www.oracle.com/ias/processconnect"
                xmlns:tns="http://www.oracle.com/ias/processconnect"
                elementFormDefault="qualified"
                attributeFormDefault="unqualified"
                nxsd:encoding="US-ASCII"
                *nxsd:headerLines="1"*            nxsd:stream="chars"
                nxsd:version="NXSD">  <xsd:element name="AddressBook">
        <xsd:complexType>
          <xsd:sequence>
           <xsd:element name="Address" minOccurs="1" maxOccurs="unbounded">
             <xsd:complexType>
               <xsd:sequence>
                 <xsd:element name="Name" type="xsd:string" nxsd:style="terminated"
                    nxsd:terminatedBy="," >
                  </xsd:element>
                 <xsd:element name="Street" type="xsd:string" nxsd:style="terminated"
                    nxsd:terminatedBy="," >
                 </xsd:element>
                 <xsd:element name="City" type="xsd:string" nxsd:style="terminated"
                    nxsd:terminatedBy="," >
                 </xsd:element>
                 <xsd:element name="State" type="xsd:string" nxsd:style="terminated"
                    nxsd:terminatedBy="," >             </xsd:element>
                 <xsd:element name="Country" type="xsd:string" nxsd:style="terminated"
                    nxsd:terminatedBy="${eol}" >
                 </xsd:element>
               </xsd:sequence>
             </xsd:complexType>
           </xsd:element>
          </xsd:sequence>
        </xsd:complexType>
      </xsd:element>

  • Can I auto-populate fields in a pdf form based on responses in other fields (using Acrobat XI PRO)?

    I am creating a fillable pdf form using Acrobat XI Pro and would like to be able to auto-populate text fields in one section of the form based on responses entered by respondents in an earlier section.  Is this possible?  If so, would it function for respondents using Adobe Reader to complete the form?
    Many thanks,
    Andy

    Thanks, George!  In the form I am creating, I ask respondents to identify a number of organizations that they work with.  For example, I ask "Please list up to ten organizations" and then I provide ten text boxes for organizations 1-10.  I then ask a series of follow up questions (radio buttons, check boxes, and rating scales) about each organization.  I would like to auto-populate the fields of those follow up questions with the names of the organizations that the respondents had written.  Does that make sense?  Will this require JavaScript?  My hope is to avoid complicated scripts that may give respondents technical problems with the form.  Thanks again,
    Andy

  • Division field Set as mandatory but it is effecting to other fields in sale

    Hi all.
    I want to set division field as mandatory field at material master creation..
    I have made Division(MARA-SPART) as required option for MM01 in field selection.
    But the problem is, if I set Division as mandatory simultaneously Setup time,base quantity,shipping process time, in Sales:General view are set as mandatory automatically..
    How can i set only division as mandatory at Basic view in material creation..
    plz help me..
    thanks and regards
    ramesh reddy

    In OMSR change the  Field sel. group  for MARA-SPART to new no. say 210 , Use this Field sel. group (210)  in OMS9 to achieve your requirement.

  • I purchased Acrobat pdf 21/11/14 and after adding 2 files from my documents folder (both pdf files) one is printable and the other cannot be printed as the print option on the control bar does not function.I need an email address for support now

    I purchased adobe acrobat 21/11/14 I am already having problems relating to printing and creating a pdf document. I DO NOT want to waste my time reading a multitude of FAQ's I want a direct contact with a person actually in support for Adobe to be able to communicate by email and not automated messages. what is the email address for Adobe support please ?
    Andrew Morris this message dated 21/11/14 London time 14:13

    Can any member of the support team please contact me now ? My email: [email protected]

  • Skip first screen

    hi all,
    i have a 'ztcode' with obligatory fields. i want to call 'ztcode' from another program using the following:
    call transaction 'ztcode' and skip first screen.
    is there a way to avoid error since obligatory fields will not be filled up if above code is executed?
    thanks,
    sid

    hi all,
    thanks 4 d reply. submit is ok. right now im trying to learn the set parameters statement. can u tell me exactly how it works by example. i can't seem follow the sap help documents. in my report program 'ZTCODE' i put this:
    parameters p_maktx like makt-maktx memory id pmakt
                      obligatory.
    and then at another program, 'ZCALLER', i called 'ZTCODE' which points to my program, as follows:
    set parameter id 'pmaktx' field 'REM'.
          call transaction 'ZTCODE'
            and skip first screen.
    i ran the 'ZCALLER' and as soon as it called 'ZTCODE' the program stops with the message 'make an entry in all required fields'. can u tell me what i missed?
    thanks,
    sid

  • Report to a PDF file with Ole Obj and codebar fields

    Im writing a report with some ole objects (images) and a codebar Field. When I run the report saving the result to a PDF file the Ole objects and the codebar fields doesnt appears in it. But, when run it directly in the report builder it does appears. Some idea about it? I would apreciate it.
    Luis

    You mean a barcode? That is a font, not an OLE object. If you have the font installed on your PC, you can have barcodes in your pdf report.
    PDF also has the possibility on embedded fonts, so the font doesn't have to be on every PC. There are several threads about this. Search this forum for 'embedded font', e.g. Font embedding in reports

  • Mapping authorization field IDs to field names (description)

    Hello Folks,
    I am trying to map the authorization field (technical ) names to field descriptions (long names)
    Backgroud: I do not have enough input from the functional team yet on restrictions at data level. I have pulled out a list of orgfield values from USORG. Now i am trying to map the other authorization fields to their descriptions.
    Table AUTHX only maps the field to the data element and while table DD04V lists the long field names for a given data element, i need to drill down before i get the description and thats for each fieldname / data element.
    Question: Is going through SU20 for each object the best way to map the field description or is there a better way to map the auth field IDs to their description. And i mean for multiple input as there are scores of auth fields...
    Regards,
    Prashant

    Thanks Jurjen, that helped a lot.
    I downloaded the authorizations into an excel tough, (did not use uncoverted format).
    Solution in Excel: Since there are a lot of blank cell values
    -- name the columns clearly
    create a pivot table
    In the pivot select only the field technical name and field description columns
    For some reason when the other columns are selected, everything is going blank for values
    I am sure others are better with Excel than i am
    Regards,
    Prashant

  • Acrobat XI Windows 7 - unable to (copy and) paste form fields to a different pdf.

    To maintain a consistent appearance and function in the forms I create for various departments, I copy a few form fields  (text, checkboxes) from an unrelated Acrobat PDF. Then I paste those fields into a different PDF document that I am making fillable.
    I do this because Acrobat does not allow setting a default for certain attributes when creating form fields, i.e. an unchecked scroll option, a default font other than Helvetica (in Acrobat 8, 9, and X). Plus it is time-saving to copy and paste fields that are the same in another PDF, like name, address, phone. etc.
    We just updated to Acrobat XI and Windows 7 and now I cannot paste copied fields onto a different PDF.
    Using "replace pages" is not applicable as I am pasting to an entirely different form and copying form fields with the settings I use. 
    Is this a glitch or is something new that was not in Acrobat 8, 9, and X?
    Also, question regarding this forum entry -  http://forums.adobe.com/message/5638333#5638333 - which is somewhat different from my current question.
    The PDF creator could not paste copied fields on other pages of the same PDF. Was this ever resolved so that copy and paste worked as it has for the last 3 versions of Acrobat?
    Thanks!
    Joanie

    Gilad:  You're right: when the fields are different, such as a checkbox and a text field, and you try to title them the same, Acrobat gives you a message. I received no messages, the field names are not the same or I missed one and Acrobat is no longer messaging about it.
    My question is different. Acrobat XI will not let me paste any field copied from a different PDF.  I've been doing that for 5 years in three different versions.  Maybe Acrobat XI has a new process for that, which I could not find in Acrobat help. Maybe it's because all forms now have extended rights automatically in Acrobat XI and there is another method to copy common fields to other PDFs.
    Any thoughts about the new Acrobat XI? It's different in many good ways, but different.
    Thanks for your ideas.

  • After inserting into one field using LOV,  how to populate other fields ?

    Hi,
    I have a BLOCK based on a table (ex:EMP)
    And I have a LOV on the field(item): EMPNO.
    When I select one EMPNO from the LOV (when the field:EMPNO is populated with an emp number), the other fields should be populated
    Can some body let me know, which trigger I need to use and .......
    Thanks

    while creating LOV at empno you can this query
    select empno,ename,deptno from emp
    and define return item for each column.
    You can populate LOV manually at New_instance_item or Key_next_item
    of item empno.

  • Viewobject transcient attribute update value base on other field

    Dear All,
    I have a viewobject with a transcient attribute which is calculated based on some other attributes queried from the DB. I have set the default value of the transcient field using the express:
    adf.object.viewObject.getFTType()
    and the getFTType() in the viewObjectImpl will return a string base on other fields' values;
    Then I test it in the AM Model tester and it looks fine. However, when I drag this VO to a Table in the page, the transcient field column always showing the same value on every rows instead of showing different values base on the other fields on each row.
    I've added a button to print the selected row values in the table and after I click on the button, the transcient field column is updated according to my selected row other fields' values and it updates the value for the whole column instead of only the selected row.
    I wonder if there is sth wrong I did? Thanks a lot.
    The getFTType() method is pasted here:
    public String getFTType() {   
    Row row = this.getCurrentRow();
    String ftType = "";
    try {
    if (row.getAttribute("TxType").toString().equals("99")) { // all non-GJs
    if (row.getAttribute("InputFutureTrfDate") != null) { // Future type FT
    if (row.getAttribute("TiMToMYorn") != null) {
    if (!row.getAttribute("TiMToMYorn").toString().toLowerCase().equals("y")) {
    if (row.getAttribute("TrfMethod").toString().equals("5")) {
    ftType = "ECI FT (Future)";
    } else {
    ftType = "Misc FT (Future)";
    } else {
    ftType = "Misc FT M to M (Future)";
    } else {
    if (row.getAttribute("TrfMethod").toString().equals("5")) {
    ftType = "ECI FT (Future)";
    } else {
    ftType = "Misc FT (Future)";
    } else { // non-future FT
    if (row.getAttribute("TiMToMYorn") != null) {
    if (!row.getAttribute("TiMToMYorn").toString().toLowerCase().equals("y")) {
    if (row.getAttribute("TrfMethod").toString().equals("5")) {
    ftType = "ECI FT";
    } else {
    ftType = "Misc FT";
    } else {
    ftType = "Misc FT M to M";
    } else {
    if (row.getAttribute("TrfMethod").toString().equals("5")) {
    ftType = "ECI FT";
    } else {
    ftType = "Misc FT";
    if (row.getAttribute("TxType").toString().equals("11")) {
    ftType = "GJ Interest Income";
    if (row.getAttribute("TxType").toString().equals("12")) {
    ftType = "GJ Bank Charge";
    if (row.getAttribute("TxType").toString().equals("13")) {
    ftType = "GJ Others";
    } catch (Exception e){
    e.printStackTrace();
    return ftType;
    }

    Did you set recalculate on the field you are basing its value on.
    See http://docs.oracle.com/cd/E16162_01/web.1112/e16182/bcintro.htm

Maybe you are looking for

  • In Blurb trying to upload an album that I have prepared in Adobe, but I can't find any Adobe files that way.

    I am in Blurb, trying to upload an album that I have prepared in Adobe ELements 10.  To upload I need to navigate in my computer to whatever Adobe folder has the album, but I can't find any Adobe files that way.  So I wanted to save the album to an e

  • Importing multiple column names to Logical Model

    I have approximately 2,000 column names to import into a new logical model and create my glossary. The names are in currently in .xls format. Is there an easy/efficient way to do this or must I enter each into the logical model attributes? Maybe a wa

  • How to connect to a web service??

    I am banging my head on how to produce the appropriate code to connect to a web service I created locally. I have a local web service: http://localhost:8500/cfc/getprojects.cfc?wsdl I am trying to figure out how to write a correct <mx:WebService> to

  • How to parse text and build object node

    Dear All, I have a text file as following. I have tried with one node to parse it and store the information. But I can not parse when I have put multiple node. Could you please suggestion me or help on this. How can I store information according node

  • Battery problem after upgrading to os x 10.6.7

    hello there, i'm new to this forum. i've bought my MBP at feb 2011. everything was working fine before i upgraded my os to 10.6.7. i used to get very good battery performance. depending on my use, the battery indicator showed sometimes upto 10 hours