Syntax issue to find a cell.

Hello,
I have a tab in which I need to find the highest number, which I do with the following in A2 in a second tab (which I use to extract the interesting datas of the first one) :
=MAX(tab1 :: K4:Z65)
In the next cell, I need to get the the content imediately above the cell containing the highest number of tab1. I tried this in B2 :
=OFFSET(INDIRECT(A2),-1,0)
But it returns an error. My guess is that INDIRECT(A2) considers only the result of MAX(tab1 :: K4:Z65) and not the reference to the cell containing the highest number.
How can I get the address of the cell to which MAX(tab1 :: K4:Z65) points ?
I've also tried : =OFFSET(MAX(tab1 :: K4:Z65),-1,0) but it doesn't work either, I get that a reference is expected but a number found instead.
Thanks a lot !

Hi Fuomono,
OFFSET requires a cell reference for the first argument. INDIRECT constructs a cell address by reading that address in another cell, or by constructing that address from the contents of one or more cells and optional fixed text in the fomula.
Examples:
A1 contains the text string "B5": =INDIRECT(A1) returns the contents of cell B5
A1 contains the number 6:          =INDIRECT("B"&A1) returns the contents of cell B6
Neither is particularly useful to your situation.
Here's a different way, using OFFSET, MATCH, and MAX to return the value in the cell above a cell containing the maximum value in the specified range. To make the table readable, I've used a smaller table of values:
The maximum value is returned by the simple formula  =MAX(B4:E18)  in A2 of the small table.
Locating the cell above the maximum requires an auxiliary column on Table 1. This column may be hidden.
F4, and filled down: =IFERROR(MATCH(MAX($B$2:$E$18),B4:E4,0)," ")
The formula places a number in each row containing the maximum value in the range. The number indicates the column containing the value in that row. Note that in the example, the maximum (100) appears twice, in column 1 (B) of row 14 and in column 4 (E) of row 18.
In B2 of Table 2, the formula uses the largest value in this column, and its position on the list, to return the value from the cell above the one containing the MAX value.
B2: =OFFSET(Table 1 :: $A$1,MATCH(4,Table 1 :: F,1)-2,MAX(Table 1 :: F))
Note the change in MATCH's third argument: 0 in the first formula, requiring an exact match, and causing an error (caught by IFERROR) if the value in not found, 1 in the second formula, accepting the "largest value less than or equal to the search value" as a match.
The search value is Match's first argument, 4, the furthest right column of the value table.
If the MAX value occurs more than once, the occurrence that is in the column furthest to the right will be chosen. If more than one MAX occurs in the same rightmost column, then the rightmost match that is closest to the bottom of the table will be the one used.
The MATCH function here determines the row offset from the base cell; the Max value in column F determines the column offset. To retrieve the value from the cell above MAX, the row offset must be reduced by 2. Because the base cell is one column to the left of the first column of the value table, no adjustment is needed to the column offset.
Regards,
Barry

