Padded Spaces

I have a set of flat files that I am loading into oracle through OWB, I need to be able to convert the char character to a varchar and to delete the 'white spaces in every field'.
I have tried using a trim function but receive the following error:-
SQL*Loader-951: Error calling once/load initialization
ORA-26097: unsupported conversion for column (from type 1 to type 49)
How can this be done with owb ??
Regards
Paul Heath

Paul,
You can do this in several ways. You can load the data as-is in a staging tables and then use the much richer transformation and conversion library available for the database sources (as opposed to the flat file sources) or you can define an external table in oracle to be mapped to your flat files (see documentation under http://otn.oracle.com/docs/products/oracle9i/doc_library/release2/server.920/a96521/tables.htm#9046).
Regards:
Igor
I have a set of flat files that I am loading into oracle through OWB, I need to be able to convert the char character to a varchar and to delete the 'white spaces in every field'.
I have tried using a trim function but receive the following error:-
SQL*Loader-951: Error calling once/load initialization
ORA-26097: unsupported conversion for column (from type 1 to type 49)
How can this be done with owb ??
Regards
Paul Heath

Similar Messages

  • INOUT parameter from CallableStatement has unnecessary padded spaces

    Hi all,
    I'm using JDBC Oracle thin driver to connect to Oracle 8i. I'm calling a stored procedure for which I use a CallableStatement. I have an INOUT parameter of datatype CHAR(1) in the procedure, which I set using the setString() and do the registerOutParameter(3, Types.CHAR).
    When I excute the CallableStatement(), the INOUT parameter is appended with unnecessary spaces by the JDBC driver. In the procedure when I print the length of the parameter received, it shows 32512. This causes the procedure to throw a SQLException. How can we avoid these blank spaces? You might suggest that I put RTRIM() in the procedure as a simple solution, but that is not possible.
    I have observed the same thing in the OUT parameter. When the procedure returns a 1 char value, Java shows a 32512 length value (padded with unnecessary spaces). How can we tell the driver not to do such mischief.
    Please help.
    Thanks
    Varma
    [email protected]

    I don't see anything obviously wrong with the code. That you are always getting 1 out, suggests the possibility that the input value isn't going in, is defaulting to 0 and 0+ 1 is being returned...
    As a guess, try doing:
    cStmt.setInt(2, 4);instead of:
    cStmt.setInt("inOutParam", 4);It could be that MySQL has some problems with "by name" parameters...
    Alternately, modify the stored procedure to put inOutParam into a table and see what value is being recieved...

  • How to pad spaces at the end of a string

    Hi All,
    I am new to ABAP and need help to achieve this functionality
       I have to build a string with fixed lenth . my input string
      is always lesser than equal to X . I need to calculate and
       add that many spaces at the end of the input string .
      I tried to do this and getting the following error
        please help on this :
      if strlen( t_resultc ) < 525.
      RFILL(t_resultc,' ',525)
      endif.
      Error : Comma without preceding colon(after RFILL(T_RESULTC ?)
    Q: Can I use RFILL with out Select statement in a ABAP program
    Thanks & Regards
      KLK

    Hi,
    Try the following code but kindly make a note..
    Note:-USE quote like this  ` `, Instead of normal single quotes ‘ ’
    WHILE strlen( T_RESULTC ) < 525.            “Check the length   
       CONCATENATE  T_RESULTC ` ` INTO T_RESULTC. ”Add spaces at the end   
    ENDWHILE.
    Hope this helps,
    Andrew

  • How to padding the zeroes and space befoer sending from XI to R3 system.

    Hi Experts,
       How to padding the zeroes and space befoer sending any data from XI to R3 during mapping, how to write a java code to implement this logic, please help me with the coding or any other alternative.
    thanks
    dhanush

    to pad spaces you need to write a simple UDF
    for right padding use the following
    while( inputField.length() < Integer.parseInt(totalLength))
    inputField = inputField + " ";
    return inputField;
    for left padding use the following
    while( inputField.length() < Integer.parseInt(totalLength))
    inputField = " " + inputField ;
    return inputField;
    Note:in the above examples <i>inputField</i> will be the input to UDF i.e. the sender field which you need to pad and send to receiver , and <i>totalLength</i> will be a constant i.e length of the field you want on receiver side after padding.
    also i m not a Java expert so please check for syntax and semantics for code:) to me it looks correct
    Thanx
    Aamir
    Message was edited by:
            Aamir Suhail

  • How to remove trailing space-sqlldr failed OCI-30951-exceeds max length

    sqlldr failed to load the xml into xdb ( table created through schema registration) because of the padded space in element 'Country' whose maximum length is defined as '3'…Is there any way to remove the extra trailing space using the control file or xdb annotation in the xsd? Thanks!
    <Address>
    <StreetAddress1>1 BRKSTONE SQ </StreetAddress1>
    <StreetAddress2>SUITE 5 </StreetAddress2>
    <City>ANDOVER </City>
    <State>MA</State>
    <Country>USA </Country>
    <ZipCode>01810</ZipCode>
    </Address>
    Here is the errors I got:
    kgepop: no error frame to pop to for error 30951
    OCI-30951: Element or attribute at Xpath /BranchRegulatoryFiling/Branches/Branch[1]/Address/Country exceeds maximum length
    Errors in file :
    OCI-30951: Element or attribute at Xpath /BranchRegulatoryFiling/Branches/Branch[1]/Address/Country exceeds maximum length
    ----- Call Stack Trace -----
    Bus Error (core dumped)
    Here is my ctl file:
    load data
    infile *
    into table xml_stg_tbl
    append
    reenable disabled_constraints exceptions cnstr_xcptn_tbl
    xmltype(XMLDATA)(
    lobfn filler char terminated by ',',
    XMLDATA lobfile(lobfn) terminated by EOF
    BEGINDATA
    /tmp/1025552.xml
    Edited by: user10954036 on Jul 27, 2009 8:12 AM

    Hi,
    Its good that u pasted the complete log file. In your environment you have to run this upgrade tool only once from any of the middle tier.
    And with respect to your error that u got in precheck is quite simple. All u have to do is just run this script from by connecting to portal schema using sqlplus.
    Run dropupg.sql
    Location-------- /raid/product/OraHome_1/upgrade/temp/portal/prechktmp/dropupg.sql
    Later you re-run the upgrade tool and let me know the status.
    Good luck
    Tanmai

  • Need to trim space from time field

    I've got a text box in my report where I am dropping in two times: start time and end time.
    {EarlyShiftStart}-{LateShiftEnd}
    My problem is if the late shift end is a time less than 10, it adds an extra space between the "-" and the start time.
    So instead of:
    8:00 AM-3:00PM
    it is 8:00 AM- 3:00 PM.
    Is there a way to have this extra or padded space removed?
    Thanks,

    Hi,
    What is the data type of your database fields for times?
    If those are of type datetime, then you can use cStr(<your database field>, "hh:mm tt"), which will give you the time part as required by you and can try something like this:
    cStr(<your database field for early shift time>, "hh:mm tt") & '-' & cStr(<your database field late shift time>, "hh:mm tt")
    Thanks,
    Raghavendra

  • How to pad OST file to prevent fragmentation

    Does anyone have any clever tricks on how to quickly fill then empty an OST file, so you can get it to what your maximum mailbox size in, then clear out the padded space so it has a ton of free space in it, and the file will no longer become fragmented then. 
    We have performance issues once large OSTs get heavily fragmented due to them constantly expanding as more and more email builds up, so was wondering if there was a way to grow it or pad it to make it the max their actual mailbox could get, then free the
    space from the garbage files.

    Hi RJ022,
    Yes, I agree with Daine that compacting a file just help to reduce only approx 20% of white spaces in the data file. But, if you really want to solve this large OST data issue, then you should prefer archiving
    instead of this one. It will help you to make an archive of Outlook data file and reduce the risk of damaged data and slow Outlook interface.
    For more about “Archive” option in MS-Outlook:
    http://office.microsoft.com/en-in/outlook-help/archive-items-manually-HA010355564.aspx
    Thanks
    Clark Kent

  • Padding in WebDynpro view

    Hi,
    We are developing an application in WD and where-ever we add padding in the view we see, instead of the padding spaces, an error saying: <i>urBidiEmbed</i>.
    We are working on an SP13 system (J2EE, EP, NWDS).
    Does anyone have a solution for this?
    Thanks in advance,
    Aviad

    Hello Aviad,
    Sorry no idea. I am myself using SP13 and also using padding in many of the views and I never came across this error. It would be helpful to open an OSS message though.
    Regards,
    Dharmi
    PS Thank you for the points. If you cant wait until the OSS message is answered, you could use transparent container wherever you are using padding - I know tedious and a dirty work around but that could help!!

  • Really Simple Date conversion function... but doesn't work

    For my application I need a function that converts a date to a date that is a monday.
    I wrote this simple function, and I've been trying for many many times... but it just doesn't work. It returns a null value. The problem lies with the IF-statement.
    I'm using iSQL 9
    CREATE OR REPLACE FUNCTION to_monday ( datum IN DATE )
      RETURN DATE
      AS
    BEGIN
      FOR n IN 0..6 LOOP
        IF ( TO_CHAR(datum + n, 'day') = 'friday' ) THEN
          RETURN (datum + n - 4);
        END IF;
      END LOOP;
    END;
    SELECT to_monday(CURRENT_DATE) FROM dual;Edited by: popovitsj on 11-mrt-2012 5:07
    Edited by: popovitsj on 11-mrt-2012 5:09
    Edited by: popovitsj on 11-mrt-2012 5:09
    Edited by: popovitsj on 11-mrt-2012 5:12

    popovitsj wrote:
    For my application I need a function that converts a date to a date that is a monday.
    I wrote this simple function, and I've been trying for many many times... but it just doesn't work. It returns a null value. The problem lies with the IF-statement.
    I'm using iSQL 9
    CREATE OR REPLACE FUNCTION to_monday ( datum IN DATE )
    RETURN DATE
    AS
    BEGIN
    FOR n IN 0..6 LOOP
    IF ( TO_CHAR(datum + n, 'day') = 'friday' ) THEN
    RETURN (datum + n - 4);
    END IF;
    END LOOP;
    END;
    SELECT to_monday(CURRENT_DATE) FROM dual;Edited by: popovitsj on 11-mrt-2012 5:07
    Edited by: popovitsj on 11-mrt-2012 5:09
    Edited by: popovitsj on 11-mrt-2012 5:09
    Edited by: popovitsj on 11-mrt-2012 5:12You have to use format modifier. to_char(...,'day') will return "friday" with padded space. You have to use to_char(..,'fmday').
    SQL> CREATE OR REPLACE FUNCTION to_monday ( datum IN DATE )
      2    RETURN DATE
      3    AS
      4  BEGIN
      5    FOR n IN 0..6 LOOP
      6      IF ( TO_CHAR(datum + n, 'fmday') = 'friday' ) THEN
      7        RETURN (datum + n - 4);
      8      END IF;
      9    END LOOP;
    10  END;
    11  /
    Function created.
    SQL> SELECT to_monday(sysdate) from dual;
    TO_MONDAY
    12-MAR-12

  • Randomaccessfile, writing an update to the file?

    Hi,
    I'm working on an app that uses a randomaccessfile (student.dat) and I have it so it will write info to the dat file & I can search thru what I entered..... now I need to add the ability to update a record in the dat. The student info is just basic name & address. So I need to be able to update an address change for a given record.
    I looked at the documentation online but I'm not understanding how you capture the reference point in the file and modify it.... does anyone have a good example or does anyone out there know how to explain how to do it to me??
    My file is here below that I need to add the update functionality to (and the 2 accompaning files)...... I already inserted my Update button on the second panel where it needs to reside. Now I need to add the update functionality to the button.
    Anyone have any suggestions/explanations on how to add this fnctionality or know a working example I can reference?? Any help would be great appreciated.... thanks.
    // StudentRecords.java: Store and read data
    // using RandomAccessFile
    import java.io.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.border.*;
    public class StudentRecords extends JFrame {
      // Create a tabbed pane to hold two panels
      private JTabbedPane jtpStudent = new JTabbedPane();
      // Random access file for access the student.dat file
      private RandomAccessFile raf;
      /** Main method */
      public static void main(String[] args) {
        StudentRecords frame = new StudentRecords();
        frame.pack();
        frame.setTitle("Test RandomAccessFile");
        frame.setVisible(true);
      /** Default constructor */
      public StudentRecords() {
        // Open or create a random access file
        try {
          raf = new RandomAccessFile("student.dat", "rw");
        catch(IOException ex) {
          System.out.print("Error: " + ex);
          System.exit(0);
        // Place buttons in the tabbed pane
        jtpStudent.add(new RegisterStudent(raf), "Register Student");
        jtpStudent.add(new ViewStudent(raf), "View Student");
        // Add the tabbed pane to the frame
        getContentPane().add(jtpStudent);
    // Register student panel
    class RegisterStudent extends JPanel implements ActionListener {
      // Button for registering a student
      private JButton jbtRegister;
      // Student information panel
      private StudentPanel studentPanel;
      // Random access file
      private RandomAccessFile raf;
      public RegisterStudent(RandomAccessFile raf) {
        // Pass raf to RegisterStudent Panel
        this.raf = raf;
        // Add studentPanel and jbtRegister in the panel
        setLayout(new BorderLayout());
        add(studentPanel = new StudentPanel(),
          BorderLayout.CENTER);
        add(jbtRegister = new JButton("Register"),
          BorderLayout.SOUTH);
        // Register listener
        jbtRegister.addActionListener(this);
      /** Handle button actions */
    //   JFileChooser fc;
      public void actionPerformed(ActionEvent e) {
        if (e.getSource() == jbtRegister) {
          Student student = studentPanel.getStudent();
          try {
            raf.seek(raf.length());
            student.writeStudent(raf);
          catch(IOException ex) {
            System.out.print("Error: " + ex);
    // View student panel
    class ViewStudent extends JPanel implements ActionListener {
      // Buttons for viewing student information
      private JButton jbtFirst, jbtNext, jbtPrevious, jbtLast, jbtUpdate;
      // Random access file
      private RandomAccessFile raf = null;
      // Current student record
      private Student student = new Student();
      // Create a student panel
      private StudentPanel studentPanel = new StudentPanel();
      // File pointer in the random access file
      private long lastPos;
      private long currentPos;
      public ViewStudent(RandomAccessFile raf) {
        // Pass raf to ViewStudent
        this.raf = raf;
        // Panel p to hold four navigator buttons
        JPanel p = new JPanel();
        p.setLayout(new FlowLayout(FlowLayout.LEFT));
        p.add(jbtFirst = new JButton("First"));
        p.add(jbtNext = new JButton("Next"));
        p.add(jbtPrevious = new JButton("Previous"));
        p.add(jbtLast = new JButton("Last"));
        p.add(jbtUpdate = new JButton("Update"));
        // Add panel p and studentPanel to ViewPanel
        setLayout(new BorderLayout());
        add(studentPanel, BorderLayout.CENTER);
        add(p, BorderLayout.SOUTH);
        // Register listeners
        jbtFirst.addActionListener(this);
        jbtNext.addActionListener(this);
        jbtPrevious.addActionListener(this);
        jbtLast.addActionListener(this);
        jbtUpdate.addActionListener(this);
      /** Handle navigation button actions */
      public void actionPerformed(ActionEvent e) {
        String actionCommand = e.getActionCommand();
        if (e.getSource() instanceof JButton) {
          try {
            if ("First".equals(actionCommand)) {
              if (raf.length() > 0)
                retrieve(0);
            else if ("Next".equals(actionCommand)) {
              currentPos = raf.getFilePointer();
              if (currentPos < raf.length())
                retrieve(currentPos);
            else if ("Previous".equals(actionCommand)) {
              currentPos = raf.getFilePointer();
              if (currentPos > 0)
                retrieve(currentPos - 2*2*Student.RECORD_SIZE);
            else if ("Last".equals(actionCommand)) {
              lastPos = raf.length();
              if (lastPos > 0)
                retrieve(lastPos - 2*Student.RECORD_SIZE);
            else if ("Update".equals(actionCommand)) {
         //     raf.writeChars(student.dat);     //HOW DO I UPDATE THE FILE????????????????
          catch(IOException ex) {
            System.out.print("Error: " + ex);
      /** Retrieve a record at specified position */
      public void retrieve(long pos) {
        try {
          raf.seek(pos);
          student.readStudent(raf);
          studentPanel.setStudent(student);
        catch(IOException ex) {
          System.out.print("Error: " + ex);
    // This class contains static methods for reading and writing
    // fixed length records
    class FixedLengthStringIO {
      // Read fixed number of characters from a DataInput stream
      public static String readFixedLengthString(int size,
        DataInput in) throws IOException {
        char c[] = new char[size];
        for (int i=0; i<size; i++)
          c[i] = in.readChar();
        return new String(c);
      // Write fixed number of characters (string s with padded spaces)
      // to a DataOutput stream
      public static void writeFixedLengthString(String s, int size,
        DataOutput out) throws IOException {
        char cBuffer[] = new char[size];
        s.getChars(0, s.length(), cBuffer, 0);
        for (int i = s.length(); i < cBuffer.length; i++)
          cBuffer[i] = ' ';
        String newS = new String(cBuffer);
        out.writeChars(newS);
    }Student Panel....................
    // StudentPanel.java: Panel for displaying student information
    import javax.swing.*;
    import javax.swing.border.*;
    import java.awt.*;
    public class StudentPanel extends JPanel {
      JTextField jtfName = new JTextField(32);
      JTextField jtfStreet = new JTextField(32);
      JTextField jtfCity = new JTextField(20);
      JTextField jtfState = new JTextField(2);
      JTextField jtfZip = new JTextField(5);
      /** Construct a student panel */
      public StudentPanel() {
        // Set the panel with line border
        setBorder(new BevelBorder(BevelBorder.RAISED));
        // Panel p1 for holding labels Name, Street, and City
        JPanel p1 = new JPanel();
        p1.setLayout(new GridLayout(3, 1));
        p1.add(new JLabel("Name"));
        p1.add(new JLabel("Street"));
        p1.add(new JLabel("City"));
        // Panel jpState for holding state
        JPanel jpState = new JPanel();
        jpState.setLayout(new BorderLayout());
        jpState.add(new JLabel("State"), BorderLayout.WEST);
        jpState.add(jtfState, BorderLayout.CENTER);
        // Panel jpZip for holding zip
        JPanel jpZip = new JPanel();
        jpZip.setLayout(new BorderLayout());
        jpZip.add(new JLabel("Zip"), BorderLayout.WEST);
        jpZip.add(jtfZip, BorderLayout.CENTER);
        // Panel p2 for holding jpState and jpZip
        JPanel p2 = new JPanel();
        p2.setLayout(new BorderLayout());
        p2.add(jpState, BorderLayout.WEST);
        p2.add(jpZip, BorderLayout.CENTER);
        // Panel p3 for holding jtfCity and p2
        JPanel p3 = new JPanel();
        p3.setLayout(new BorderLayout());
        p3.add(jtfCity, BorderLayout.CENTER);
        p3.add(p2, BorderLayout.EAST);
        // Panel p4 for holding jtfName, jtfStreet, and p3
        JPanel p4 = new JPanel();
        p4.setLayout(new GridLayout(3, 1));
        p4.add(jtfName);
        p4.add(jtfStreet);
        p4.add(p3);
        // Place p1 and p4 into StudentPanel
        setLayout(new BorderLayout());
        add(p1, BorderLayout.WEST);
        add(p4, BorderLayout.CENTER);
      /** Get student information from the text fields */
      public Student getStudent() {
        return new Student(jtfName.getText().trim(),
                           jtfStreet.getText().trim(),
                           jtfCity.getText().trim(),
                           jtfState.getText().trim(),
                           jtfZip.getText().trim());
      /** Set student information on the text fields */
      public void setStudent(Student s) {
        jtfName.setText(s.getName());
        jtfStreet.setText(s.getStreet());
        jtfCity.setText(s.getCity());
        jtfState.setText(s.getState());
        jtfZip.setText(s.getZip());
    }Student file............
    // Student.java: Student class encapsulates student information
    import java.io.*;
    public class Student implements Serializable {
      private String name;
      private String street;
      private String city;
      private String state;
      private String zip;
      // Specify the size of five string fields in the record
      final static int NAME_SIZE = 32;
      final static int STREET_SIZE = 32;
      final static int CITY_SIZE = 20;
      final static int STATE_SIZE = 2;
      final static int ZIP_SIZE = 5;
      // the total size of the record in bytes, a Unicode
      // character is 2 bytes size
      final static int RECORD_SIZE =
        (NAME_SIZE + STREET_SIZE + CITY_SIZE + STATE_SIZE + ZIP_SIZE);
      /** Default constructor */
      public Student() {
      /** Construct a Student with specified name, street, city, state,
         and zip
      public Student(String name, String street, String city,
        String state, String zip) {
        this.name = name;
        this.street = street;
        this.city = city;
        this.state = state;
        this.zip = zip;
      /** Return name */
      public String getName() {
        return name;
      /** Return street */
      public String getStreet() {
        return street;
      /** Return city */
      public String getCity() {
        return city;
      /** Return state */
      public String getState() {
        return state;
      /** Return zip */
      public String getZip() {
        return zip;
      /** Write a student to a data output stream */
      public void writeStudent(DataOutput out) throws IOException {
        FixedLengthStringIO.writeFixedLengthString(
          name, NAME_SIZE, out);
        FixedLengthStringIO.writeFixedLengthString(
          street, STREET_SIZE, out);
        FixedLengthStringIO.writeFixedLengthString(
          city, CITY_SIZE, out);
        FixedLengthStringIO.writeFixedLengthString(
          state, STATE_SIZE, out);
        FixedLengthStringIO.writeFixedLengthString(
          zip, ZIP_SIZE, out);
      /** Read a student from data input stream */
      public void readStudent(DataInput in) throws IOException {
        name = FixedLengthStringIO.readFixedLengthString(
          NAME_SIZE, in);
        street = FixedLengthStringIO.readFixedLengthString(
          STREET_SIZE, in);
        city = FixedLengthStringIO.readFixedLengthString(
          CITY_SIZE, in);
        state = FixedLengthStringIO.readFixedLengthString(
          STATE_SIZE, in);
        zip = FixedLengthStringIO.readFixedLengthString(
          ZIP_SIZE, in);

    Advise sounds strikingly similar to what I mentioned
    page b4. Look, can you post the entire class in code
    tags ... and the entire file as well?@Bill,
    Yes, I read yours but (sorry, its hard to answer multiple replies in these forums) but I could not understand some of what you suggested. If you look at the //???? lines I commented on your code below you'll see where I'm lost on what you are doing there. You also mentioned a "marker"... is that the currentPos thing in the code of mine, to get the current position?
    Both you and Andrew suggested classes to some extent but I'm not sure how to it or what goes in it. If you look at my code paste above the buttons seem to have everything in the action, not a class, other than the register button on the other pane (which has a write method in studentpanel.java).
    I'm trying to follow/implement what u guys have been suggesting... but my brain just is not wrapping around the what I should type & where..... :-( Got any further explanation/demonstration of what I should be doing?? Sorry, I'm not that skilled of a programmer yet...
    int curr_ptr = 0,
    prev_ptr = 0;
    String marker = "ADDRS=",
    address="My new address",
    record = null;
    while ( ( record = raf.readLine() ) != null ) {   //????
    curr_ptr = raf.getFilePointer();
    if ( ( idx = record.indexOf("marker") ) != -1 ) {   //????
    record = record.substring( 0, 6 ) + address;  //????
    raf.seek( prev_ptr );
    raf.writeBytes( record );
    curr_ptr = raf.getFilePointer();
    raf.seek(curr_ptr);
    }

  • Making divs expand to the height of the highest div

    I'm currently building my portfolio website. I'm not a coder and find it difficult so I really need simple answers if possible please. The page I'm working on can be found here: http://www.infomaticfilms.com/jack/jrimg/g_and_d.htm. It's far from finished as I don't want to move on until I fix this problem. This page will be a generic page for all the various project pages which means they will all have different heights. Rather than make individual pages for each project I'd like to make just one that I can use for all by merely deleting the content each time and re-saving the page. If you click on the Me or Contact link you can see the other pages to see the border. I read an article from Stack Overflow and I'm very close to the solution. I have a problem with Firefox though which adds 1 pixel to the right hand border. Here's the HTML:
    <div class="contentAndBorders">
      <div class="borderLeft"></div>
      <div class="mainContentProjectPage">
        <p>Content goes here</p>
        <p>Content goes here</p>
        <p>Content goes here</p>
        <p>Content goes here</p>
        <p>Content goes here</p>
        <p>Content goes here</p>
        <p>Content goes here</p>
        <p>Content goes here</p>
        <p>Content goes here</p>
        <p>Content goes here</p>
        <p>Content goes here</p>
        <p>Content goes here</p>
        <p>Content goes here</p>
        <p>Content goes here</p>
        <p>Content goes here</p>
        <p>Content goes here</p>
        <p>Content goes here</p>
      </div>
      <div class="borderRight"></div>
    </div>
    I'm looking to put the content into the div with the class of mainContentProjectPage. I need the divs with the classes of borderLeft and borderRight to expand with the height of mainContentProjectPage which is what they do. It's basically three columns. The first and third columns are the white borders to the left and right and the middle column is for the content. Here's the CSS:
    .contentAndBorders {
              width: 950px;
              position: relative;
              overflow: hidden;
    .mainContentProjectPage {
              float: left;
              background-color: #F55816;
              width: 100%;
              padding-left: 24px;
    .borderLeft {
              float: left;
              background-color: #FFF;
              width: 1.3%;
              background-attachment: scroll;
              background-image: none;
              background-repeat: repeat;
              background-position: 0px 0px;
              position: absolute;
              left: 0px;
              height: 100%;
              margin: 0;
    .borderRight {
              background-attachment: scroll;
              background-color: #FFF;
              background-image: none;
              background-repeat: repeat;
              background-position: 0px 0px;
              width: 1.3%;
              float: left;
              position: absolute;
              right: 0px;
              height: 100%;
              margin: 0;
    I don't really understand how it works, just that it does. If anyone knows a better way of achieving the same result then I'd be very grateful as this is the final part of my site. My question is does anyone know how to get rid of the extra 1 pixel on the right hand border? It looks perfect in Safari and Chrome. Any help and advice would be a life saver.
    Thanks
    Jack

    I'm not a coder and find it difficult so I really need simple answers if possible please.
    You need to understand HTML & CSS code.  If you don't take time to learn the basics, you will continue to be frustrated by the process, your results and by our answers to your questions.
    PART 1
    Height is determined by page content.  The more content a page contains, the longer the page is.  All sites contain both long and short pages.  So keep your design flexible.  Don't paint yourself into a rigid box.
    The CSS height property should never be used on containers that hold text as this will vary from user to user depending on their device and browser settings.  Remove height values from your CSS code.  If needed to reveal a background-image, for example, use the min-height: property.
    PART 2
    All browsers add default margins and padding (spaces) to every html element.  If you want to shore up the spaces between elements, apply margin:0; padding:0 to all elements or incorporate a CSS Reset method into your site.  http://cssresetr.com/
    Finally, when you need a plumber, hire a plumber.  Building web sites looks easy but it's not.   This site will be the first impression many people have of you and your body of work.  You don't get 2nd chances at 1st impressions.  So put your best foot forward. Hire an experienced web designer to help you or take some time off to learn everything you need to learn to do it right.
    Best of luck,
    Nancy O.

  • DW CS3 3 column template issue

    I have to pad space in the center column in the 3column templates in DW CS3 to keep the foooter from crawling up under the columns. I'm sure there's a clear function but I don't know enough about CSS to know where to add it. Example: http://www.pathwaystocare.org/columns.htm - What do I need to add?

    This is based on what I've encountered in the DW three column fixed template w/header and footer...
    <!-- end #mainContent --></div>
    <!-- This clearing element should immediately follow the #mainContent div in order to force the #container div to contain all child floats --><br class="clearfloat" />
    That's as much as I know about it

  • Unmarshal fails with OTD Tester

    Sorry to bother you again with another JCAPS-question, but I would like to know how to troubleshoot these kind of error messages. I tried to test my deployment dpData_Conversion_for_IP but it failed with an unmarshal error..now I have seen this error before and I know that other folks fixed it for me the last couple of times, but I'd like to learn on how to address an issue like this.
    When I ran the otdtester I receive an error message like:
    There was an error during unmarshal.
    "...00100001\r\n"<POS>"L113218807..." failed input match, after RecordGroup[1]: left over 3086 bytes at end of data
    When I enable Verbose Mode I get the following detailed output (see attachment) which basically tells me at te end that there are so many bytes of data left that could not be matched. Does it mean that my file I present to unmarshal contains more data than I told it to expect? How would you normally fix an issue like this? I looked at the source file and the otd and the field lengths do add up: the header ends at position 163 and the line items at position 125
    Do the line item lines need to be adjusted (the number of times they repeat?)
    My custom input otd used to work fine until last week then I made some changes to the EDI-mapping, but I didn't alter the field length, or the number of fields, so then it should not have any effect.
    Below you will find the output in Verbose Mode:
    [ parse #0 ]
    [ parse 'root', pos=0, end=292, mandatory  ]
    [ parse group, count=0, order=0, must ]
    [ parse #1 ]
    [ parse 'RecordGroup', pos=0, end=292, mandatory  ]
    [ parse group, count=0, order=0, must ]
    [ parse #2 ]
    [ parse 'Header', pos=0, end=292 ]
    [ parse group delim, Fog#25 ]
    [ - push local delim list ]
    [ - iteration #0 ]
    [ parse 'RecType', pos=0, end=292 ]
    [ parse fixed, Fog#3, count=0 ]
    [ - match EXACT "H1" ]
    [ - matched data 0 to 2: "H1" ]
    [ - parse: result=1 ]
    [ - parse: 'RecType' , done=false, pos=2, end=292, last=EOD ]
    [ parse 'PackListNumber', pos=2, end=292 ]
    [ parse fixed, Fog#4, count=0 ]
    [ - matched data 2 to 22: "5160448             " ]
    [ - parse: result=1 ]
    [ - parse: 'PackListNumber' , done=false, pos=22, end=292, last=EOD ]
    [ parse 'SequenceNumber', pos=22, end=292 ]
    [ parse fixed, Fog#5, count=0 ]
    [ - matched data 22 to 27: "00001" ]
    [ - parse: result=1 ]
    [ - parse: 'SequenceNumber' , done=false, pos=27, end=292, last=EOD ]
    [ parse 'StockNoticeNumber', pos=27, end=292 ]
    [ parse fixed, Fog#6, count=0 ]
    [ - matched data 27 to 47: "51604480000100000000" ]
    [ - parse: result=1 ]
    [ - parse: 'StockNoticeNumber' , done=false, pos=47, end=292, last=EOD ]
    [ parse 'CurrentDate', pos=47, end=292 ]
    [ parse fixed, Fog#7, count=0 ]
    [ - matched data 47 to 67: "                    " ]
    [ - parse: result=1 ]
    [ - parse: 'CurrentDate' , done=false, pos=67, end=292, last=EOD ]
    [ parse 'SequenceNumber2', pos=67, end=292 ]
    [ parse fixed, Fog#8, count=0 ]
    [ - matched data 67 to 72: "00001" ]
    [ - parse: result=1 ]
    [ - parse: 'SequenceNumber2' , done=false, pos=72, end=292, last=EOD ]
    [ parse 'RecvStoreNumber', pos=72, end=292 ]
    [ parse fixed, Fog#9, count=0 ]
    [ - matched data 72 to 89: "0000280942       " ]
    [ - parse: result=1 ]
    [ - parse: 'RecvStoreNumber' , done=false, pos=89, end=292, last=EOD ]
    [ parse 'SchedSendDate', pos=89, end=292 ]
    [ parse fixed, Fog#10, count=0 ]
    [ - matched data 89 to 98: "080808   " ]
    [ - parse: result=1 ]
    [ - parse: 'SchedSendDate' , done=false, pos=98, end=292, last=EOD ]
    [ parse 'CreationDate', pos=98, end=292 ]
    [ parse fixed, Fog#11, count=0 ]
    [ - matched data 98 to 107: "080808   " ]
    [ - parse: result=1 ]
    [ - parse: 'CreationDate' , done=false, pos=107, end=292, last=EOD ]
    [ parse 'CreationTime', pos=107, end=292 ]
    [ parse fixed, Fog#12, count=0 ]
    [ - matched data 107 to 113: "031229" ]
    [ - parse: result=1 ]
    [ - parse: 'CreationTime' , done=false, pos=113, end=292, last=EOD ]
    [ parse 'BillOfLadingNumber', pos=113, end=292 ]
    [ parse fixed, Fog#13, count=0 ]
    [ - matched data 113 to 133: "5160448             " ]
    [ - parse: result=1 ]
    [ - parse: 'BillOfLadingNumber' , done=false, pos=133, end=292, last=EOD ]
    [ parse 'ASN', pos=133, end=292 ]
    [ parse fixed, Fog#14, count=0 ]
    [ - matched data 133 to 136: "ASN" ]
    [ - parse: result=1 ]
    [ - parse: 'ASN' , done=false, pos=136, end=292, last=EOD ]
    [ parse 'TRANSACTION_ID', pos=136, end=292 ]
    [ parse fixed, Fog#15, count=0 ]
    [ - matched data 136 to 163: "ASN08080851604480..." ]
    [ - parse: result=1 ]
    [ - parse: 'TRANSACTION_ID' , done=false, pos=163, end=292, last=EOD ]
    [ - retry parent delimiter ]
    [ - retry failed: overshoot, del=164, pos=0 ]
    [ - parse: result=0 ]
    [ - for #2: count=-1 ]
    [ - parse: result=0 ]
    [ - parse: 'RecordGroup' , done=false, pos=0, end=292, last=EOD ]
    [ - for #1: count=0 ]
    [ - parse: result=1 ]
    [ - parse: 'root' , done=false, pos=0, end=292, last=EOD ]
    [ - for #0: count=1 ]

    Hey, I got some help from the open-esb users forum. See below.
    Mike,
    After modifying the xsd (adding match, removing scavenger, moving delimiter
    level to the top, removing 2 FILLER2 fields, etc.) and modifying the data a
    bit (padding spaces to each detail record to a total 392 bytes excluding
    CR&LF), I am able to parse the data. Please refer to the attached zip
    including input, xsd, output XML, and parse log.
    Any further questions, please let me know.
    Thanks!
    Lixin
    Open ESB Community
    http://open-esb.org
    -----Original Message-----
    From: [email protected] mailto:[email protected]
    Sent: Friday, October 17, 2008 2:05 PM
    To: [email protected]; 'Mike A Reynolds'
    Subject: RE: Custom Encoders Questions
    Mike,
    There are a number of problems I have found so far as I start looking into
    the provided xsd meta and input data:
    (1) The header element is also delimited by CR&LF. I see you have put
    delimiters for the detail and trailer elements, but the header element
    misses to be delimited.
    (2) CR&LF can be expressed as "\r\n" or "\x0D\x0A", but not "\n\r". I see
    you have "\n\r" in your xsd file which is wrong.
    (3) You said header record has 82 bytes, detail has 382 bytes and trailer
    has 91 bytes. But I've found a few mismatches:
    In your input data file, the header record has 80 bytes + CR+LF = 82
    bytes, but your xsd meta definition gives header total byte count of 81
    (without CR+LF), which mismatches the expected 82 bytes. You'll need to
    correct this in order for the parsing to work. (For me, I have to remove the
    "filler2" field in order to get the header parsed.)
    In your input data file, each detail record has 350+CR+LF = 352 bytes,
    which contradicts the expected 382 bytes. I haven't added up the total bytes
    in your xsd meta file, but I suspect they have mismatches.
    Similar mismatch may also exist for the detail record, but I haven't got
    chance to sum the total.
    (4) The header, detail and trailer records all have first byte ("H", "D" or
    "T") as record type. You must specify the "RECORD_TYPE" field to match the
    character "H", "D" or "T", respectively by putting the character in the
    "Match" field and selecting "Alignment" to "exact", meaning exact match.
    I see these characters were mistakenly put in the scavenger fields
    instead. Please correct this.
    After you modify your xsd meta encoding information based on above, you
    should be able to parse the input data.
    Let me know if there are any questions,
    Regards
    Lixin
    Open ESB Community
    http://open-esb.org
    -----Original Message-----
    From: [email protected]
    mailto:[email protected] On
    Behalf Of Mike A Reynolds
    Sent: Thursday, October 16, 2008 3:11 PM
    To: [email protected]
    Subject: Custom Encoders Questions
    I am trying to create a customer encoder for a batch file
    consistes of a header record of 82 bytes, several detail records of 382
    bytes and one trailer record of 91 bytes
    HACCUMULATED BENEFIT TRANSACTION FILE 20080801 20080825 0
    0
    D ar3531 ar3531 ar3531 ar3531000
    55887027260 30.000 30 5098765 20080804 000T114 120080806
    82820P30000001024511 25.00 0.00 25.00 0.00 25.00
    25.00 0.00 0.00 0.00 0.00 0.00T
    TACCUMULATED BENEFIT TRANSACTION FILE 20080801 20080825
    2894 0 0
    (See attached file: accumLoad.xsd)
    It seems to not like having multiple record formats and dies after reading
    the header. How can I tell the encoder to filter on the RECORD_TYPE so that
    it picks up the different formats.
    Best Regards,
    Michael Reynolds
    Senior Solutions Engineer - Architecture and Engineering

  • Need help with formatting a number

    hi all,
    the problem i am having has been a hot topic over time in java. i have an integer say 123. i want to convert this to a string of 10 characters. how do i pad the first seven spaces with blanks. ex. " 123" in c++ you can use sprintf. how do i do this in java. i have seen mention of NumberFormat but being new to java cannot figure this class out. any helpful code would be much appreciated.
    thanks

    That would certainly works but it is not the most efficent method to achive the goal since it discards String objects left right and center (especially if you want more than 10 padding spaces)
    public String pad(Integer i) {
    String value = i.toString();
    StringBuffer buff = new StringBuffer();
    for( int i = 0, n = ( 10 - value.length ); i < n; i++ ) {
    buff.append( " " );
    return buff.toString() + value;
    }

  • MySql / Oracle special characters

    Searched all around, my apologies if this is a redundant thread.
    I have an Oracle (10.2.0.3) database set up to connect to MySql (4.1) database using HSODBC. Using the 3.51 MySql driver. Has a couple bugs. Distributed transactions, erroneous record counts, etc -- but I know from reading other threads that the fixes are coming. There is one problem I can't seem to get around...
    In MySql, a certain field is defined as CHAR(40). I would think any content short of 40 characters is padded with spaces. But when I pull pipeline characters concatenated on both sides of the values (MySql query browser), there are no extra spaces. It's behaving more like a VARCHAR on the MySql end:
    [select concat( '|', field, '|') from table]
    returns '|value|'
    NOT '|value |'
    Now, when I pull this data through to Oracle, there are special characters padding the content to the length of the column. When I pull the ASCII code value, they're 0 NUL (null) characters. Every CHAR field in every table that doesn't fill the column is coming across the database link padded with these NUL characters, which look like little hollow squares (in SqlDeveloper and JDeveloper). Since they're not spaces, I can't TRIM them out. I can remove them with TRANSLATE, but I would have to identify every CHAR field in every table and manually code a TRANSLATE into views against the DB_LINK, and then always pull from the views. There must be an easier way to get around this.
    Has anybody had a similar experience? Is this the version of the MySql driver (3.51) that I'm using? I see they have a version 5 out now. Is this addressed by a 10.2.0.4 patchset? Is that available yet? (Redhat) Is this fixed with 11g?
    Oracle - AL32UTF8, UTF8
    MySql - uses both UTF8 and Latin1, but the default on the source table is Latin1 / Latin_swedish_ci

    The problem is a MySQL ODBC driver issue.
    You have to enable ODBC option 512 (pad char to full length):
    Default behaviour of the MySQL ODBC is not to PAD spaces:
    SQL> select dump( "col1") from "counter"@mysql;
    DUMP("COL1")
    Typ=96 Len=20: 72,101,108,108,111,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
    As you can see the char column is padded with 0 instead of spaces (32).
    As soon as you add OPTION 512 to the ODBC.INI (please make sure if you already have a value set for OPTION to add 512 on top of your value to get your dedicated value). So the ODBC.INI might look like:
    [mysql]
    Description = MySQL database test
    Driver = /usr/lib/libmyodbc3.so
    #Driver = MySQL ODBC 3.51 Driver
    OPTION = 512
    and then MySQL behaves correctly:
    SQL> select dump( "col1") from "counter"@mysql;
    DUMP("COL1")
    Typ=96 Len=20: 72,101,108,108,111,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32

Maybe you are looking for

  • Calendar automatically adding alerts to all-day events

    When I schedule an all day event in my calendar, the alert fields show 'None.'  I also have the default alert in Preferences set to 'None' for all-day events.  After I finish scheduling the event and re-open it, the alerts fields are populated!  Ther

  • Record audio is not working

    Does anyone know why when I open up the "Record Audio" button why it would not be recording?  The audio box appears but there is no sound.  It was working but now..... it has stopped and could use some advice.  Thanks.

  • Unstable Mail post Mavericks upgrade:

    After upgrade to Mavericks (v10.9.1) Mail (v7.1) on my iMac has become unstable, freezing at the drop of a hat, requiring frequent forced quit to wrestle back control. Tried to instal the available Mail Update for Mavericks, promising increased stabi

  • Has anyone had a problem with MacAce?

    Has anyone had a problem with MacAce?   I normally pay them £8.39 per month for iWeb hosting - but last week my bank account got dented by £8.39 (twice) and then a further £58.80 from nowhere- that's over £65 in unauthorised debits from my bank accou

  • Payment and Cancelling Service

    To Whom It May Concern: I am writing from the Stanford Graduate School of Business. I am currently filling in for a colleague and have received notification about an outstanding invoice on our Business Catalyst account, which I would like to pay. I w