Spooling via DBMS_OUTPUT.PUT_LINE without new lines

Is there a way to spool output to a file using DBMS_OUTPUT.PUT_LINE so that each line is placed on a same line? ie spool all output to one line?
I guess this probably goes against design of PUT_LINE as it is mean to put a line.
What I am trying to do is build a DOS command via a SQL script that spools to a file all on one line. this is so that when the spool file is run (either as a .bat or .sh file) the command can execute correctly since it is all on one line.
Any ideas?
Leigh.

You can try below code.
create or replace procedure p1(P_AMU varchar2) as
cursor cu_get_workbooks is
select '/workbook "'||doc_created_by||'.'||doc_name||'"' workbook
from (
SELECT EUL4_DOCUMENTS.DOC_NAME,
DOC_CREATED_BY
FROM EUL4_DOCUMENTS EUL4_DOCUMENTS
WHERE DOC_CREATED_BY=P_AMU;
str varchar2(4000);
begin
for cu_rec in cu_get_workbooks loop
str := cu_rec.workbook;
end loop;
insert into temp values (str);
end;
And then you can write a sql script:
exec p1(&&AMU);
select * from temp;
Regards,
Vidyadhar Singh.

Similar Messages

  • Report output on one Line, without new line (cariage return)

    Hello I use a user defined report with style plsql. The output is with many dbms_output.put_line and is displays in only one line. May I ask you to get the output on more the one line. For eatch dbms_output I wont to have a new line (cariage return). Many thanks for help in advance

    In the body of the report, I used HTML tags to control the appearance.
    For example, to see what database features you have used in your database today, the following code works well:
    begin
    dbms_output.enable(1000000);
    dbms_output.put_line('<PRE>');
    for rc in ( select output from
       table(dbms_feature_usage_report.display_text)
               ) loop
       dbms_output.put_line(rc.output);
    end loop;
    dbms_output.put_line('</PRE>');
    end; This yields the following output
    DB FEATURE USAGE report for
    DB Name         DB Id     Release    Total Samples Last Sample Time 
    ABCPROD        900004321 10.2.0.1.0             78 09-Oct-09 18:29:17
    DB Feature Usage Summary                       DB/Release: ABCPROD/10.2.0.1.0
    -> This section displays the summary of Usage for Database Features.
    -> The Currently Used column is TRUE if usage was detected for
    -> the feature at the last sample time.
                                              Curr-                                
                                              ently Detected    Total Last Usage   
    Feature Name                              Used    Usages  Samples    Time      
    Automatic SQL Execution Memory            TRUE        78       78 10/09/09 18:29
    Automatic Segment Space Management (syste TRUE        78       78 10/09/09 18:29
    etc.However if you comment the lines with the beginning and terminating tags for preformatted text, then you get output confined to one line that starts out like:
    DB FEATURE USAGE report for DB Name DB Id Release Total Samples Last Sample Time ------------ ----------- and you'll have to scroll to the right or figure how you want to break it up -- That's too much work.
    My configuration:
    Windows XP SP3
    SQL Developer 1.5.5 Build MAIN-5969
    Java(TM) Platform     1.6.0_06

  • FCC For csv WITHOUT new lines

    Hello to everybody,
    I trying to do a file content conversion for the following file :
    a;b;c;d;a;b;c;d;a;b;c;d
    Problem :
    file has 4 fields meaning that there is not a nl after each line . The correct file for instance have to be
    a;b;c;d
    a;b;c;d
    a;b;c;d
    Target structure :
    line
    field a
    field b
    field c
    field d
    line
    field a
    field b
    field c
    field d
    etc...
    is this achievable ?
    just to be more clear :
    The incoming csv file has all it's lines continuoysly : no new line after each record ..
    Edited by: Laurent Fournier on Jan 20, 2011 2:13 PM

    Hi Laurent Fournier,
    As you said, if your given a flat file containing "a;b;c;d;a;b;c;d;a;b;c;d" you will replace every 4th ";" with "new line". Then you want it to be converted into XML.
    Now let's try to achieve the same using SAP PI. As Sender File FCC can not handle this situation, it should be handled in Adapter module or Mapping.
    Let's do it in simple Java Mapping (as Graphical and XSLT can not handle non XML input).
    package com.mapping;
    import java.io.*;
    import com.sap.aii.mapping.api.*;
    public class SimpleJavaMapping_PI71 extends AbstractTransformation
         public void transform(TransformationInput transformationInput, TransformationOutput transformationOutput) throws StreamTransformationException
              try
                   InputStream inputstream = transformationInput.getInputPayload().getInputStream();
                   OutputStream outputstream = transformationOutput.getOutputPayload().getOutputStream();
                   byte[] b = new byte[inputstream.available()];
                   inputstream.read(b);
                   String strContent = new String(b);
                   float fStrContent = strContent.length();
                   int iCountColon = 0;
                   StringBuilder strOutputContent = new StringBuilder();
                   for (int i = 0; i < fStrContent; i++)
                        char cTemp = strContent.charAt(i);
                        if (!";".equals(cTemp))
                             strOutputContent.append(cTemp);
                        } else
                             if (4 != iCountColon)
                                  strOutputContent.append(cTemp);
                                  iCountColon++;
                             } else
                                  strOutputContent.append(System.getProperty("line.separator"));
                                  iCountColon = 0;
                   outputstream.write(strOutputContent.toString().getBytes());
              } catch (Exception exception)
                   exception.printStackTrace();
    You can also implement this logic in adapter module in sender channel and then use FCC to convert it into XML. Or you can implement above Java Mapping, followed by another Java Mapping to convert output of above code into XML using DOM parser.
    Regards,
    Raghu_Vamsee

  • New line character not read..

    Hi guys;
    i'm writing a jsp application that has to write into a file...
    the file has to be in the form of multiple lines of the form : login=password
    i did the following:
    String s=new String("");
    String s2=new String("");
    BufferedReader in = new BufferedReader(new FileReader(
    "c:\\myflash\\myfile.txt"));
    while((s=in.readLine())!= null){
    s2 +=s+'\n';
    s2 +=login+"="+password;
    in.close();
    PrintWriter outer = new PrintWriter(new BufferedWriter(new FileWriter(
    "c:\\myflash\\myfile.txt")));
    outer.println(s2);
    outer.close();
    the problem is the following: when i run the applications the data are written in the file without new line ...
    it seems that the '\n' character did not got read!!
    I don' know what's the problem!
    please help!...

    are you testing this on Windows? Are you determining that the newline chars aren't there by opening the file in another program? Most Windows programs will not recognize the \n by itself. It needs the \r\n combination. You might want to use System.getProperty("line.separator"), which will return the correct OS-specific line separator character(s).

  • How to print new line using DBMS_OUTPUT package

    Hi,
    I am trying to print a new line using DBMS_OUTPUT package. but it do not print the new line.
    set serveroutput on size 200000
    set feedback on
    BEGIN
    DBMS_OUTPUT.PUT_LINE('First Line');
    DBMS_OUTPUT.PUT_LINE('');
    DBMS_OUTPUT.PUT_LINE('Second Line');
    END;
    I expect following output ...
    First Line
    Second Line
    but i got following output....
    First Line
    Second Line
    why DBMS_OUTPUT.PUT_LINE( '); is not printing a new line ?

    You can try the following:
    SQL> ED
    Wrote file afiedt.buf
      1  BEGIN
      2  DBMS_OUTPUT.PUT('ONE LINE...');
      3  DBMS_OUTPUT.PUT('SECOND LINE...');
      4  DBMS_OUTPUT.NEW_LINE;
      5  DBMS_OUTPUT.PUT_LINE('THIRD LINE WITH NEW LINE...');
      6  DBMS_OUTPUT.PUT('TEST');
      7  DBMS_OUTPUT.NEW_LINE;
      8  DBMS_OUTPUT.PUT_LINE('FOURTH LINE'||CHR(10)||'EXAMPLE');
      9  DBMS_OUTPUT.PUT_LINE(CHR(10));
    10  DBMS_OUTPUT.PUT_LINE('FIFTH LINE');
    11* END;
    SQL> /
    ONE LINE...SECOND LINE...
    THIRD LINE WITH NEW LINE...
    TEST
    FOURTH LINE
    EXAMPLE
    FIFTH LINE
    PL/SQL procedure successfully completed.Documentation:
    http://download-east.oracle.com/docs/cd/B19306_01/appdev.102/b14258/d_output.htm#i1000062

  • New line item insertion in delivery via EDI - PI

    hi,
    the requirement is to insert a new line item in the delivery.
    This new line item inserted should be done via an IDOC, which while entering the SAP will insert a new line item in the delivery.
    The question if this line item insertion should be done through the inbound FM in SAP or via XI/PI.
    How will this be done in PI??
    Thanks a lot

    Hai,
    How you delivery creating or updation working in ECC??
    like if you are using PI interface create/update delivery in ECC ,then you cae use PI only to insert new line item for material id.
    else if you want do manually you can create in VA02/VA42 TRASACTIONs or using function module also we can do that.
    option is yours.
    if you dont have much idea then better to talk with ABAP/Functional guys they will easily do this without PI.
    Regards,
    Raj

  • Output from dbms_output.put_line splits and move to next line

    Hi All,
    I am printing out a list using dbms_output.put_line its like
    One or more of following Required Parameters are missing:
    1. Primary Field
    2. Structure Field
    3. Structure
    Table
    4. List File Name
    5. Query Directory
    6. Query String
    but I don't know why third option is splitting and moving to second line. any idea? its not that long even then.
    thanks

    set linesize 150
    or set it as per your requirement

  • How to spool DBMS_OUTPUT.PUT_LINE from SqlPlus?

    Hi,
    i have a stored procedure test:
    procedure test is
    begin
    dbms_output.put_line('Test');
    dbms_output.put_line('Test2');
    dbms_output.put_line('Test3');
    dbms_output.put_line('Test4');
    dbms_output.put_line('Test5');
    end;
    I start the stored procedure out of sqlplus:
    spool C:\Temp\test.spl;
    exec test;
    commit;
    spool off;
    exit;
    My problem is no Test or Test2 appeared in the spool file.
    What should i do?
    thanks a lot

    create or replace procedure hmm as
    begin
    dbms_output.put_line('Test1');
    dbms_output.put_line('Test2');
    dbms_output.put_line('Test3');
    dbms_output.put_line('Test4');
    dbms_output.put_line('Test5');
    end;
    spool C:\Temp\test.spl;
    exec hmm;
    spool off;File content is:
    Test1
    Test2
    Test3
    Test4
    Test5
    PL/SQL procedure successfully completed.

  • DBMS_Output.put_line doesn't print in one single line

    Hi People,
    I am using 'DBMS_Output.put_line' in my procedure for the output. Here's the code:
    DBMS_OUTPUT.put_line('LOGIT_T. Detail records for act:'||v_count_act||',Detail records for Bal:'||v_count_bal||',Updated records for act:'||v_updat_act||',Updated records for bal:'||v_updat_bal||',Total records for act:'||v_count_act||',Total records for Bal:'||v_count_bal);
    When the procedure runs, it prints the output as shown below:
    LOGIT_T. Detail records for act:619,Detail records for Bal:324,Updated records
    for act:0,Updated records for bal:0,Total records for act:693,Total records for
    Bal:410
    As a result, when inserting this whole line into table, it only inserts the following text. Hence, ignores the rest of the text (table field width is 2000 bytes):
    LOGIT_T. Detail records for act:619,Detail records for Bal:324,Updated records
    Looks like, it is automatically wrapping the text to the next line. While I want the above output in a single line as shown below and to be inserted into my table the whole text:
    LOGIT_T. Detail records for act:619,Detail records for Bal:324,Updated records for act:0,Updated records for bal:0,Total records for act:693,Total records for Bal:410
    Any idea how to achieve this? Any parameter or setting I am missing here?
    Hope I made sense above and clearly described my situation.
    Thanks in advance guys!

    in sqlplus, you can use set linesize:
    SQL> set serverout on
    SQL> set linesize 10
    SQL> exec dbms_output.put_line('This is a line of text that exceeds 10 characters');
    This is a
    line of
    text that
    exceeds 10
    characters
    PL/SQL procedure successfully completed.
    SQL> set linesize 132
    SQL> exec dbms_output.put_line('This is a line of text that exceeds 10 characters');
    This is a line of text that exceeds 10 characters
    PL/SQL procedure successfully completed.

  • Blocking SA line item on creation of new lines or reset via userexit

    For a Schedule Agreement(SA ), tcode ME32L, when the following happens
        - new line item
        - reset a block
        - reset a delete
    I want to change the 'Deletion Indicator' (LOEKZ) to 'Block', value 'S', at the time of saving.
    As a standard, this field would have been blank.
    In EXIT_SAPMM06E_013 l assigned XEKPO-LOEKZ with value 'S' and updated the internal table.
    On run-time, this field (XEKPO-LOEKZ) is updated but after saving the SA, LOEKZ is not updated in table EKPO.
    I have checked EXIT_SAPMM06E_012, I cannot use it for what I want to do.
    Has anyone done something like this successfully?
    Any practical suggestons welcomed.

    Dear,
             Thanks for your reply, i changed the item category of SO line item and shedule line item in the xvbap and xvbep and i changed updkz to U. i have two item categories ( i.e YNAA and YNAB ) for YNAB system automaticallty creates Purchase requisation, If i change the item catergory  in the user exit TO_VBEP . system not creating the PR for YNAB. by the time control comes to TO_VBEP user exit system already detemining shedule line and sale order line items category in XVBAP and XVBEP . if  i change any thing at this place system giving error while saving .
                  Thanks in advance.
    Regards,
    Manoj
    Edited by: manoj kv on Dec 26, 2010 4:40 PM

  • Enhancement possiblity in dbms_output.put_line..!

    hey,
    I am having a strange client requirement.
    I am using dbms_output.put_line for output.But I was getting buffer flow error.
    Then i used utl_file to write log into a file but when due to some permission problem for FTP log file from unix directory to computer I can't use utl_file.
    Is there any possibility in dbms_output that if buffer flow error raise then
    2nd log file generate with new name and remaining log data written in new log file.
    My code in generally is below..
    SET BUFFER 1000000
    SET SERVEROUTPUT ON
    spool LMG_DBmigration_CP_DATA_Log.log
    Declare
    begin
    stmnts for DBMS_OUTPUT.PUT_LINE;
    stmnts for DBMS_OUTPUT.PUT_LINE;
    stmnts for DBMS_OUTPUT.PUT_LINE;
    stmnts for DBMS_OUTPUT.PUT_LINE;
    end;
    spool off
    exit;
    any idea ...?
    rgds,
    pc

    hey Saubhik,thanks for your answer.
    In my code,SET BUFFER 1000000 in 1st line.
    Is there any impact of this line on log buffering error?
    I am running my code via batch file..
    SET BUFFER 1000000
    SET SERVEROUTPUT ON
    spool LMG_Log.log
    Declare
    begin
    stmnts for DBMS_OUTPUT.PUT_LINE;
    stmnts for DBMS_OUTPUT.PUT_LINE;
    stmnts for DBMS_OUTPUT.PUT_LINE;
    stmnts for DBMS_OUTPUT.PUT_LINE;
    end;
    spool off
    exit;

  • Using DBMS_OUTPUT.PUT_LINE() to create a white space

    I had a script that I run on SQL*Plus to create a spool file output. How do I create a white space or skip a new line using the DBMS_OUTPUT.PUT_LINE()?
    e.g.
    DBMS_OUTPUT.PUT_LINE('+--------------------+');
    DBMS_OUTPUT.PUT_LINE('First Line..........');
    DMBS_OUTPUT.PUT_LINE('Second Line......');
    DBMS_OUTPUT.PUT_LINE(' ');
    DBMS_OUTPUT.PUT_LINE('Fourth Line........');
    DBMS_OUTPUT.PUT_LINE('+--------------------+');
    output on spool file should be like this:
    First Line..........
    Second Line......
    Fourth Line........
    but the output on spool file when run the script
    First Line..........
    Second Line......
    Fourth Line........
    --------------------

    hi
    it get a blank line u can simply use CHR function with argument 10
    like this
    declare
    begin
    dbms_output.put_line('ashish');
    dbms_output.put_line('+--------------------+');
    dbms_output.put_line('First Line..........');
    dbms_output.put_line('Second Line......');
    dbms_output.new_line();
    dbms_output.put_line('Fourth Line........');
    dbms_output.put_line(chr(10));
    dbms_output.put_line('ashish');
    end;
    regds

  • How to add a new line in SMS(Line Break).

    Hi All,
    I need to send SMS from PL\SQL Procedure
    The problem i have been facing is that the string being passed in as sms content is not parsing a newline character.
    It shows all content in one line.
    I need to break them in several lines.
    Give me a direction how to add a new line in SMS.
    Regards,
    Raj.

    Hi,
    Sure, Here it is
    CREATE OR REPLACE PROCEDURE APPS.AUTO_SMS_RTV_REPORT
    IS
    sender          VARCHAR2(1000);
    recipient     VARCHAR2(1000);
    message          VARCHAR2(4000);
    sub          VARCHAR2(1000)     := 'HELLO';
    dt1          varchar2(1000)     := to_char(sysdate,'DD-MON-YY');
    mailhost     VARCHAR2(30) := '10.7.7.xxx';     
    mail_conn     UTL_SMTP.CONNECTION;
    v_crlf VARCHAR2(2) := CHR(13)||CHR(10);
    CURSOR cur_Rejection_Records IS
                   SELECT DISTINCT
                        rt.VENDOR_SITE_ID               ,
                        pvs.email_address     VENDOR_MAIL_ID     ,
                        pvs.PHONE          vendor_contact_no ,
                        hre.EMAIL_ADDRESS     Employee_mail_id ,
                        hre.FULL_NAME
                   FROM apps.rcv_transactions      rt,
                        apps.po_vendors           pv,
                        apps.po_vendor_sites_all     pvs,
                        apps.mtl_transaction_reasons mtr,
                        apps.fnd_user          fu,
                        apps.hr_employees          hre     
                   WHERE transaction_type = 'RETURN TO VENDOR'
                   --AND        TRUNC(rt.transaction_date) = TRUNC(SYSDATE)
                   AND     rt.vendor_id          = pv.vendor_id
                   AND     rt.vendor_site_id     = pvs.vendor_site_id
                   AND     rt.REASON_ID          = mtr.REASON_ID(+)
                   AND fu.user_id          = rt.last_updated_by
                   AND hre.EMPLOYEE_ID     = fu.EMPLOYEE_ID
                   AND TRANSACTION_ID IN (
                                  11902189,
                                  11902253,
                                  11902148)
    BEGIN
         FOR rec_Rejection_Records IN cur_Rejection_Records
         LOOP
         Begin
              sender     := '<[email protected]>';
              recipient     := rec_Rejection_Records.vendor_contact_no || '@aaaa.com';
              mail_conn := utl_smtp.open_connection(mailhost, 8025);
              utl_smtp.helo(mail_conn, mailhost);
              utl_smtp.mail(mail_conn, sender);
              utl_smtp.rcpt(mail_conn, recipient);
              utl_smtp.DATA(     mail_conn,
                                  'Date: ' || TO_CHAR(SYSDATE, 'Dy, DD Mon YYYY hh24:mi:ss') || utl_tcp.crlf ||
                                  'From: ' || sender     || utl_tcp.crlf ||
                                  'Subject: '|| sub     || utl_tcp.crlf ||
                                  'To: ' || recipient || utl_tcp.crlf ||
                                  utl_tcp.crlf ||
                                  'Dear Supplier,'||CHR(10)|| utl_tcp.crlf ||'\\\0x0A'|| -- HERE I NEED LINE BREAK
                                  'Please.'|| utl_tcp.crlf                          
              DBMS_OUTPUT.PUT_LINE('Yep !!! SMS Sent Sucessfully :) ');
              utl_smtp.quit(mail_conn);
         EXCEPTION
              WHEN UTL_SMTP.PERMANENT_ERROR THEN
                        dbms_output.put_line('Error - ' || SQLCODE || ' - ' || SQLERRM);
              WHEN OTHERS THEN
                        dbms_output.put_line('Error - ' || SQLCODE || ' - ' || SQLERRM);
         END;
         END LOOP;
    END AUTO_SMS_RTV_REPORT;
    /

  • XSLT - inserting new line character

    Hi, hoping somebody could help me please.
    I'm attempting in 10g to convert a XML purchase-order with multiple detail lines to a CSV delimited output using an XSLT to undertake the transformation. Each line of the purchase-order, namely the header and each detail line must go on separate lines within the CSV file. This means each line must be clearly terminated with a CR-LF.
    While I can happily convert the XML purchase-order to CSV format, my experiments in inserting a CR-LF have failed, resulting in all lines collapsed onto one large line.
    According to various sources on the Net, inserting the following entry in my XSLT file should generate the new line that I'm looking for:
    <xsl:text>ampersand#xa;</xsl:text>(In the above code replace the text "ampersand" with an actual & - I'm unable to display the proper ampersand hash value xa as this HTML page renders it as newline character)
    However with no success.
    The sample program below shows the conversion process. Anybody any idea on why I'm not seeing the output with new lines?
    Your help appreciated.
    CM.
    DECLARE
    v_xml XMLType;
    v_xml2 XMLTYPe;
    v_xslt XMLType;
    BEGIN
    v_xml := XMLType(
    '<?xml version="1.0" encoding="UTF-8"?>
    <PurchaseOrder xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.xxxx.com.au/schemas/gatewayPurchaseOrder.xsd gatewayPurchaseOrder.xsd"
    xmlns="http://www.xxxx.com.au/schemas/gatewayPurchaseOrder.xsd">
    <Header>
    <GatewayPurchaseOrderNo>1234</GatewayPurchaseOrderNo>
    <PharmacyReference>2345</PharmacyReference>
    </Header>
    <Detail>
    <ProductNo>9876</ProductNo>
    <APNNo>7654</APNNo>
    </Detail>
    <Detail>
    <ProductNo>8888</ProductNo>
    <APNNo>7777</APNNo>
    </Detail>
    </PurchaseOrder>');
    v_xslt := XMLType(
    '<xsl:stylesheet version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
    xmlns="http://www.xxxx.com.au/schemas/gatewayPurchaseOrder.xsd">
    <xsl:output method="text"/>
    <xsl:template match="/PurchaseOrder/Header">
    <xsl:value-of select="normalize-space(GatewayPurchaseOrderNo)"/>,<xsl:value-of select="normalize-space(PharmacyReference)"/>
    <xsl:text>ampersand #xa;</xsl:text>
    </xsl:template>
    <xsl:template match="/PurchaseOrder/Detail">
    <xsl:value-of select="normalize-space(ProductNo)"/>,<xsl:value-of select="normalize-space(APNNo)"/>
    <xsl:text>ampersand#xa;</xsl:text>
    </xsl:template>
    </xsl:stylesheet>');
    v_xml2 := v_xml.transform(v_xslt);
    dbms_output.put_line(v_xml2.getclobval);
    END;(In the above code replace the text "ampersand" with an actual & - I'm unable to display the proper ampersand hash value xa as this HTML page renders it as newline character)

    I don't know much about XSLT yet, but tickeled by the problem, after wandering over the internet and found stuff like this - http://forums.devshed.com/xml-programming-19/cannot-output-crlf-xslt-348042.html - I constructed the following...
    SQL> set serveroutput on size 50000
    SQL> DECLARE
       v_xml XMLType;
       v_xml2 XMLTYPe;
       v_xslt XMLType;
    BEGIN
       v_xml := XMLType(
          '<?xml version="1.0" encoding="UTF-8"?>
          <PurchaseOrder xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             xsi:schemaLocation="http://www.xxxx.com.au/schemas/gatewayPurchaseOrder.xsd gatewayPurchaseOrder.xsd"
             xmlns="http://www.xxxx.com.au/schemas/gatewayPurchaseOrder.xsd">
             <Header>
                <GatewayPurchaseOrderNo>1234</GatewayPurchaseOrderNo>
                <PharmacyReference>2345</PharmacyReference>
             </Header>
             <Detail>
                <ProductNo>9876</ProductNo>
                <APNNo>7654</APNNo>
             </Detail>
             <Detail>
                <ProductNo>8888</ProductNo>
                <APNNo>7777</APNNo>
             </Detail>
          </PurchaseOrder>');
          v_xslt := XMLType(
             '<xsl:stylesheet version="1.0"
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns:xs="http://www.w3.org/2001/XMLSchema"
                xmlns="http://www.xxxx.com.au/schemas/gatewayPurchaseOrder.xsd">
             <xsl:output method="text"/>
             <xsl:template match="/PurchaseOrder/Header">
                <xsl:value-of select="normalize-space(GatewayPurchaseOrderNo)"/>,<xsl:value-of select="normalize-space(PharmacyReference)"/>
                <xsl:text>AMPERSAND#xa0;AMPERSAND#xa;</xsl:text>
             </xsl:template>
             <xsl:template match="/PurchaseOrder/Detail">
                <xsl:value-of select="normalize-space(ProductNo)"/>,<xsl:value-of select="normalize-space(APNNo)"/>
                <xsl:text>AMPERSAND#xa0;AMPERSAND#xa;</xsl:text>
             </xsl:template>
             </xsl:stylesheet>');
       v_xml2 := v_xml.transform(v_xslt);
       dbms_output.put_line(v_xml2.getclobval);
    END;
    SQL>
    1234,2345
    9876,7654
    8888,7777
    PL/SQL procedure successfully completed.So first one space and then the CR-LF.
    Hope this helps?
    Message was edited by:
    mgralike

  • Problem with new lines

    I have defined a form in Dreamweaver  to be used in conjuction with my SQL database (I am using the PHP/SQL).  One of the fileds in my form is of type TEXT (as opposed to VAR CHAR). Now, eventhough the text I am entering for that TEXT field has a number of paragraphs, when I read back the TEXT  field from the database (via sql SELECT),  the data for the TEXT field comes out continuously without paragraps. I don't understand why the paragraph or newline markings are not working when TEXT type data is retrieved from the database.  Can someone help me please.  Thanks!

    This is because HTML ignores new lines. The solution is to use the PHP function nl2br(). Depending on which version of Dreamweaver you're using, you can apply this function through the Bindings panel like this:
    This is certainly available in CS4, and maybe in CS3 too; but not earlier versions.
    If you're using an earlier version of PHP, wrap the dynamic text in nl2br() like this:
    <?php echo nl2br($row_recordsetName['fieldName']); ?>

Maybe you are looking for

  • Macbook pro acts like it will startup then shuts off

    I hit the start button and it begins to boot up. The apple sign comes on, the loading bar starts up then it all shuts off 3 seconds later.

  • In need of help with workflow script...

    I am currently using a DTP plugin called Layer Comps and layer groups for a DPS/ Print project.  I am looking for someone to develop a script for exporting my single document into multiple documents – i am aware that there is a script for exporting s

  • Using OracleXMLSave for nested date

    I am trying to insert an XML document containing the following date structure into Oracle using the OracleXMLSave class. Is there a way to do this without reformatting the date into a single element beforehand? Here is the stucture. <expiration-date>

  • FI-AA

    Hi,     Can any one give step by step solution for     Inconsistency between FI company code XXX and chart of depreciation XXX        Thanks in advance < USE APPROPRIATE SUBJECT / TITLE >

  • MSS Apraisals

    We have NW04, EP6.0 SP09 on Windows with R/3 4.7 enterprise on MSSQL. Say you have 3 people for your orginazation. CEO = A, midlevel manager = B, and salary worker = C. Right now in MSS, manager B can perform an appraisal for C and A can appraise B.