Need to send several lines in mail utility

HI Experts,

I'm using ODI 11 g.

In my ODI package I use a Variable when I need to write this query

Select campgn_no. »  '|| LPAD (lang, 4,' ') | »   '|| LPAD (total, 6,' ') | »  '|| (select TO_DATE(CELL_STRDT,'YYYY/MM/DD')
||'      '|| CELL_END_DATE
OF sp_product m, sp_dom o
WHERE m.offer_id = o.offer_id AND o.campgn_no IN (SELECT DISTINCT T.CAMPGN_NO FROM SP_ODI_TEMP T WHERE T.CAMPGN_ID ='lm10303 "") and rownum = 1) | Chr (10) Lang_Break_Up
de)
Select o.campgn_no, campgn_no, lang, count (1) total m.lang
of sp_product m, sp_dom o
where m.offer_id = o.offer_id
AND O.CAMPGN_NO IN (SELECT DISTINCT T.CAMPGN_NO FROM SP_ODI_TEMP T WHERE T.CAMPGN_ID = 'lm10303')
O.CAMPGN_NO GROUP, ORDER BY O.CAMPGN_NO M.LANG);

This qqery returns values like

LON01 E 4 MARCH 10, 13 2 FEBRUARY 13

LON02 E 2 MARCH 10, 13 2 FEBRUARY 13

LON03 E 4 MARCH 10, 13 2 FEBRUARY 13

LON04 E 3 MARCH 10, 13 2 FEBRUARY 13

Just after this Variable, I am setting a utility of mail to send this result.

But after running the post office, it sends only one line of result.
LON01 E 4 MARCH 10, 13 2 FEBRUARY 13

I need to send multiple lines ... How to do this... Please help me on this.

Thank you
Lony

Hello

If you have less than 4000 tank, you can use this workaround with listagg.

LISTAGG (last_name, ';) ')

THE Group (ORDER BY hire_date, last_name)

Select LISTAGG (campgn_no |) »  '|| LPAD (lang, 4,' ') | »   '|| LPAD (total, 6,' ') | »  '|| (select TO_DATE(CELL_STRDT,'YYYY/MM/DD')

||'      '|| CELL_END_DATE , '

') THE Group (ORDER BY campgn_no)

OF sp_product m, sp_dom o

