Standard output automatically line wraps at 40 characters, How to stop that

Hello, After frustrated searching I will ask this. I am currently using the terminal to run my fortran code using gfortran and intel's ifort (10.1.015) writing relevant data to the standard out by
write(,) or write(*,100)
100 format(i4,1x,4(f8.3,1x)
regardless of which compiler I use the output is always wrapped after 40 characters.
Here is an example using a formated line
Description of uniform random quaternions
Index |q| w x y z
1 1.000 -0.469 -0.383 -0.357
-0.711
2 1.000 0.365 0.202 0.151
0.896
As you can see this is wrapping the last number. So how can I get a longer line?
The wrapping is not seen when I do this on a linux at work or my powerbook with 10.4.
Thanks
Chris

Sorry, yes that was a typo in defining 5 not 4 floats, but I have another line with 12 floating point numbers that are formated correctly in the format statement but wrap at 40 regardless. But, if I read data from that file, the compiler still reads it as a single line. So is this a terminal issue or fortran? Opening in vi still wraps as if a carriage return is there. (Also opened in text and texwrangler with same wrapping)
I have sent a similar question to Intel and will update if I get anything.
Thank you

Similar Messages

  • My mail stopped automatic line wrapping what's up?

    How do I get back to automatic line wrapping in mail?

    There is a setting under the Advanced tab for the
    account preferences to not keep all messages and
    their attachments available for offline viewing but I
    don't use this setting and don't experience the same
    problems.
    To clarify, do you mean that you "do not" keep all messages (etc.) available for offline viewing, or that you "do" keep all messages (etc.) available? At present, I have this option to "keep all messages and attachments available for off-line viewing" checked positive, by default I presume.
    After first creating the account if there
    are a number of server stored mailboxes and messages
    available on the server, the mailbox and message
    synchronization process takes longer than normal and
    the time it takes for subsequent synchronization
    should not be a real long process unless a number of
    changes have been make with server stored mailboxes.
    Odd thing is that I only have one saved message in the .Mac account, and that is a tiny weeny one (about 10K) with no attachments or anything! By the way, since I have just been going through everything all over again, I notice that what really seems to be holding things up (I've now changed synchronization to "manual" on both computers) is when I "Get Mail" and Mail is trying to open the .Mac mailbox - this goes on interminably (as I can see in Activity Viewer).
    Try using the Rebuild Mailbox function on all server
    stored mailboxes. All messages will disappear
    temporarily and the mailbox will be resynchronized
    with the server.
    Sorry for being dense, but I've been all over my Mail application and all over my .Mac settings and I can't find this "Rebuild Mailbox" function. Could you please tell me exactly where I can find this Rebuild Mailbox function?
      Mac OS X (10.4.9)  

  • When i'm editing my video in the timeline it looks perfect, but when i save the video and replay it on quicktime it has these weird lines? does anyone know how to fix that?

    when i'm editing my video in the timeline it looks perfect, but when i save the video and replay it on quicktime it has these weird lines? does anyone know how to fix that?

    As Tom states, that's interlacing.
    Interlacing was invented when the TV was born, to carry 1/5 the frame with each Hz of the electricity rating. In the US, that's why you use 30 fps (or 29.nnn) in the US and we use 25 fps in europe as the electricity is 60Hz/50Hz.
    Interlaced video should ONLY (I repeat ONLY) be used for analog TV signal transports.
    Each and every digital TV set today, including all the computer screens, is Progressive, updating the full frame at each screen refresh. And most TV's even refresh much quicker, newest TV's refresh a 800Hz..! (giving then problems with the newest LTE spectums..)
    If your source media in interlaced, ask why! And stop shooting interlaced.. ;-)
    If you have interlaced video, make sure you apply the DeInterlace setting when you import and transcode it.

  • How to prevent automatic line wrapping in a JEditorPane

    I have added a JEditorPane inside a JScrollPane which is inturn is added inside a JPanel with a GridLayout.
    While JEditorPane is loaded with an HTML page or a html file is read into it with an HTMLDocument the longer lines are geting wrapped automatically to the next line when the display area of the parent component of the JPanel where the original JScrollPane is held (like the JFrame or JSplitPane etc.)
    It doesn't help even after seeing a preferredsize/maximumSize or minimumSize
    of the JEditorPane (b'cos it defaults to some other size which i'ven't set at all).
    The horizontal scrollbar apperas only the when the the JEditorPanes size is reduced lesser than its defult size which has been set (probably by the layout manager).
    I want to get rid of this behaviour of the JEditorPane such that horizontal Scollbar should apper as soon as the user reduce the size of the window displaying the above component hierarchy (parent container->JScrollPane->JEditorPane) and no line wrapping occurs.
    Note : 1. JEditorPane doesn'y have linewrapping API like JTextArea
    2. Its default and automatic linewrapping behaviour is conforming
    with word line wrapping where lines are broken at the end of a
    word which can be fully accomodated.

    I have added a JEditorPane inside a JScrollPane which is inturn is added inside a JPanel with a GridLayout.
    While JEditorPane is loaded with an HTML page or a html file is read into it with an HTMLDocument the longer lines are geting wrapped automatically to the next line when the display area of the parent component of the JPanel where the original JScrollPane is held (like the JFrame or JSplitPane etc.)
    It doesn't help even after seeing a preferredsize/maximumSize or minimumSize
    of the JEditorPane (b'cos it defaults to some other size which i'ven't set at all).
    The horizontal scrollbar apperas only the when the the JEditorPanes size is reduced lesser than its defult size which has been set (probably by the layout manager).
    I want to get rid of this behaviour of the JEditorPane such that horizontal Scollbar should apper as soon as the user reduce the size of the window displaying the above component hierarchy (parent container->JScrollPane->JEditorPane) and no line wrapping occurs.
    Note : 1. JEditorPane doesn'y have linewrapping API like JTextArea
    2. Its default and automatic linewrapping behaviour is conforming
    with word line wrapping where lines are broken at the end of a
    word which can be fully accomodated.

  • Automatic word wrapping in context help window?

    Hello together
    I don't get the way how labview does the automatic word wrapping in the context help window. Does somebody know that?
    regards
    Woodi

    I see my problem. Everytime I do just a single carriage return, or a return, the automatic line wrapping doesn't work. But it works fine, if I do two carriage returns.
    This is actually not exactly what I want, but at least the user doesn't have to scroll.
    Woodi

  • JTextArea soft line wrap

    Hi,
    I'm using JTextArea in which the text is displayed and the WordWrap option is disabled.
    I want to get string, line by line, such that, i get the string only till the last displayed char on that line (i.e. without moving the horizontal scrollbar to right). The string outside the visible JTextArea towards right is to be considered on a new line just as the line wraps.
    In other words i have to do a soft line wrap on string within JTextArea.
    For that how do i get the string till the last displayed char on JTextArea line?
    Thanking you in advance,
    -Manish.

    I'm writing an Client - Server application(chat)So why do you need to the "br" tags? Just send the text over and let the user decide how wide they want the chat window to be. Some user might like tall and narrow windows. Other will like short and wide. Then the chat window will wrap or unwrap the text as required.
    Also, you can't control what computers each user is using. Different GUIs use different Fonts, which means the text may wrap at different places automatically anyway. So you should not be trying to format it. If you truly do need a new line, then the way to do this is by using the enter key.
    Also you approach of adding the "br" tag when the text wraps is wrong. What if the user then deletes some text from the first line? You will need to remove the tag. This is unnecessary work. So the cusomizing of the text by adding "br" tags should be done when you sent the text, not while the user is typing it.
    However, if you really want to proceed with this approach then I think you can use the Utilities. class. By using the getRowStart() and getRowEnd() methods you can iterate through the text and add "br" tags as required.

  • Line wrapping and font styles?

    Hi,
    If I have a piece of text which I would like to see line wrapped, and font styled, how should I do that?
    javax.swing.JTextArea has the capabilities to set line wrapping to on.
    javax.swing.JTextPane has the capabilities to set font styles like bold, italic and so on.
    But what if you have a piece of text you don't know the (possible) length of (so you would like to have line wrapping), AND to which you want to apply font styles to. JTextArea and JTextPane are siblings, not ancestors. So I can't use it. I have looked in the code to see if I could use pieces of code in my own program. But not luck.
    Do you have a suggestion for me?
    TIA,
    Abel

    camickr wrote:
    JTextPane wraps by default. I'm not sure what your problem is.I did not know that JTextPane did wrap. And I could not find it in the documentation.
    But thanks for the information!

  • Capture standard output of another command-line program, with characters not in current codepage

    I'm using ProcessStartInfo.RedirectStandardOutput and Process.BeginOutputReadLine to capture the standard output of another program (specifically,
    youtube-dl.exe) and save them into a string variable.
    However the result variable contains only usual characters of my language such as traditional Chinese and English letters; characters such as Korean or Latin letters with accents simply vanished.
    I File.WriteAllText-ed the result variable and checked the file using serveral text editors, so I'm sure they're lost, not that they exist and merely be un-display-able by console window.
    Plainly executing youtube-dl in Windows Command Prompt displays complete messages including these foreign characters.  
    My youtubeDL_process.OutputDataReceived is simply:
    (s, e) => { if(!string.IsNullOrWhiteSpace(e.Data)) this._filename = e.Data; }
    How to make the redirected standard output string with foreign characters complete, just like one directly generated in a command prompt?

    Try a different experiment of starting your second EXE:
    string exe =
    @"path to your EXE with arguments . . .";
    Process p =
    new
    Process
    StartInfo =
    UseShellExecute = false,
    RedirectStandardOutput = true,
    StandardOutputEncoding = Encoding.UTF8,
    FileName = "cmd.exe",
    Arguments = "/C chcp 65001 > null && " + exe
    p.Start();
    string output = p.StandardOutput.ReadToEnd();
    p.WaitForExit();
    Specify the full path in the exe variable, using quotation marks if it contains spaces.
    Then check the value of output.

  • HTML lines wrap around in the HTML report output

    I seem to have a problem with lines wrapping around in HTML format. If the report is ran using the report builder the output will fit in every line without wrapping the information.
    While if I run the same report -- to present the info using a browser -- using JSP in HTML format, the same lines will wrap around the info in two lines.
    Here is how I send this document to the server :
    pwrmpos_n: report=pwrmpos.rep destype=cache desformat=html server=rep60_wforms2 %*
    Any help will be appreciated

    Hello Hernando,
    I am a little confused, the command that you describe is only for paper layout...
    Anyway, let's try to help you:
    - on your paper layout you specified a width for each column (when you resize it in the Paper Design window). When you run the paper layout with HTML (ot HTMLCSS) as format the width is present in the <TD> tag.
    - for the JSP, by default the HTML does not contains any size for the table and cell so the browser size the table to fit in the screen.
    If you do not want any wrapping in the JSP just modify the HTML tags to specify a width, or wrap for the TD tag.
    Regards
    Tugdual

  • Automatic line break in table of contents?

    I have several long chapter titles that collide with the page number. Is there a way to set an automatic line break or something that will break the line at the same place? I could do this manually of course, but if I update the toc it would disappear agein. See image below. Thanks

    Rekeguf wrote:
    I have several long chapter titles that collide with the page number. Is there a way to set an automatic line break or something that will break the line at the same place? I could do this manually of course, but if I update the toc it would disappear agein. See image below. Thanks
    It's not clear if "Hm?" if you are asking about the appearance of the dot leader and page reference that follow the second line of the TOC entry. Are you asking if this is an acceptable form? Are you thinking that the dot leader and page reference should appear on the first line of the TOC entry, and have the excess text wrap around?
    Have you tried applying the "no break" property to the last few words of the title paragraph in the main text, or replacing standard spaces between the last few words with non-breaking spaces, to see how the TOC process works with them?
    [EDIT[
    If applying the non-break property works satisfactorily for your needs, you can automate the process partially by manually inserting a "non-joiner" character in the main title text, at the point where you'd like the line to break, and define the TOC-entry paragraph style to have a nested style that applies the no-break property starting from the non-joiner to the end of the paragraph.
    Search Google for "InDesign non-joiner" and " InDesign no break" without quotes, to find information from all over the Web, as well as topics in these Adobe forums and in InDesign help."
    [/EDIT]
    HTH
    Regards,
    Peter
    Peter Gold
    KnowHow ProServices
    Message was edited by: peter at knowhowpro

  • Creating Packages from BLOB field contents, line wrap problems

    Good afternoon,
    we use an in-house developed database-driven update system to update both our databases and filesystems, the system itself performs really well but there is still one problem I can't fix without some expert help:
    the code of to-be-updated Oracle packages is stored inside of a BLOB field, the BLOB field will contain both the package specification and package body and needs to be split into two parts to first execute the spec and then to execute the package body (I tried to execute both in a single step but this didn't work). This works for packages with less than 32767 characters and also works in some other cases but I found one case where the executed code contains an extra line wrap right in the middle of a word.
    To make it more clear (I hope it's comprehensible), imagine the following database content:
    CREATE OR REPLACE Package
    MyPack
    AS
    [... a lot procedure headers ...]
    END MyPack;
    CREATE OR REPLACE
    Package Body MyPack AS
    [... a lot more procedures ...]
    PROCEDURE myTest (intID OUT integer)
    AS
    BEGIN
      SELECT count (*) into intID FROM MyTa[--this is where the dbms_lob.substr() ends --]ble;
    END;
    END MyPack;My code searches for the second occurrence of the "Create or replace package", splits the code into spec and body, executes the specification and keeps on adding the rest of the code to a VARCHAR2A variable called "storedCode" from the BLOB. Now in the above example, after the specification has been removed from the string, the remaining characters (ending with the "MyTa" string) are added to the varchar2a variable, the next line is fetched from the BLOB via "dbms_lob.substr()" and added as long as dbms_lob.substr() does not return a NULL value (end of BLOB). When the code is executed after all has been fetched, the generated Package Body will contain an extra line wrap right in the middle of the "MyTable" word compiling the package invalid.
    This is the procedure code I use (definitely improvable, I'm better in MSSQL and MySQL dialects ...) to load, parse and execute the BLOB content:
       -- to run package code
      procedure runPackageCode (stepRef integer)
      AS
        numLines integer default 1;
        pos     integer default 1;
        storedCode    LOG_CHANGEDOBJECT.STOREDOBJECT%type;
        objectCursor  integer;
        lSqlOut     integer;
        sqlCommand  dbms_sql.varchar2a;
        emptyCommand dbms_sql.varchar2a;
        pIsError integer := 0;
        pErrorMsg varchar2(200) := '';
        updateRef integer := 0;
        currentUpdate integer := 0;
        schemaReference varchar2(20);
        -- required to do string cutting
        strLine varchar2(32767);
        strLeftFromSlash varchar2(32767);
        strRemaining varchar2(32767);
        intDelimiterPos integer := 0;
      begin
        -- retrieve update ID
        SELECT log_update_ref INTO currentUpdate FROM link_update_with_taskstep WHERE log_taskstep_ref = stepRef;
         begin
            select storedobject, change_area
            into storedCode, schemaReference
            from vw_storedobjects
            where step_id = stepRef;
         exception
          when no_data_found then
            pIsError := 1;
            pErrorMsg := 'Invalid SQL ID ' || stepRef;
            pkg_generic.LogError(updateRef, 'LocalUpdater', stepRef, 'Run package code failed: ' || pErrorMsg);
         end;
          if pIsError = 0 then     
            begin
              -- change schema
              execute immediate 'alter session set current_schema = ' || schemaReference;         
              objectCursor := dbms_sql.open_cursor;   
              loop
                strLine := UTL_RAW.CAST_TO_VARCHAR2(dbms_lob.substr(storedCode, 32767, pos));
                intDelimiterPos := regexp_instr(strLine, '\s*Create\s*or\s*Replace\s*Package', 2, 1, 0, 'i');
                while intDelimiterPos > 0
                loop
                  -- '/' found, execute currently stored statement
                  strLeftFromSlash := substr(strLine, 1, intDelimiterPos-1);
                  strLine := substr(strLine, intDelimiterPos);
                  -- execute the extracted part without any '/' in it
                  sqlCommand(numLines) := regexp_replace(strLeftFromSlash, '(^|\s+)/(\s+|$)', '', 1, 0, 'm');
                  if (sqlCommand(numLines) is not null) then
                    objectCursor := dbms_sql.open_cursor;   
                    dbms_sql.parse(objectCursor, sqlCommand, 1, numLines, true, dbms_sql.native);
                    lSqlOut := dbms_sql.execute(objectCursor);
                    dbms_sql.close_cursor(objectCursor);
                  end if;
                  -- reset sqlCommand
                  sqlCommand := emptyCommand;
                  -- reset line counter and store remaining string
                  numLines := 1;
                  -- check for further '/'s           
                  intDelimiterPos := regexp_instr(strLine, '\s*Create\s*or\s*Replace\s*Package', 2, 1, 0, 'i');
                end loop;
                -- add the remaining strLine to the sqlCommand
                strLine := regexp_replace(strLine, '(^|\s+)/(\s+|$)', '', 1, 0, 'm');
       --> I assume this line breaks the code, lpad()'ing the content to move it to the end of a varchar2a line didn't help
                sqlCommand(numLines) := strLine;
                exit when sqlCommand(numLines) is null;
                pos := pos+32767;
                numLines := numLines+1;
              end loop;
              objectCursor := dbms_sql.open_cursor;   
              dbms_sql.parse(objectCursor, sqlCommand, 1, numLines, true, dbms_sql.native);   
              lSqlOut := dbms_sql.execute(objectCursor);
              dbms_sql.close_cursor(objectCursor);
              commit;
              -- reset schema
              execute immediate 'alter session set current_schema = UPDATE_DB';
              -- set state to installed
              pkg_update.setstepstate(stepRef, 'Installed');
        exception
        when others then
              -- reset schema
              execute immediate 'alter session set current_schema = UPDATE_DB';
              -- set state to installFailed
              pkg_update.setstepstate(stepRef, 'InstallFailed');
              pkg_generic.LogError(updateRef, 'Database', stepRef, 'Run package code failed: ' || sqlerrm);
        end;
        end if;
      END;    Thanks if you kept on reading so far, I would really appreciate any feedback!
    Regards, Sascha

    Welcome to the forum!
    Whenever you post provide your 4 digit Oracle version (result of SELECT * FROM V$VERSION).
    Thanks for providing an easy-to-understand problem statement and for using code tags.
    >
    the code of to-be-updated Oracle packages is stored inside of a BLOB field
    >
    This should be stored in a CLOB since it is character data. Why are you using BLOB?
    >
    the BLOB field will contain both the package specification and package body and needs to be split into two parts to first execute the spec and then to execute the package body
    >
    Good, clear problem statement. So why doesn't your code do just what you said it should do: 1) split the code into two parts, 2) execute the spec and 3) execute the body.
    Instead of writing code that does these three relatively simple steps your code tries to combine splitting and executing and mushes/mashes it all together. The result, as you found, is code that is hard to understand, hard to debug, doesn't work and doesn't report on what it is doing.
    Code like this doesn't have a performance issue so the code should implement the simple step-by-step process that you so elegantly stated in your problem description:
    1. split the code into two parts
    2. execute the spec
    3. execute the body
    My advice is to refactor your code to perform the above steps in the proper order and to add proper exception handling and reporting for each step. Then when a step isn't working you will know exactly where and what the problem is.
    Here are my recommendations.
    1. Add two CLOB variables - one will hold the spec, the second will hold the body
    2. Add a comment (you have some good ones in the code now) for every step no matter how trivial it may be
    3. Add exception/error handling to EVERY STEP
    Your code for the first step has a comment but no exception handling. What should happen if you don't get any data? Why aren't you validating the data you get? Dynamic SQL using table-driven data is great, I love it, but you MUST validate that the data you get is what you expect to get.
        -- retrieve update ID
        SELECT log_update_ref INTO currentUpdate FROM link_update_with_taskstep WHERE log_taskstep_ref = stepRef;Recommended
        -- step 1 - retrieve update ID - This is the id that determines BLAH, BLAH, BLAH - add appropriate to tell a new developer what this ID is and what it means.
        BEGIN
            SELECT log_update_ref INTO currentUpdate FROM link_update_with_taskstep WHERE log_taskstep_ref = stepRef;
        EXCEPTION
            WHEN ??? THEN -- what should happen if step 1 fails? Do it here - don't default to an exception handler that is several pages away.
        END;Your code
         begin
            select storedobject, change_area
            into storedCode, schemaReference
            from vw_storedobjects
            where step_id = stepRef;
         exception
          when no_data_found then
            pIsError := 1;
            pErrorMsg := 'Invalid SQL ID ' || stepRef;
            pkg_generic.LogError(updateRef, 'LocalUpdater', stepRef, 'Run package code failed: ' || pErrorMsg);
         end;
    Good - except there is no comment that says what this does - I assume that the query above and this block are the 'retrieve update ID ' step?
    You log an error message and set the error flag to '1'. But since you don't want to continue why aren't you exiting the procedure and returning right here?
          if pIsError = 0 then     
            beginSo now you check the error flag and do several pages of code if there were no errors.
    I don't like that 'inverted' logic.
    If you don't want to continue then STOP right now! Don't make a developer scan through pages and pages of code to find out you really aren't doing anything else if there was an error.
    Either put a RETURN statement in the exception handler above or change your code to
          if pIsError = 1 then     
            RETURN;
          end if;Now the rest of the code doesn' t have to be indented; you will never get there if there is an error. Check for errors after every step and exit right then as appropriate.
              -- change schema
              execute immediate 'alter session set current_schema = ' || schemaReference;         
              objectCursor := dbms_sql.open_cursor;   
              loop
                strLine := UTL_RAW.CAST_TO_VARCHAR2(dbms_lob.substr(storedCode, 32767, pos));
                intDelimiterPos := regexp_instr(strLine, '\s*Create\s*or\s*Replace\s*Package', 2, 1, 0, 'i');
                while intDelimiterPos > 0
                loopThis code mixes all of the steps together into one giant mess. You open a cursor, try to split the BLOB into spec and body and try to parse and execute both all within a double nested loop.
    Even if that works correctly another developer will have a hard time understanding what the code is doing and fixing it if it goes wrong. And it will go wrong if you let me test if for you because I will put garbage into the BLOB for the spec, body or both to make sure it breaks and to see how your code handles it.
    I suggest you rewrite this double nested loop to perform the three steps separately.
    1. split the code into two parts
    a. put the spec into one new CLOB variable and the body into the other.
    b. use DBMS_OUTPUT (or a work table) to output the spec and body so you can see what the code is and make sure the 'split' process worked properly. You probably created that BLOB by manually concatenating the SPEC and BODY to begin with so now create a SPLIT process to split them again and give them back to you. This is such a fundamental component that I suggest creating a new SPLIT_MY_BLOB procedure. This procedure would take a BLOB and return two CLOBS as OUT parameters: one CLOB is the spec and one is the body. Then you can reuse this 'split' procedure in other code or more complex versions of code. Modular programming is the key.
    2. execute the spec - Now have a step that executes the spec and does something appropriate if the step succeeds or if it fails. I mean, do you really want to do execute the body if the spec execution fails? What do you want to do? Should you delete the body and spec? If you don't you might wind up with an INVALID body based on old code and an INVALID spec based on the new code you were trying to use. How will anyone, including you, know that the spec and body in the ALL_SOURCE view is really two different versions of things?
    This suggests that for your use case you may want to consider DROPPING the entire package, spec and body, before trying to recreate them both. At least if the package is totally missing anyone will know that the entire thing needs to be put back. Ahhhh - but to do that you need to know the package name so you can drop it. Than may require adding another step to get the package name from your data-driven table and adding a DROP PACKAGE step.
    3. execute the body - This step executes the body. Hmmmm - we have two nearly identical steps. So why don't you create a new function/procedure that takes a CLOB as input, uses dynamic sql to execute it and returns a result code. That would be useful. Then you could execute ANY sql stored in a CLOB and have a generic function that you can use for other things.
    Right now you are using the VARCHAR2 table version of DBMS_SQL.PARSE but you would change this to use the CLOB version.
    The end result of this refactoring is a main function/procedure that acts as the CONTROL - it decides what to do and what data (BLOB) to do it with. But it doesn't actually do ANY of the work. It just controls what is done.
    And you have a couple of generic, reuseable functions that actually do the work. One knows how to split a CLOB into spec and body. The other knows how to use dynamic SQL to execute a CLOB.
    Now you have a modular architecture that is easy to understand, easy to code and easy to test.

  • SQL Plus Text is wrapping after 80 characters.

    The following is the sql I am using to spool the data into a file. However, I am confused with the output. The text is wrapping after 80 characters and it is adding blank lines after each column in the select. Am I missing some thing here. I appreciate your help.
    set echo off
    set feedback off
    set termout off
    set heading off
    set verify off
    set pages 0
    set long 20000
    set linesize
    clear columns
    spool /opt/consort/hari/hl7_msgs_533.txt
    select rtrim(msh_seg) ||
    rtrim(pid_seg) ||
    rtrim(pv1_seg) ||
    rtrim(orc_seg) ||
    rtrim(zri_seg) ||
    rtrim(obr_seg),
    segment_value
    from hl7_msgs where message_id = 1;
    spool off;
    Here is the output.
    PID|1|007985541|007985541||MOORE,WILLIE,||11-JAN-90|M|||3000 DOLFIELD AVE^^TAL
    TIBORE^CP^21215||(510) 766-7000||||BAP||100-10-1000||||||||||||^M
    PV1|1 |I|ICU^S412^A||||JAKOBOVITS,JULIAN,MD,MD|,,,||MED|||||||JAKOBOVITS,JULIA
    N,MD,MD|I ||||||||||||||||||0 ||||||||09-NOV-97|18-NOV-97||||||||^M
    ZRI|1 |LIBRARY GROUP|FILE RM|FILE RM|10-NOV-97||S412|||RAD|^M
    OBX|1 |TX|ULT00004^VENOUNI/US^VENOUS IMAGING WITH DOPPLER|||~~RIGHT LOWER EXTR
    EMITY VENOUS DOPPLER SONO, 11-10-97, -8965~CLINICAL INDICATION: cellulitis, r/o
    DVT~~The right common femoral vein, superficial femoral vein and popliteal veins
    were scanned using color flow, duplex and B-mode scanning. The veins were comp
    ressible and showed spontaneous flow which augments normally with compression of
    the calf.~~IMPRESSION:~~No evidence of deep venous thrombosis in the right femo
    ral and right popliteal veins. ~~ ||||||F ||||784|CAMP,LIBA,DD,CD||^M
    OBR||9711102125132|35|ULT00004^VENOUNI/US^VENOUS IMAGING WITH DOPPLER|||10-NOV-9
    7|10-NOV-97||||||||JAKOBOVITS,JULIAN,MD,MD||||||12-NOV-97|||||||||DOPPLER FLOW S
    TUDIES OF R LEG R\O DVT|CAPITAL,SUSAN,CD,|||FORD,VONDA,SKETERS,|||||||||^M
    ~******************************************
    ~
    ~

    It still wraps up the output.
    You may have embedded carriage returns in your columns.
    Let me explain you with an example.
    SQL> create table mytable(col1 varchar2(80));
    SQL> insert into mytable
      2  select lpad('ab',80,'cd') from dual;
    1 row created.
    SQL> select lpad('ab',50,'cd')||chr(10)||lpad('ab',29,'cd') from dual
      2 
    SQL> insert into mytable
      2   select lpad('ab',50,'cd')||chr(10)||lpad('ab',29,'cd') from dual;
    1 row created.
    SQL> select * from mytable;
    COL1
    cdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdab
    cdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdab
    cdcdcdcdcdcdcdcdcdcdcdcdcdcab

  • Issue with PO change output - Service line items

    Hi All,
    This is issue with PO change output. We have PO with line item 10, 20 and item 10 has 4 service line items. PO is approved and initial print out is taken.
    Some one goes and makes changes to 1st service line items of PO line item 10.
    A change output gets triggered. When this output is printed, it prints line item 10 details. This is standard functionality as this item is changed. But its printing all the service line items for this PO line item. Consider a case where there are 3000 service lines for a PO item. If I add 1 service item to this PO line item, the change form prints 3001 services for that line item. There were no changes done to first 3000 service line items.
    Currently PO change form takes care of changes at PO line item but it does not take care of changes at service line item level.
    Is there any setting that needs to be done for this so that it only considers the changes at Service line item level also.
    Regards,
    Shahu

    If you're using a standard form, send a message to SAP. Otherwise make a change in the form.

  • Problems with JTextPane line wrapping

    Hi to all.
    I'm using a code like this to make editable a figure that I paint with Java 2D. This JTextPane don't has a static size and for that, the text in it cannot be seen affected by the natural line wrap of the JTextPane component. The problem is that I have to set a maximun size for the JTextPane and I want to use the line wrap only when the width of the JTextPane be the maximun width. How can I do this?
    public class ExampleFrame extends JFrame {
        ExamplePane _panel;
        public ExampleFrame() {
            this.setSize(600, 600);
            this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            _panel = new ExamplePane();
            getContentPane().add(_panel);
            this.setVisible(true);
        public static void main(String[] args) {
            ExampleFrame example = new ExampleFrame();
        public class ExamplePane extends JPanel {
            public ExamplePane() {
                this.setBackground(Color.RED);
                this.setLayout(null);
                this.add(new ExampleText());
        public class ExampleText extends JTextPane implements ComponentListener, DocumentListener,
                KeyListener {
            public ExampleText() {
                StyledDocument doc = this.getStyledDocument();
                MutableAttributeSet standard = new SimpleAttributeSet();
                StyleConstants.setAlignment(standard, StyleConstants.ALIGN_RIGHT);
                doc.setParagraphAttributes(0, 0, standard, true);
                this.setText("Example");
                this.setLocation(300, 300);
                this.setSize(getPreferredSize());
                this.addComponentListener(this);
                getDocument().addDocumentListener(this);
                this.addKeyListener(this);
            public void componentResized(ComponentEvent e) {
            public void componentMoved(ComponentEvent e) {
            public void componentShown(ComponentEvent e) {
            public void componentHidden(ComponentEvent e) {
            public void insertUpdate(DocumentEvent e) {
                Dimension d = getPreferredSize();
                d.width += 10;
                setSize(d);
            public void removeUpdate(DocumentEvent e) {
            public void changedUpdate(DocumentEvent e) {
            public void keyTyped(KeyEvent e) {
            public void keyPressed(KeyEvent e) {
            public void keyReleased(KeyEvent e) {
    }Thanks for read.

    I'm working hard about that and I can't find the perfect implementation of this. This is exactly what I want to do:
    1. I have a Ellipse2D element painted into a JPanel.
    2. This ellipse is painted like a circle.
    3. Into the circle there's a text area, that user use to name the cicle.
    4. The text area is a JTextPane.
    5. When the user insert a text area, it can increase it size, but it can't be bigger than the circle that it contains.
    6. There is a maximun and a minimun size for the circle.
    7. When the user write into de JTextPane, it grows until arriving at the limit.
    8. When the JTextPane has the width size limit, if the user writes more text into it, the JTextPane write it into another line.
    9. The size of the JTextPane has to be the optimun size, it cannot have empty rows or empty lines.
    This code does all this except 9, cause if the user remove some text of the text area, the form of the JTextPane changes to a incorrect size.
    public class ExampleFrame extends JFrame {
        ExamplePane _panel;
        public ExampleFrame() {
            this.setSize(600, 600);
            this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            _panel = new ExamplePane();
            getContentPane().add(_panel);
            this.setVisible(true);
        public static void main(String[] args) {
            ExampleFrame example = new ExampleFrame();
        public class ExamplePane extends JPanel {
            public ExamplePane() {
                this.setBackground(Color.RED);
                this.setLayout(null);
                this.add(new ExampleText());
        public class ExampleText extends JTextPane implements ComponentListener, DocumentListener,
                KeyListener {
            public ExampleText() {
                StyledDocument doc = this.getStyledDocument();
                MutableAttributeSet standard = new SimpleAttributeSet();
                StyleConstants.setAlignment(standard, StyleConstants.ALIGN_CENTER);
                doc.setParagraphAttributes(0, 0, standard, true);
                this.setText("Example");
                this.setLocation(300, 300);
                this.setSize(getPreferredSize());
                //If it has the maximun width and the maximun height, the user cannot
                //write into the JTextPane
                /*AbstractDocument abstractDoc;
                if (doc instanceof AbstractDocument) {
                abstractDoc = (AbstractDocument) doc;
                abstractDoc.setDocumentFilter(new DocumentSizeFilter(this, 15));
                this.addComponentListener(this);
                getDocument().addDocumentListener(this);
                this.addKeyListener(this);
            public void componentResized(ComponentEvent e) {
            public void componentMoved(ComponentEvent e) {
            public void componentShown(ComponentEvent e) {
            public void componentHidden(ComponentEvent e) {
            public void insertUpdate(DocumentEvent e) {
                Runnable doRun = new Runnable() {
                    public void run() {
                        int MAX_WIDTH = 200;
                        Dimension size = getSize();
                        Dimension preferred = getPreferredSize();
                        if (size.width < MAX_WIDTH) {
                            size.width += 10;
                        } else {
                            size.height = preferred.height;
                        setSize(size);
                SwingUtilities.invokeLater(doRun);
            public void removeUpdate(DocumentEvent e) {
                this.setSize(this.getPreferredSize());
            public void changedUpdate(DocumentEvent e) {
            public void keyTyped(KeyEvent e) {
            public void keyPressed(KeyEvent e) {
            public void keyReleased(KeyEvent e) {
    }I know that the problem is into the removeUpdate method, but I have to set to the JTextPane, allways the optimun size, how can I do this?
    Thanks to all.
    Edited by: Daniel.GB on 06-jun-2008 18:32

  • How to remove actual XML content from Weather Web Service Client's standard output?

    Hi,
    I tried web service example examples.webservices.rpc.weatherEJB.Weather with WLS6.1,
    it works fine, but on client side, ( either Client or DClient ), I always see
    the actual XML content being sent and received from standard output, like
    "------------- RECEIVING XML -------------", and I can't find any related System.out.println
    statement in client source code, Please explain how to remove it, may there is
    a configurable parameter for this? any help will be highly appreciated.
    Thanks
    Naichen

    Hi Naichen,
    To suppress showing the actual SOAP request and response going to standard out,
    change the following line in the Client.java:
    h.put("weblogic.soap.verbose", "true" );
    to read:
    h.put("weblogic.soap.verbose", "false" );
    Regards,
    Mike Wooten
    "Naichen Liu" <[email protected]> wrote:
    >
    Hi,
    I tried web service example examples.webservices.rpc.weatherEJB.Weather
    with WLS6.1,
    it works fine, but on client side, ( either Client or DClient ), I always
    see
    the actual XML content being sent and received from standard output,
    like
    "------------- RECEIVING XML -------------", and I can't find any related
    System.out.println
    statement in client source code, Please explain how to remove it, may
    there is
    a configurable parameter for this? any help will be highly appreciated.
    Thanks
    Naichen

Maybe you are looking for

  • Transfer info from hp laptop to new macbook pro

    hello I just recently brought a macbook pro for school. as the title states i am going from pc (windows XP) to mac (snow leopard), finally. I have an external harddrive but have a few questions on syncing my iPhone 3G and iPod classic over. -Should i

  • How do i connect my i phone 3gs to laptop

    how do i connect to put music from my i tunes to phone ?

  • Female to Female Thunderbolt Coupler

    Has anyone could find and can direct me to source for a female to female thunderbolt coupler? My plan is to go from firewire to thunderbolt and thunderbolt to ethernet to place a G-raid pro, which only has firewire 800 ports, onto my network.  Unfort

  • PDA driving me crazy!

    Rather than go into all the details of my problems.. Is there someone who can show me a VERY SIMPLE analog input reading of channel 0 (CF6004) using the Ipaq PDA, and a write to file in text format. I want to be able to vary the sample rate, and cont

  • WD Raptor question..

    Hello, I am planning on picking up the new mac pro 8-core 2.8 tomorrow and I am thinking about getting a raptor for the boot drive. At Newegg there seems to be several models of Raptors, but not sure which is best and which one I should get it....doe