Similar Messages

  • Dynamic SQL from within DML - merging syntax issue #2

    Further to my previous thread on a SQL - DML merging syntax issue, I have another problem with multiple conditions in the WHERE-clause:
    vrb _retval decimal
    vrb _val1 text
    vrb _val2 text
    _val1 = 'value1'
    _val2 = 'value2'
    SQL SELECT DIM1_ATTR1 FROM MYSCHEMA.DIM1_DIM WHERE COL1 = :_val1, AND COL2 = :_val2, INTO :_retval
    The above SQL will return NA. If I use the text literals instead of the OLAP variables, the query just runs fine. Also, with a single condition (on COL1 only) the query returns the expected value.
    A note in the help states that OLAP DML objects should clearly be sperated from the rest of the SQL but does not say how. I am using a colon before and a comma after as without them the line would not compile. I could not find any example that would use multiple conditions in the WHERE-clause however the help text indicates that it is possible.
    Please help me, how.
    Regards,
    Csaba
    Windows, Oracle10gRel2 Ver. 10.2.0.1.0 eversion: 84090

    It does work, although I applied the finishing touch by removing the commas as well!
    Thanks a lot! Good job!
    Could you please have a look at issue #1 too? :-)
    Regards,
    Csaba

  • Documaker 12.1 XPath Syntax Issue

    We are moving to Documaker Studio 12.1 from Docucreate 11.0. So, I am importing few forms into 12.1 and doing test runs. I ran into a XPath syntax issue. We use XPath manual triggers to trigger forms and sections.
    In 11.0, the following trigger (use as Search Mask (True/False) in Manual Triggers) works perfectly fine. But it doesn't work in 12.1
    *!/Acord/Bills/Form/[FormNumber='U61']FormNumber*
    In 12.1, I have to remove the "/" present before "[" to make it work - as shown below.
    *!/Acord/Bills/Form[FormNumber='U61']FormNumber*
    Is there a way we can make the old syntax work with 12.1 as well? It would save us from changing thousands of Form and Section Triggers?
    Thank you,
    SGov.

    I suspect the short answer is No. The initial xPath syntax appears invalid as you would not define a slash between the node and the attribute that belongs to the node. The fact that it somehow succeeded was an anomaly that must have been corrected.

  • Help me write command in vba(excel) to search and find special cells based on multiple criteria

    Hi 
    My name is Majid Javnmard , I am using Microsoft Office Excel 2010 and I encountered a problem. I sent you a simple example of my excel file that i want to write a command in vba to search and find special cell and copy the row which special cell is in there
    somewhere , but the problem is how can i find my special cell with multiple criteria or how can i find my all special cells and copy them somewhere !!? 
    Let me explain on file that i sent :
    This file has 4 headers (X,Y,PerturbNumber,Value), the problem is for example : I want write commnd in vba to copy all rows that each of them has (X=12 and Y=13). how can i ? can you help me ?
    My
    file : http://s000.tinyupload.com/index.php?file_id=69742844961096241754
    Many Thanks
    Majid 

    This worked for me, based on your example:
    Sub pMain()
    Dim wsSource As Excel.Worksheet
    Dim wsDest As Excel.Worksheet
    Dim lSource As Long
    Dim lDest As Long
    Dim lLast As Long
    With ThisWorkbook
    'Change to suit
    Set wsSource = .Worksheets("Sheet1")
    Set wsDest = .Worksheets.Add
    End With
    wsSource.Rows(1).Copy
    wsDest.Range("A1").PasteSpecial xlPasteValues
    lDest = 2
    lLast = wsSource.Cells(wsSource.Rows.Count, "A").End(xlUp).Row
    For lSource = 1 To lLast
    'Put the conditions below:
    If wsSource.Cells(lSource, "A") <> 12 Then GoTo linNext
    If wsSource.Cells(lSource, "B") <> 30 Then GoTo linNext
    'If wsSource.Cells(lSource, "C") <> "value" Then GoTo linNext
    'If wsSource.Cells(lSource, "D") <> "value" Then GoTo linNext
    'Conditions were met:
    wsSource.Rows(lSource).Copy
    wsDest.Rows(lDest).PasteSpecial xlPasteValues
    lDest = lDest + 1
    linNext:
    Next lSource
    End Sub
    Felipe Costa Gualberto - http://www.ambienteoffice.com.br

  • Issues with Finder - reinstalling Leopard???

    Hi,
    I'm having some issues with Finder. Sometimes, when I restart the computer, it takes a long time to start Finder. Besides that, every time I want to eject my Time Machine external HD, I need to relaunch Finder. If I don't relaunch it, it never ejects the TM HD.
    Would you recommend reinstalling Leopard, but using the feature to erase everything? When I installed it, I didn't use that feature because I wanted my files/previous programs the way they were before. With a new installation (erasing everything), I'd have to install and configure so many things again and I didn't want that. But now, because of the issues with Finder, I'm thinking about reinstalling Leopard.
    Any suggestions?
    Cheers,
    Mike

    Before you do anything drastic, repost your question in the Finder/Dock forum.
    No, I am not being sarcastic - but you might find that it's a common problem and others over in that forum have a solution or else it might simply be an "issue" that a reinstall will not fix.
    It would be annoying if you reinstalled Leopard and it didn't install properly.
    Until you are sure about the Finder "issue" leave it alone for now.
    Here's the Finder/Dock forum location:
    http://discussions.apple.com/forum.jspa?forumID=1221
    And good luck.

  • Issues with Finder - reinstall Leopard???

    Hi,
    I'm having some issues with Finder. Sometimes, when I restart the computer, it takes a long time to start Finder. Besides that, every time I want to eject my Time Machine external HD, I need to relaunch Finder. If I don't relaunch it, it never ejects the TM HD.
    Would you recommend reinstalling Leopard, but using the feature to erase everything? When I installed it, I didn't use that feature because I wanted my files/previous programs the way they were before. With a new installation (erasing everything), I'd have to install and configure so many things again and I didn't want that. But now, because of the issues with Finder, I'm thinking about reinstalling Leopard.
    Any suggestions?
    Cheers,
    Mike

    Besides that, every time I want to eject my Time Machine external HD, I need to relaunch Finder.
    I haven't used Time Machine, but I wonder if you can temporarily turn it off so you can dismount your external hard drive. Note while your external hard drive that Time Machine is dependent on is not connected, anything you do will not appear on Time Machine, since it is reliant on that external hard drive for source information. The only question I would have, is if you remounted the hard drive is whether Time Machine would be able to recognize what it has backed up to it already?
    Reinstalling Leopard shouldn't be necessary. I would also try to see if you are running low on disk space. Tell us how much space you have free on both internal and external drive out of how much space total?

  • How to resolve the issue with Finder: "The last time you opened finder, it unexpectedly quit when reopening Windows"

    For anyone who is struggling with this issue that simply will not go away, please try:
    1. Fist turn off the mac
    2. Turn on the mac while holding the shift key (safe mode)
    3. Once all logged in click on Finder at the bottom of your screen
    4. Click on Go 5 steps to the right of the Apple logo
    5. Hold the Alt key and click on Library
    6. Open the Preferences folder
    7. Drag 'com.apple.Finder.plist' to yourDesktop
    7. Restart the mac
    That should hopefully resolve it, if not place the plist file on your Desktop back to its original location. Thank you!

    Do a backup.
    Quit the application.
    Go to Finder and select your user/home folder. With that Finder window as the front window, either select Finder/View/Show View options or go command - J.  When the View options opens, check ’Show Library Folder’. That should make your user library folder visible in your user/home folder.  Select Library. Then go to Preferences/com.apple.mail.plist. Move the .plist to your desktop.
    Restart, open the application and test. If it works okay, delete the plist from the desktop.
    If the application is the same, return the .plist to where you got it from, overwriting the newer one.
    Thanks to leonie for some information contained in this.

  • 'How to..use reporting variables in BPS'  syntax issue

    Hi,
    I am implementing the white paper 'How to...use reporting variables in BW-BPS' and I am getting a syntax error in the include YBW_BPS_VAR_READ. The error indicates 'Statement is not accessible' for my line:
    SELECT SINGLE * FROM ybw_bps_var_map
    ybw_bps_var_map being my transparent table as described in the white paper.
    I have never seen such a syntax error, has anyone had the same issue? My code is the one in the white paper.
    Thanks for any help.
    David

    Hi David,
    I have the coding up and running. I have not seen this error before and don't know how to resolve it. If you cut&paste it from the PDF, then maybe some special characters got pasted into the ABAP editor. Try to delete the line and type it in manually.
    Regards
    Marc
    SAP NetWeaver RIG

  • External HD issue. Finder cannot complete the operation because some data..

    Last night I had a drive throw the error "finder cannot complete the operation because some data in "<file>" could not be read or written. Error code-36". I thought it was a bad disk. Then tonight I plugged in a flash drive, formatted it on the machine and now I am getting the same error on that disk as well. Any thoughts???

    Yes, you can have bad blocks or other physical damage on a usb drive, the same as a firewire, or eSATA. Just because you can reformat the drive, doesn't mean the drive is okay. You reformat, yet the problem recurs. That is a sign of a bad drive. If it were an OS issue then the reformat should fix it.
    You might want to check the drives with a utility from Prosoft called DriveGenius It's the "Swiss Army Knife" of utilities, including the ability to repartition "on the fly" (A little scary for my tastes). But Prosoft is a trusted software manufacturer. Downloaded the trial (it has more bells & whistles than you can believe) But the trial will run all hardware tests without the repair feature, and give you a report.
    Also, you can download and use Applejack for repair.
    -mj

  • Keyboard Functionality Issues in Finder (Mac OS X 10.5.4)

    I've recently begun to experience loss of the functionality of my keyboard in Finder on my personal laptop and work computer whenever I have a Wacom tablet plugged in. Restarting and unplugging the tablet sometimes works, but only after the 2-3 try.
    Basically, the modifier keys and Function keys continue to work and the middle portion of keyboard fails to respond whenever I try to type a letter or use the spacebar. For example, when I attempt to create a folder it's first untitled. Whenever I try to rename the folder I can highlight the text, I just can't rename the folder. The keys appropriate keys don't work. Now if I use a web browser (Safari 3.1.2) or any other application other than Finder the keyboard functionality returns. I am able to type and use the spacebar, as well as use the other keys. It's as if nothing is wrong.
    Has anyone else experienced this issue?
    I recently started to experience it on my work computer and wondered if it had something to do with a Wacom tablet being connected. It seemed whenever I left the tablet unplugged and restarted my Mac everything was normal. Only when the tablet is plugged in does the keyboard functionality loss bother me.
    Thanks to any who can help.

    Did ever you try the "Relaunch Finder" option in the force quit menu?

  • Small issue with custom table cell editor and unwanted table row selection

    I'm using a custom table cell editor to display a JTree. Thing i notice is that when i select a value in the tree pop-up, the pop-up closes (as it should) but then every table row, from the editing row to the row behind the pop-up when i selected the value becomes highlighted. I'm thinking this is a focus issue, but it thought i took care of that. To clairfy, look at this: Before . Notice how the "Straightening" tree item is roughly above the "Stock Thickness" table row? When i select Straightening, this is what happens to my table: After .
    My TreeComboBox component:
    public class TreeComboBox extends JPanel implements MouseListener {
        private JTextField itemField;
        private TreeModel treeModel;
        private ArrayList<ActionListener> actionListeners = new ArrayList<ActionListener>();
        private Object selectedItem;
         * Creates a new <code>TreeComboBox</code> instance.
         * @param treeModel the tree model to be used in the drop-down selector.
        public TreeComboBox(TreeModel treeModel) {
            this(treeModel, null);
         * Creates a new <code>TreeComboBox</code> instance.
         * @param treeModel the tree model to be used in the drop-down selector.
         * @param selectedItem tree will expand and highlight this item.
        public TreeComboBox(TreeModel treeModel, Object selectedItem) {
            this.treeModel = treeModel;
            this.selectedItem = selectedItem;
            initComponents();
         * Returns the current drop-down tree model.
         * @return the current <code>TreeModel</code> instance.
        public TreeModel getTreeModel() {
            return treeModel;
         * Sets the tree model.
         * @param treeModel a <code>TreeModel</code> instance.
        public void setTreeModel(TreeModel treeModel) {
            this.treeModel = treeModel;
         * Returns the selected item from the drop-down selector.
         * @return the selected tree object.
        public Object getSelectedItem() {
            return selectedItem;
         * Sets the selected item in the drop-down selector.
         * @param selectedItem tree will expand and highlight this item.
        public void setSelectedItem(Object selectedItem) {
            this.selectedItem = selectedItem;
            String text = selectedItem != null ? selectedItem.toString() : "";
            itemField.setText(text);
            setToolTipText(text);
         * Overridden to enable/disable all child components.
         * @param enabled flat to enable or disable this component.
        public void setEnabled(boolean enabled) {
            itemField.setEnabled(enabled);
            super.setEnabled(enabled);
        public void addActionListener(ActionListener listener) {
            actionListeners.add(listener);
        public void removeActionListener(ActionListener listener) {
            actionListeners.remove(listener);
        // MouseListener implementation
        public void mouseClicked(MouseEvent e) {
        public void mouseEntered(MouseEvent e) {
        public void mouseExited(MouseEvent e) {
        public void mousePressed(MouseEvent e) {
        public void mouseReleased(MouseEvent e) {
            showPopup();
        private void initComponents() {
            setLayout(new GridBagLayout());
            itemField = new JTextField();
            itemField.setEditable(false);
            itemField.setText(selectedItem != null ? selectedItem.toString() : "");
            itemField.addMouseListener(this);
            add(itemField, new GridBagConstraints(0, 0, 1, 1, 1.0, 0.0,
                    GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(0, 0, 0, 0), 0, 0));
        private void showPopup() {
            final TreePopup popup = new TreePopup();
            final TreeComboBox tcb = this;
            final int x = itemField.getX();
            final int y = itemField.getY() + itemField.getHeight();
            int width = itemField.getWidth() + popupButton.getWidth();
            Dimension prefSize = popup.getPreferredSize();
            prefSize.width = width;
            popup.setPreferredSize(prefSize);
            SwingUtilities.invokeLater(new Runnable() {
                public void run() {
                    popup.show(tcb, x, y);
                    popup.requestFocusInWindow();
        private void fireActionPerformed() {
            ActionEvent e = new ActionEvent(this, ActionEvent.ACTION_PERFORMED, "TreeComboBoxSelection");
            for (ActionListener listener : actionListeners) {
                listener.actionPerformed(e);
        private class TreePopup extends JPopupMenu {
            private JTree tree;
            private JScrollPane scrollPane;
            public TreePopup() {
                initComponents();
                initData();
            private void initData() {
                if (treeModel != null) {
                    tree.setModel(treeModel);
            private void initComponents() {
                setFocusable(true);
                setFocusCycleRoot(true);
                tree = new JTree();
                tree.setRootVisible(false);
                tree.setShowsRootHandles(true);
                tree.setFocusable(true);
                tree.setFocusCycleRoot(true);
                tree.addTreeSelectionListener(new TreeSelectionListener() {
                    public void valueChanged(TreeSelectionEvent e) {
                        tree_valueChanged(e);
                scrollPane = new JScrollPane(tree);
                add(scrollPane);
            private void tree_valueChanged(TreeSelectionEvent e) {
                DefaultMutableTreeNode node = (DefaultMutableTreeNode) tree.getLastSelectedPathComponent();
                setSelectedItem(node.getUserObject());
                fireActionPerformed();
                this.setVisible(false);
    }My TreeComboBoxTableCellEditor:
    public class TreeComboBoxTableCellEditor extends AbstractCellEditor implements TableCellEditor, ActionListener {
        protected TreeComboBox treeComboBox;
        protected ArrayList<CellEditorListener> cellEditorListeners = new ArrayList<CellEditorListener>();
        public TreeComboBoxTableCellEditor(TreeComboBox treeComboBox) {
            this.treeComboBox = treeComboBox;
            treeComboBox.addActionListener(this);
        public Object getCellEditorValue() {
            return treeComboBox.getSelectedItem();
        public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column) {
            treeComboBox.setSelectedItem(value);
            return treeComboBox;
        public void actionPerformed(ActionEvent e) {
            stopCellEditing();
    }Any thoughts?
    Edited by: MiseryMachine on Apr 3, 2008 1:21 PM
    Edited by: MiseryMachine on Apr 3, 2008 1:27 PM

    As I said, you have to have empty context elements before additional rows will be open for input.
    For instance if you want to start with 5 rows available for input do the following to your internal table that you will bind:
    data itab type standard table of sflight.
    do 5 times.
      append initial line to itab.
    enddo.
    context_node->bind_table( itab ).
    The other option if you need n number of rows is to add a button to the table toolbar for adding more rows. When this button is pressed, you add a new context element to the node - thereby creating a new empty row in the table.

  • Issue with finder screen sharing.

          My iOS development partner and I are currently having issues with screen sharing through the finder.  Prior to installing OSX Mavericks there was no issue with adding each other as users to each others computer, but after the install is when the problem started happening.  At the root level there are multiple users on each other's computers with our corresponding names but they don't appear in Users and Groups.  So, having phantom users on each other's computers, we took them into the Genius Bar at our local apple store.  They tried a few different methods, none of which worked, and had us reinstall the operating system and now we're back at square one having to resort to using the "permission" screen share as opposed to just being able to screen share directly though user accounts that we previously set in system preferences. I used the following console command, but it doesn't show the same accounts in the Users and Groups under System Preferences.: (dscl . list /Users | grep -v "^_") Any help or insight would be greatly appreciated.
    Currently running Software  OS X 10.9.1 (13B42) on both machines.

    Found an answer at the following link.
    https://discussions.apple.com/thread/5677786?start=0&tstart=0
    Message was edited by: Shadowchief

  • Issues with finder going out of sync with file images in cover flow.

    Hi All,
    I'm having issues with files going out of sync with images in cover flow since updating to Mavericks. Typically, if I had for example 10 pictures listed as 1 to 10, if i deleted images 6&7 the images remain in coverflow but the file listings are removed, then if i click on image 7 the file listing of image 8 is highlighted, then to make matters worse, if i click on the file listing for image 9 in shows image 8 in cover flow. To stop this I have to shut down finder and restart it, then the whole thing repeats itself if i delete more images. Its a nightmare when your working with 50 plus images at a time!!! Help!!
    Thanks all.

    com.apple.systemuiserver.plist and com.apple.finder.plist
    Go to Finder and select your user/home folder. With that Finder window as the front window, either select Finder/View/Show View options or go command - J.  When the View options opens, check ’Show Library Folder’. That should make your user library folder visible in your user/home folder.  Select Preferences/. Move the .plists to your desktop.
    Re-launch Finder by loggin out/in and test. If it works okay, delete the plist from the desktop.
    If the same, return the .plist to where you got it  from, overwriting the newer ones.
    Thanks to leonie for some information contained in this.
    You might need to redo the View settings after an update.
    If you look at the 'More Like This' box (top right) it seems the Cover Flow view is having problems.
    Send Apple feedback. They won't answer, but at least will know there is a problem. If enough people send feedback, it may get the problem solved sooner.
    Feedback

  • Syntax issue when having more than 20 warnings

    Hello,
    when having more than 20 warnings in a compilation unit (package, procedure ...),
    SQL Developer ( version 1.5.0.53)
    doesn't always flag an error (like, for example, a misspelled local variable),
    so instead of a compile-time error a runtime error is generated.
    I tried to reproduce the situation and here is a simplified case where i've
    encountered the same error.
    Best regards
    Alexander Andris, Prague
    [email protected]
    CREATE OR REPLACE
    PROCEDURE PROC AS
    l_arg1 pls_integer;
    l_arg2 pls_integer;
    -- declarations which issue PLW-07204 warnings ...( 20 or more ...)
    cursor c1 is
    select sysdate from dual
    where trunc (sysdate) = trunc(sysdate);
    cursor c2 is
    select sysdate from dual
    where trunc (sysdate) = trunc(sysdate);
    cursor c3 is
    select sysdate from dual
    where trunc (sysdate) = trunc(sysdate);
    cursor c4 is
    select sysdate from dual
    where trunc (sysdate) = trunc(sysdate);
    cursor c5 is
    select sysdate from dual
    where trunc (sysdate) = trunc(sysdate);
    cursor c6 is
    select sysdate from dual
    where trunc (sysdate) = trunc(sysdate);
    procedure proc1 is
    begin
    null;
    end;
    BEGIN
    l_arg_notdef := 42;
    -- next line would not be displayed.
    dbms_output.put_line (
    'Error in SQLDev 1.5.0 - error on the assignment line not flagged '
    || ' by the compiler when preceded by > 20 warnings ...' ||
    ' (Error not shown in navigator.Same behavior also in SQLDev 1.21 ...).');
    -- So, when lines 5 - 23 are commented out then line 31 is flagged as an
    -- error (PLS-00201), otherwise not (runtime error only).
    -- When working on a large package with more than 20 warnings and a lot of
    -- code, to find an error like a misspelled local variable one would need to
    -- a different IDE.Hope it is not difficult to fix this quickly ...
    -- Details:
    -- client platform: Windows XP
    -- SQLDev: Version 1.5.0.53 Build MAIN-53.38
    -- db.: Oracle 10.2 on Windows
    END PROC;

    Unfortunately, that's the intended behaviour.
    After complaining about errors not being reported in previous versions, they did add the "Only first 20 issues are reported" warning, but unless you know that can happen, almost nobody will notice.
    I keep advocating for reporting errors on top, next any warnings, until having used up the 20 spaces. If necessary, they could compile first with warnings turned off, then again with warnings turned on.
    I don't think I ever put a request for this on the SQL Developer Exchange, so take a look there if you're up for it.
    Also mind you can turn the warnings off yourself inside the preferences, so they won't bother (nor help) you again.
    Regards,
    K.

  • Sql loader syntax issue

    SQL*Loader: Release 11.1.0.7.0 - Production on Thu Mar 18 07:21:37 2010
    Copyright (c) 1982, 2007, Oracle. All rights reserved.
    SQL*Loader-350: Syntax error at line 1.
    Expecting keyword LOAD, found "ÐÏ".
    ÐÏࡱá
    ^
    My sqlldr file looks like this:
    sqlldr control=C:\data\ctl\ss.ctl log=C:\data\logs\ss.log userid=User/Password errors=999 discard=C:\data\discard\ss.dis
    control file looks like this:
    LOAD DATA
    INFILE 'C:\data\SS.TXT' "STR '\r\n'"
    REPLACE
    INTO TABLE SS
    FIELDS TERMINATED BY ';'
    TRAILING NULLCOLS
    ACCOUNT_NBR CHAR,
    ADDR1 CHAR,
    ADDR2 CHAR,
    ADDR3 CHAR,
    ADDR4 CHAR,
    CITY CHAR,
    STATE CHAR,
    ZIPCODE CHAR ,
    more columns all of the are the same syntax column name and char
    I can load this table using the enterprise manager but when using the sqlldr its not working.
    Anything stand out?
    Edited by: mlojan on Mar 18, 2010 5:33 AM

    Only thing I can think of is there is some character set issue between the control file and the operating syste/oracle server.
    You did you create the control file using a text based editor such as notepad or wordpad didn't you? You haven't used something like MS Word?

Maybe you are looking for

  • Help! my computer will only transfer a few songs...

    to my ipod nano before this message appears. "attempting to copy to the disk "ipod nano" failed. the disk could not be read from or written to". any idea what's happening? it only responds that way to certain selections.

  • MacBook Pro Mid-2012 Overheating?

    I just got my MacBook Pro Mid-2012 less than a week ago, but I am already having problems with my MacBook Pro heating up.  It gets to a temperature that almost burns my hand when I touch the bottom.  My old MacBook didn't do this.  I was running Wind

  • How do you make a secure pdf form editable?

    How do you make a secure pdf file editable?

  • Conversion from Lightweight to Autonomous

    Hey guys, I'm trying to get an Access Point 1140 Series to go back to Autonomous, but when I type archive download-sw /overwrite /reload tftp://1.2.3.4/autonomous-image.tar It says it doesn't recognize that command. It's connected to a WLC 2504 with

  • Zumocast gives error on Arch Linux x86_64

    I found a RPM package of Zumocast here -> http://orion.lcg.ufrj.br/RPMS/myrpms/zumocast/ I tried to make make a PKGBUILD. Here is the PKGBUILD: pkgname=zumocast pkgver=1.3 pkgrel=1 pkgdesc="Access all your files and media from your computer" arch=('x