WHERE m.offer_id = o.offer_id AND o.campgn_no IN (SELECT DISTINCT T.CAMPGN_NO FROM SP_ODI_TEMP T WHERE T.CAMPGN_ID ='lm10303 "") and rownum = 1) | Chr (10) Lang_Break_Up

Of...



Basically you tell Oracle to consider only one line which consist as the concatenation of your line with a \r\n


Let me know

Tags: Business Intelligence

Similar Questions

  • Need to send an automatic e-mail when the hold is released

    Hi team,

    I need to send mail to customers when released hold it manually in OM
    Kindly do me what event fires when you release the hold manually. (Action-> exit wedges)
    Thank you
    Suresh.S.

    Hi, Suresh

    There may be a way for your condition.

    Made (not test) with the form personliaze, as follows:
    triggering event: after application
    1. check the wedges which extract 2 is released or not.
    If it is rejected then send an email.
    2 Get current still holds.

    The first time, 1 will not execute anything it either because of holds has yet.
    Later 1 occur normally when release hold. (Action-> blocks of liberation)

    Kind regards
    Leno

    Published by: Leno Sun on 2013/05/10 0:36

  • Sending several lines by Oracle alert

    Hello team,

    My select statements return 10 rows and I want to send all 10 ranks in one a mail alert Oracle.
    Is it possible to send all 10 ranks in alert.


    Please suggest.

    Thanks and greetings

    You can do this easily by formatting your message correctly.
    See http://docs.oracle.com/cd/A60725_05/html/comnls/us/alr/summary.htm
    You can use the last example on this page that shows how to send an email with all the 10 lines on a purchase order.

    Hope this helps,
    Sandeep Gandhi

  • What do I need to send a confirmation e-mail that I a m a student every semester or is my safe option for a year?

    Hello

    I have a subscription student CC in Germany for € 19.99 per month. my time as a student ends either at the end of March 2015 or - if I need to extend it for several reasons - will end in October 2015. my contract with adobe ends in June 2015. What happened, so if my student time ends in March? will I have to pay full price for the three months that follow then? or I can he finish exactly when March is over?

    Thank you very much for your answers.

    Payment is per year, so it is no longer relevant you are eligible when your credentials are verified. It wouldn't matter if you abandon a week after purchase. You should always pay the same price.

    Mylenium

  • Need to update several lines in a multi-line table in another

    I came to the conclusion that I can't do that because of the absence of a unique key that is related, but maybe you can help me with a solution. I tried all of the solutions posted here, but they do not work in my scenario. I have codes in a table that is a list of codes to the related market which they should be used for. I have a second table of customers who do not have the code assigned to them until they are sent to an advertisement. This table has the market_id for each customer and the table of codes has the market_id associated with each code. I want to update the customer table with one of the associated with the market_id mergecodes - but between the two tables you isn't a unique key to connect. I thought I could just update the records which had corresponding market_ids, but nothing works. In the two tables below, I want to be able to update t3tm.mergecode with one of the mergecodes that has the same market_id ("Austin") in t3mc. It does not matter that it is associated with a particular customer.

    {code}

    create table T3mc (use of mergecode varchar (10), market_id varchar (25), week number, varchar2 (5));

    Insert into T3mc values ('A8976","Austin", 2,");
    Insert into T3mc values ('A8988","Austin", 2,");
    Insert into T3mc values ("A9900", "Houston", 2, ");
    commit;

    create table T3tm (name varchar (20), market_id varchar (25), mergecode varchar (10), identification number);

    insert into T3tm Values ('Smith', 'Austin' ", 1);
    insert into T3tm Values ("Jones", "Austin", ", 2);
    commit;
    {code}

    {code}
    Select * from T3mc;
    MARKET_ID, WEEK, USED, MERGECODE
    Austin 2 A8976 (null)
    Austin 2 A8988 (null)
    Houston 3 A9900 (null)
    Select * from T3tm;

    LAST_NAME, MARKET_ID, MERGECODE ID
    Austin Smith (null) 1
    Austin Jones (null) 2
    {code}

    ti3r wrote:
    In the two tables below, I want to be able to update t3tm.mergecode with one of the mergecodes that has the same market_id ("Austin") in t3mc. It does not matter that it is associated with a particular customer.

    {code}
    update of T3tm one
    Set mergecode =)
    Select mergecode
    of T3mc b
    where b.market_id = a.market_id
    and rownum = 1
    )
    where market_id in)
    Select market_id
    of T3mc
    )
    /

    2 lines to date.

    SQL > select *.
    2 of T3tm
    3.

    LAST_NAME MARKET_ID MERGECODE ID
    -------------------- ------------------------- ---------- ----------
    Austin A8976 Smith 1
    Austin A8976 Jones 2

    SQL >
    {code}

    SY.

  • Need to send several Segments of loop-N1

    Hi all
    I created a BPEL process that takes a custom input XML document and creates and EDI 810 Invoice out of it.
    The customized document has elements something like below

    < Invoice_Data >
    < Client_name > Customer Name < / client_name >
    address < customer_Address > customer < / customer_Address >
    < seller_Name > seller name < / seller_Name >
    < seller_Address > vendor address < / seller_Address >
    < / Invoice_Data >


    The output should be something like this

    <>transaction-810
    < loop-N1 >
    < segment-N1 >
    < item-01 > client name < / item-01 >
    Customer address < item-02 > < / item-02 >
    < / segment-N1 >
    < / N1 loop >
    < loop-N1 >
    < segment-N1 >
    Seller of < element-01 > name < / item-01 >
    Seller's address < item-02 > < / item-02 >
    < / segment-N1 >
    < / N1 loop >
    < / transaction-810 >


    I use an activity of transformation but created the first N - 1 Segment is easy, but I do not understand how I can create two entries in this segment.

    Please can someone help me with the necessary XSLT for this? An example would be really helpful

    If the elements of LoopN1 are not equal, you must specify them separately in your template (this can be done in design view as far as I know). The following works on your input samples:
























  • Concatenate several lines in a Unique identifier

    Hi all

    I need to concatenate several lines in a unique identifier

    So, my unique identifiers are name and email_id columns.


    It is 1:M relationship as eponymous and email_id can have n number of different products, now I should


    So let's say that the name = xyz and [email protected] has 5 rows with different product info for them.

    Product # #Name #email_id

    XYZ [email protected] Ora
    XYZ [email protected] sql
    XYZ [email protected] siebel
    XYZ [email protected] erp
    XYZ [email protected] crm

    My end result would be after concatenation (seen / as a delimiter between each concatenated row):

    Product # #Name #email_id
    XYZ [email protected] Ora/sql / / erp/crm siebel

    Need help please, after several attempts, I can't seem to make it work. I thank in advance

    Published by: user13080645 on January 22, 2011 07:33

    Hello

    You should look at using STRAGG or LISTAGG - take a look on: http://www.dba-oracle.com/t_display_multiple_column_values_same_rows.htm or search the Forum of SQL for these

    Andy

  • When I need something send to an email address of a Web site, even I have shortcut Outlook Express him pay not only electronic mail by default

    When I need something send to an email address of a Web site, even I have shortcut Outlook Express him pay not only electronic mail by default

    http://support.Mozilla.com/en-us/KB/changing+the+e-mail+program+used+by+Firefox

  • I need to send e-mail to climb what is the email address of support?

    I need to send e-mail to climb what is the email address of support?

    Click on contact us at the bottom of this page to join Apple

  • I just need to send e-mail to the recipient

    I just need to send e-mail to the recipient

    DECLARE

    v_Message VARCHAR2(4000)

    HTMLDB_MAIL.SEND(

    P_TO =>'[email protected]',

    P_FROM => '[email protected]',

    P_BODY => v_message,

    P_BODY_HTML => v_message,

    P_SUBJ => 'Share!!');

    APEX_MAIL.PUSH_QUEUE; END;

    FYI: Here is the link to the documentation on the apex_mail package:

    APEX_MAIL

    So what is the error you get?

    Have you tried APEX_MAIL. SEND instead of HTMLDB_MAIL. Send?

  • I need to copy a document from my printer and then send it by e-mail and I need help do this.

    I copied a document and must send it by e-mail to the German Consulate in Chicago, Illinois. I have a copier that I can scan a copy, but then I'm lost as to how to send properly.

    Here's how to do it in OUTLOOK: -.

    http://Office.Microsoft.com/en-GB/novice/lets-attach-files-to-an-outgoing-email-HA010376900.aspx?CTT=1

    If you are using one system other than OUTLOOK for e-mail, it will probably work in a similar way to what is in the link above.

  • Cannot send email from Windows Mail (AOL)

    HI - all of a sudden I can't send emails from my AOL account to Windows Mail.  Was working fine all day and then, in the last 20 minutes, I tried sending 3 emails and they just stay in my Outbox.  It looks like all my settings on tools/properties etc are correct.  And when I press "Send/receive" 3 unsent mails are reported to the top with a message "not connected".

    any advice on how to solve this very appreciated also urgently need send emails.  I can't send them when I try to do it from my site Ouah.com either.

    Thank you!

    Here is the link to the AOL settings in Windows Mail. He said that Outlook Express, but that's OK. The OE and WM using the same settings.
    Compare line-by-line settings with instructions, see if there is a difference.

    http://postmaster.info.AOL.com/IMAP/Express.html

    t-4-2

  • I can't send emails via Windows mail.

    Windows Mail

    summer on the pair with verizon
    CX sahrea verizon share a rough count the i tried to sent soemthing ut keepts asking cx username and password recently bopught a new cellphone somene had helped with parameters
    cxcannot send emails
    winvistahomepremcx use win mail and mail electronic thattried to send his dead end @ the Outbox and says now
    its place there

    There are problems with Windows Mail in Vista.   You need to make sure that the antivirus software does not WinMail.  See www.oehelp.com/OETips.aspx#3 .

    Once you do this, then try to go to the Outbox and delete the messages there.  If you can't, close WinMail and use my Windows Mail utility to compact and repair the database and clear the Outbox (www.oehelp.com/WMUtil/).  Then delete your e-mail account, close and reopen WinMail and then add your account to e-mail back again.  If it is a POP3 e-mail account and you have access to multiple devices, then you should go to tools | Accounts | Mail | Properties | Advanced and set to leave a copy of messages on the server (so other devices can access the messages) and set then remove them after a certain number of days, so they don't accumulate and clog the Inbox on the server.

    Steve

  • Send/receive in Windows Mail box is off the screen to the right

    Outbox send/receive in Windows Mail (Vista) used to appear at the top left of the screen.  Now, she is partially visible and on the top right of the screen.  I would like to return it where it was.  It comes to the Outbox Send/REC/WAV with the Green shows the 'streaming' line in messages and not the send/REC/WAV in a box in the toolbar.

    Right-click on the toolbar and slick on customize and control the order of the displayed icons.  Adjust them to send/receive is not the end, but where you want.  If the order is good but it still hurt shows, press the Reset button and that should restore icons in their right place (although if you have no customization, you will need to do it again).

    After further review, I know that I have responded to the toolbar tells you not what you were referring too.  I've been looking for each menu option and toolbar option I could find and you can't find any reference to any other send/receive button available in Windows Mail so that I have all the answers for you since the feature that you are discussing seems to not exist in my copy.  My only suggestion is to try to grab it with the mouse (left-click on it and hold down the left button) and see if you can move whenever you prefer it to be.  Otherwise, I have no suggestions to offer.  Do you know how to activate this box on or off (do appear or disappear) - if so, please explain how it's done.  If we can get this dialog to appear in our versions, then maybe we can find a way to solve the problem.  Have you ever installed some software enhancements 3rd party Windows Mail which could include this as a feature?

    I hope this helps.

    Good luck!

    Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • Why is there no option to send notifications by e-mail on external calls task?

    Whenever Eloqua creates a certain type of task, I need the external call to send an e-mail notification to the rep.  Why external calls task do NOT have the option of e-mail notification checkbox? See screenshot below.  Is there a way to force or to obtain this added option for task calls?   Any thoughts, Topliners?  Thanks in advance!

    external-call-eloqua.png

    Update on this post: I called support Eloqua and currently, they do not have the functionality to send notifications by e-mail for Eloqua 9 integrated tasks. There is no way to get this custom built/added either.  I then spoke with my SFDC administrator to see if there was a way to have SFDC auto brand e-mail notification area once a task with a certain subject line has been crossed to SFDC. He did some research and it seems that if Eloqua does not have a certain feature, SFDC won't it no more.  So there is currently no way to get tasks marked notifications to auto-email.

Maybe you are looking for

  • Tecra 9100: Can I put the USB 1.1 to USB 2.0

    can someone tell me if the tecra 9100 can be upgraded to work on USB 2 instead of the USB 1.1?

  • 4540 proBook s mdt2012 net driver

    I searched high and low for a solution and tried several different things, all for nothing will do. We have several new portable 4540 probook s and I'm looking to deploy using MDT 2012 windows7x86. I have uploaded the drivers to my host to deploy and

  • Interface MODBUS master/slave... need DSC &amp; OPC?

    I read up on top of the DSC & OPC modules looking at reasons why I would or would not need these modules for my particular application. I have a custom designed PLC I need to communicate with.  We look at the advantages/disadvantages with regard to t

  • node.dll file is missing error message on upgrade creative cloud link

    Trying to pass of Revel through my link in e-mail from adobe. Download the item creative cloud file winzip and run but getting node.dll is missing from your computer. Tried patches on google cmd etc, always the same registry cleaner.

  • Find VM via IP

    Hey all,.I am trying to find a way to find a computer virtual via IP through PowerCLI. That in itself is pretty easy, and I am currently using this code: Get-View -ViewType VirtualMachine -Filter @{"Guest.IpAddress"="x.x.x.x"} The problem is that I n