HELP using print function in Finder

When you right click a selection of Word documents or photos in the finder, I see an option for Print. I thought that if I used this option, the selection would automatically print. Instead, it just opens the application and documents (for example, Microsoft Word) and you still have to select print in the application. What is the difference between this and just opening the files/documents and pressing print?
Thanks for clearing this up for me.

The behavior of the Print contextual menu depends on the application.
Some argue that Word does not handle the Apple Events properly and puts up the dialog instead of just printing the document; others argue Word's behavior is the preferred behavior since the user may want to modify some settings. In the case of Word, there is no difference between this and launching the application and selceting Print.
Other applications, Preview and TextEdit for example, don't put up the dialog, so there is a difference.
Hope this helps.

Similar Messages

  • How to add warning message while using 'print' function in Adobe LiveCycle Designer

    I am trying to make pdf document for my company which requires adding a warning message while anyone use 'print' function from the page...
    Does anyone know how to add warning message on LiveCycle Designer
    Also my supervisor mentioned something using 'nag' if that rings any bell

    No you shoudl never go into the XML source unless uinstricted to do so.
    You can open the script editor (under the window menu). It will appear above the drawing area but below the toolbars. You can resize it if there is not enough room. When you click on an object in the form you can choose an event to script against in the Show dropdown. In your case you will want to choose the prePrint event. A line will show up that indicates the object that is associated with the script as well as the event and other information. Add your script below this line. Once that is done you are finished and your form is ready for testing.
    Paul

  • When I use the function of "finding keyword", the word would be shown in green. Can I set the colour by myself?

    When I use the function of "finding keyword"(ctrl+f), the keyword would be shown in green. I want to change the highlighted colour to be blue. Is there any function to change the colour?

    See '''''cor-el's''''' answer in this thread: https://support.mozilla.com/en-US/questions/900541
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''
    Not related to your question, but...
    You may need to update some plug-ins. Check your plug-ins and update as necessary:
    *Plug-in check --> http://www.mozilla.org/en-US/plugincheck/
    *Adobe Shockwave for Director Netscape plug-in: [https://support.mozilla.com/en-US/kb/Using%20the%20Shockwave%20plugin%20with%20Firefox#w_installing-shockwave Installing ('''''or Updating''''') the Shockwave plugin with Firefox]
    *Adobe PDF Plug-In For Firefox and Netscape: [https://support.mozilla.com/en-US/kb/Using%20the%20Adobe%20Reader%20plugin%20with%20Firefox#w_installing-and-updating-adobe-reader Installing/Updating Adobe Reader in Firefox]
    *'''''Shockwave Flash''''' (Adobe Flash or Flash): [https://support.mozilla.com/en-US/kb/Managing%20the%20Flash%20plugin#w_updating-flash Updating Flash in Firefox]
    *Next Generation Java Plug-in for Mozilla browsers: [https://support.mozilla.com/en-US/kb/Using%20the%20Java%20plugin%20with%20Firefox#w_installing-or-updating-java Installing or Updating Java in Firefox]

  • Workflow Help - Using PRE function

    Hi,
    I need to create a workflow on "when modified record saved" trigger event using PRE function. I am currently using this syntax :
    (FieldValue('<IndexedPick0>')='Central') AND (FieldValue('<SalesStage>')='Qualified') OR (FieldValue('<SalesStage>')= 'Approach') OR (FieldValue('<SalesStage>')= 'Quote') OR (FieldValue('<SalesStage>')='Negotiation')
    What we want this workflow to do is to send an email only when a sales stage is modified or changed to the values above in the syntax, not anything else on the opportunity page.
    Waiting for a response.
    Thanks in advance
    Ahmed

    Hi !
    Try this :
    *&#91;&lt;IndexedPick0&gt;&#93; = 'Central' AND &#91;&lt;SalesStage&gt;&#93; &lt;&gt; PRE('&lt;SalesStage&gt;') AND (&#91;&lt;SalesStage&gt;&#93; = 'Qualified' OR &#91;&lt;SalesStage&gt;&#93; = 'Approach' OR &#91;&lt;SalesStage&gt;&#93; = 'Quote' OR &#91;&lt;SalesStage&gt;&#93; = 'Negotiation')*
    This will trigger only when salestage is modified to 1 of the 4 stages and indexedpick0 = 'Central'.
    Hope this will help, feel free to ask more !
    Max

  • Printng FOIs with labels do not hidde not visible labels when using print function

    Hello,
    when I use the print function the HTMLElement labels on a FOI object
    that are not in the visible scope are not hidden. I provided an example
    where the 'Dallas' FOI is not in the visible area and when you print it
    the circle is invisible but the label 'Dallas' is on the print out.
    The second problem is that all lables on the printout have the same
    color.
    Im using Mapviewer 11.1.1.7 and the testcase is based on a mvdemo map.
    If you use the print function you should see the problem:
    <html>
    <head>
    <META http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <style type="text/css">
    @media screen
    .noscreen {display: none;}
    @media print
    .noprint{display: none;}
    </style>
    <script language="Javascript" src="/mapviewer/fsmc/jslib/oraclemaps.js"></script>
    <script language=javascript>
    var mapview;
    var baseURL = "http://"+document.location.host+"/mapviewer";
    function showMap()
    mapview = new MVMapView(document.getElementById("map"), baseURL);
    mapview.addMapTileLayer(new MVMapTileLayer("mvdemo.demo_map"));
    mapview.setCenter(MVSdoGeometry.createPoint(-122.45, 37.6706,8307));
    mapview.setZoomLevel(4);
    mapview.display();
    //adds custom foi with label
    var xmlDef = '<svg width="1in" height="1in">'+
    '<g class="marker" '+
    'style="width:40;height:40;font-family:sans-serif;font-size:20pt;stroke:0xff0000;fill:0x00ff00;stroke-width:1.5">'+
    '<circle r="20"/>'+
    '</g>'+
    '</svg>';
    //var markerStyle = new MVXMLStyle("my_vector_icon_", xmlDef);
    var markerGreen = new MVStyleMarker("my_vector_icon_", "vector");
    markerGreen.setStrokeColor("ff0000");
    markerGreen.setFillColor("00ff00");   
    markerGreen.setVectorShape("c:30");
    var markerRed = new MVStyleMarker("my_vector_icon_", "vector");
    markerRed.setStrokeColor("0000FF");
    markerRed.setFillColor("ff0000");   
    markerRed.setVectorShape("c:30");
    var markerBlue = new MVStyleMarker("my_vector_icon_", "vector");
    markerBlue.setStrokeColor("ff0000");
    markerBlue.setFillColor("0000FF");   
    markerBlue.setVectorShape("c:30");
    mpoint_green = MVSdoGeometry.createPoint(-112.30, 34.73,8307);
    var v_result_green = new MVFOI("10", mpoint_green, markerGreen, null, 60, 60);
    v_result_green.setHTMLElement('Phoenix',10,10);
    mpoint_red = MVSdoGeometry.createPoint(-122.30, 37.50,8307);
    var v_result_red = new MVFOI("11", mpoint_red, markerRed, null, 60, 60);
    v_result_red.setHTMLElement('San Francisco',10,10);
    mpoint_blue = MVSdoGeometry.createPoint(-97.30, 33.50,8307);
    var v_result_blue = new MVFOI("12", mpoint_blue, markerBlue, null, 60, 60);
    v_result_blue.setHTMLElement('Dallas',10,10);
    mapview.addFOI(v_result_red);
    mapview.addFOI(v_result_blue);
    mapview.addFOI(v_result_green);
    function mapPrint()
    var a=document.getElementById("printmap");
    mapview.print(a);
    </script>
    </head>
    <body onload=javascript:showMap()>
    <div id="map" style="position:absolute;top:50px; left:10px; width:600px; height:450px;border:0px"></div>
    <div id="printmap" class="noscreen"></div>
    <p>Please click <a href="javascript:mapPrint()">here</a> to print map</p>
    </body>
    </html>

    All marker symbols (SFO, Phoenix) show up in the same color (in print) because the same name is used for all the maker styles. Change the style names and the right colors should be used in printed map.
    i.e. change the lines
    var markerGreen = new MVStyleMarker("my_vector_icon_", "vector");
    var markerRed = new MVStyleMarker("my_vector_icon_", "vector");
    var markerBlue = new MVStyleMarker("my_vector_icon_", "vector");
    to
    var markerGreen = new MVStyleMarker("my_vector_icon_g", "vector");
    var markerRed = new MVStyleMarker("my_vector_icon_r", "vector");
    var markerBlue = new MVStyleMarker("my_vector_icon_b", "vector");
    and it should be fine.

  • PL SQL using date functions to find partitions

    I am trying to teach myself PL SQL and can use a bit of help. I am trying to automate the
    dropping of paritions.
    Can somebody provide me with an example of how to create some code that will return a liist
    of partitions that are older than the N number of years (current year 1/1/2011), or N number of
    months, weeks or days...
    For example, today is 3/4/2011 How would I create code that will find me partitons that are
    older than 2/1/2011 (current first of month -1 month, or ciurrent first of month -N months).
    My partition names for all my tables are all in this formate P_YYYY_MM-DD
    Please keep in mind this query can retrurn no rows, one row or several rows. If nothing is retrurned
    I woiuld liike to print that out for each table.
    Thanks in advance to all who answer

    This would be a combination of sysdate and either add_months(date,number_of_months) or date-number_of_days, along with a conversion of the date to a pattern that matches your partition name format. Fortunately you've chosen a sensible format that sorts correctly.
    So for finding the number of partitions older than so-many years:
    select count(*)
    from   user_tab_partitions
    where table_name = ... and
             partition_name < to_char(add_months(sysdate,-12*5),'"P"_YYYY_MM-DD') Just be careful about whether you want partitions for which the oldest possible date is older than so-many years, or for which the newest possible date is older than so-many years.
    Edit: Oh bear in mind that if you select only COUNT(*) then you'll always get a row back even if no matching partitions are found, and COUNT(*) will be 0. If you selected table_name and count(*) then you would get no rows back for tables that have no matching partitions. COUNT(*) never returns null.
    Edited by: David_Aldridge on Mar 3, 2011 11:15 PM

  • How to use print functionality in Java Studio Creator

    Hi,
    I am working on one JSF project using Java Studio Creator.
    I have requirement where I have one table and print button.
    By clicking the print button, I want the contents of table to be printed.
    I have configured all the required properties of this button but still by clicking this print button, I am not able to see the print window.
    Please help me in that, Its urgent.
    Thanks in advance.
    Vijay

    Hi,
    i think the best thing for you to do is to use javascript. go to jsp page of the form and find the button, as part of its attribute type onClick="window.print()"

  • Trying to use cut function in finder

    I'm new to the mac so this may be a silly question but why can't I cut a file and then paste it somewhere else? I can only copy an item. The edit>cut function is grayed out. Please help!

    This is a data safety measure; a file or folder can easily be lost if it is cut and then the person operating the computer uses the clipboard for something else without pasting it. Drag files from one folder to another to move them.
    (26378)

  • Using LAG function to find a previous record

    Hey,
    I tried searching the forum for this, but I actually didn't even know what to search for, so I'm creating a new thread.
    The SQL below displays a list of prices:
    WITH T AS (
      SELECT 1  AS ID, 'PERM' AS TYPE, 100 AS PRICE, SYSDATE + 1 AS START_DATE FROM DUAL UNION
      SELECT 3  AS ID, 'TEMP' AS TYPE, 90  AS PRICE, SYSDATE + 2 AS START_DATE FROM DUAL UNION
      SELECT 7  AS ID, 'TEMP' AS TYPE, 80  AS PRICE, SYSDATE + 3 AS START_DATE FROM DUAL UNION
      SELECT 8  AS ID, 'PERM' AS TYPE, 75  AS PRICE, SYSDATE + 4 AS START_DATE FROM DUAL UNION
      SELECT 16 AS ID, 'TEMP' AS TYPE, 70  AS PRICE, SYSDATE + 5 AS START_DATE FROM DUAL UNION
      SELECT 20 AS ID, 'TEMP' AS TYPE, 60  AS PRICE, SYSDATE + 6 AS START_DATE FROM DUAL UNION
      SELECT 34 AS ID, 'TEMP' AS TYPE, 50  AS PRICE, SYSDATE + 7 AS START_DATE FROM DUAL
      SELECT T.ID
           , T.TYPE
           , T.PRICE
           , TRUNC (T.START_DATE) AS START_DATE
           , CASE
               WHEN T.TYPE = 'PERM'
                 THEN T.ID
                 ELSE LAG (T.ID, 1, NULL) OVER (PARTITION BY NULL ORDER BY T.ID)
             END AS BASE_ID
        FROM T
    ORDER BY T.START_DATEThe challenge is to produce this output:
    ID TYPE PRICE BASE_ID
    1 PERM   100       1
    3 TEMP    90       1
    7 TEMP    80       1
    8 PERM    75       8
    16 TEMP    70       8
    20 TEMP    60       8
    34 TEMP    50       8What I want to achieve is to bring a column with the ID of the most recent PERM price for TEMP prices,
    and It's own ID for PERM prices.
    My attempt uses LAG to navigate back on the record set, but it uses 1 statically. If there was a way to come up with a number
    for each TEMP price saying how far it was from the most recent PERM, then I could use that number instead of 1.
    Something like:
    ID TYPE PRICE DISTANCE_FROM_PREV_PERM
    1 PERM   100                       0
    3 TEMP    90                       1
    7 TEMP    80                       2
    8 PERM    75                       0
    16 TEMP    70                       1
    20 TEMP    60                       2
    34 TEMP    50                       3Any help will be greatly appreciated.
    Thanks.

    Maybe
    select id,type,price,
           last_value(base_id) ignore nulls over (order by the_row) base_id
    /*     last_value(base_id ignore nulls) over (order by the_row) base_id  -- old way */
      from (select id,type,price,start_date,
                   case type when 'PERM' then id end base_id,
                   row_number() over (order by start_date) the_row
              from t
           )Regards
    Etbin

  • Documentation for RS_EU_CROSSREF (where-used list function module)

    Hi,
    I'm trying to understand how to use the "RS_EU_CROSSREF" function module.
    It corresponds to the where-used list function you find in so many SAP screens.
    I need to use it in a program, but I can't find any good documentation about it.
    I'd like something that tells me what values I have to fill in parameters.
    For example, how to search form "TEST_FORM" in all programs ? or even in a given program, I didn't get how to restrict the search to a program...
    Thank you for any help,
    Quentin

    Hi Gurpreet Singh,
    table cross does not find any function modules although I know for sure that there are function modules calling the function module.
    Please post an example of how to find function modules calling a function module with RS_EU_CROSSREF.
    /Elvez

  • Print Functionality in CE NWDS

    Hello Gurus ,
    I had a situation in using Print Functionality .
    I had CE- NW 7.10 Server Application in which I had used the Print Fucntionality by using the
    WDPrintService.getPrintService().print(wdThis.wdGetAPI());
    Now I am trying to run this application on NW 7.0 server by making this as a Federated Portal Iview . ON doing so , I encounters 2 difficulties :
    1. The Print fucntionality button which is working fine in case of CE 7.1 is no showing as Print Operation not supported .
    2. Secondly Just before onclick on Print Button action , I am presented with a new Browser window , which asks for the Login credentials of CE server , since my FPN iview resides there  . and once I am done with login , it throws me the exception in Portal , I check he logs in NWA of CE server coz that is where the Iview is running .
    Here are the atached logs :
    Caused by: com.sapportals.portal.prt.runtime.PortalRuntimeException: Exception in SAP Application Integrator occured: Unable to parse template &#39;&lt;System.scheme&gt;://&lt;System.servername&gt;:&lt;System.serverport&gt;/webdynpro/dispatcher&lt;Request.DistributionZone&gt;/sap.com/pb/PageBuilder;jsessionid=&lt;Request.JSessionID&gt;?sap-ext-sid=&lt;ESID[url_ENCODE]&gt;&amp;sap-wd-cltwndid=&lt;ClientWindowID&gt;&amp;sap-wd-tstamp=&lt;$TimeStamp&gt;&amp;PagePath=&lt;FPN.PCDHomeLocation[url_ENCODE]&gt;&amp;sap-pp-producerid=&lt;producerID&gt;&amp;sap-pp-consumerBaseURL=&lt;Request.BaseURL[url_ENCODE]&gt;&amp;sap-wd-app-namespace=zzzz&amp;sap-ep-version=&lt;Request.Version[url_ENCODE]&gt;&amp;sap-locale=&lt;Request.Locale&gt;&amp;sap-accessibility=&lt;User.Accessibility[SAP_BOOL]&gt;&amp;sap-rtl=&lt;LAF.RightToLeft[SAP_BOOL]&gt;&amp;sap-explanation=&lt;User.Explanation[SAP_BOOL]&gt;&amp;sap-cssurl=&lt;LAF.StylesheetUrl[url_ENCODE]&gt;&amp;sap-cssversion=&lt;LAF.Version[url_ENCODE]&gt;&amp;sap-epcm-guid=&lt;EPCF.RemoteGuid&gt;&amp;com.sap.portal.reserved.wd.pb.restart=&lt;Node.Mode.isRefresh&gt;&amp;DynamicParameter=&lt;DynamicParameter[PROCESS_RECURSIVE URL_ENCODE]&gt;&amp;&lt;ForwardParameters[QUERYSTRING]&gt;&amp;&lt;User.&quot;com.sap.tc.webdynpro&quot;.debugParameters&gt;&#39;; the problem occured at position 0. Cannot process expression &lt;System&gt; because Unable to lookup System &amp;#39;CED&amp;#39;.
    Please check the system object and the alias.
    at com.sapportals.portal.appintegrator.AbstractIntegratorComponent.doContentPass(AbstractIntegratorComponent.java:156)
    at com.sapportals.portal.appintegrator.AbstractIntegratorComponent.doContent(AbstractIntegratorComponent.java:130)
    at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:200)
    at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)
    at com.sap.portal.prt.core.RequestDispatcherFactory$PortalComponentRequestDispatcher$5.service(RequestDispatcherFactory.java:308)
    at com.sap.engine.services.servlets_jsp.server.deploy.impl.module.IRequestDispatcherImpl.dispatch(IRequestDispatcherImpl.java:93)
    at com.sap.portal.prt.core.RequestDispatcherFactory$PortalComponentRequestDispatcher.service(RequestDispatcherFactory.java:298)
    at com.sap.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:278)
    ... 65 more
    +++++++++++++++++++++++++++++++++++++++
    3. shall I had to maintain the SSO ticket for tow portals in ach other  ...
    Please suggest ..........
    Regards
    Sandeep

    Hi
    Have a look on this similar thread.
    Best Regards
    Satish Kumar

  • One Column missing during print functionality

    Hi All,
    Actuall i am using print Functionality in Apex the code is :
    <!--
    <TD align=right><IMG height=3 alt=""
    src="#WORKSPACE_IMAGES#spacer.gif" width=1 border=0><BR><IMG
    height=15 alt="Print this"
    src="#WORKSPACE_IMAGES#drucken.gif" onClick="window.print()" width=25 border=0>
    </TD> -->
    Actually i want to implement print functionality in Report
    Issue 1:
    . When i am openning that report and Clicking the print image its printing but last column is missing means width problem. How to automatically compressed so that all columns should display.
    Issue2: Subject is header column in which we can enter 10 lines or more and so i have put the scroll bar . when i am enetering 10 lines and giving print functionality then top 3 lines get printed bcz remaining are not visisble to printer. So Is any one have ideay how to print all the 10 lines.
    Thanks in Advance,
    Amit

    HI,
    You can try following steps,
    1) Goto transaction SPAD and create Page formate according to your requirement.
    2) Create format and copy action from standard format.
    3) create device type
    4) assign that device type to custamize output type.
    When ever you take print out of that ALV use your custamize Output Type

  • Where do I find examples of how to use formula functions? Online help only provides syntax

    Hello,
    I would like to run a formula ( for my custom field in Project 2013)  that allows me to see the Finish Time e.g. 17:15 for a task.  I am trawling through the online help to determine which one is best but I would like to read some examples
    of how a function can be used. I hoped Help may do this but no.
    Hope you can point me into the right direction.  Thanks in advance.
    Alan

    Alan,
    Yeah I agree, the on-line help is lacking in information on how to actually USE a function. However, there are some places that may help. Here are a couple, I'm sure there are many others.
    https://support.office.com/en-nz/article/Project-functions-for-custom-fields-7e525143-380f-4083-8d5a-3ecc6ba44f22
    https://msdn.microsoft.com/en-us/library/office/ee767700(v=office.14).aspx
    Since many of the custom field formulas are also used in VBA, I've found the object library reference for VBA to be very helpful in understanding and setting up custom field formulas. To get the the object library, go to Developer/Code group/Visual Basic.
    Once the Visual Basic Editor window opens, hit View/Object Browser. Hit the Help menu and select the Help for Visual Basic. Type in the function of interest.
    However, you say you want a custom formula to see the finish time for a task. You don't need any customization to see that. Simply go to File/Options/General tab and select a date format that includes the time.
    Hope this helps.
    John

  • Help in using listagg function for more than 8000 char.

    Hi Friends,
    Need you urgent help in using listagg function for more than 8000 char.
    I did the below sample SQL and in "e_orig" and "d_orig" for upto 4000 char it is working fine but I have to use it for more than 8000 char. and it is giving error,
    I checked the listagg function is having limitation of 4000 char.
    I tried but I am unable to achive this. Can someone provide me a sample example to achive this
    select d.dname,d.loc,e.hiredate
    ,listagg(e.ename,',' ) within group (order by e.deptno) over (partition by e.deptno) as e_orig
    ,listagg(e.ename, ',') within group (order by e.sal) over (partition by e.deptno) as d_orig
    from emp e, dept d
    where e.deptno=d.deptno;[ This is my first post, I gone through the guideline for posting a post , and try to go according to that ( I have not pasted here create table and insert as I have used basic table emp, dept for example), please let me know if still I should give this, I will take care from my next post ]
    Thanks in advance

    Interesting, I didn't know you could do that, but...
    BluShadow wrote:
    You could write some PL/SQL code that does it all for you, but that would involve loops and would be slow.Well, objects are written in PL/SQL aren't they? And presumably there'll be implicit looping too? So it's not at all obvious that this method will be faster than doing the joining in PL/SQL in memory. The only way to find out is to benchmark them - so I have done that.
    I noticed that OP's ref cursor actually only ever retrieves a single record for a bound department number, so I decided the best thing would be to test using a procedure that passes an output string back. I selected all (109) employees and put spaces in to ensure above 4000 characters. I also noticed that as he is using PL/SQL he probably can use a VARCHAR2 type, but just not ListAgg in the query, so I wrote short procedures as follows:
    SimpleAggChr     - bulk collect and array processing, VARCHAR2 output
    ClobAggPrc     - the custom aggregation method, CLOB output
    SimpleAggClob     - bulk collect and array processing, CLOB output
    I then wrote a driving script that calls them in the order above and times each call (I like benchmarking so I have my own timing object to make it easy). I then print the lengths for checking, and my object writes the timings to my output table. Running a few times I got varying results, but generally it looks like there isn't a lot to choose between them for performance.
    Here's the procedure code:
    CREATE OR REPLACE TYPE char100_list_type AS TABLE OF VARCHAR2(100)
    CREATE OR REPLACE PROCEDURE SimpleAggChr (x_out OUT VARCHAR2) IS
      l_enames     char100_list_type;
    BEGIN
      SELECT first_name || '                                        ' || last_name
        BULK COLLECT INTO l_enames
        FROM employees
       ORDER BY salary;
      FOR i IN 1..l_enames.COUNT LOOP
        x_out := x_out || l_enames(i) || ',';
      END LOOP;
    END SimpleAggChr;
    CREATE OR REPLACE PROCEDURE SimpleAggClob (x_out OUT CLOB) IS
      l_enames     char100_list_type;
    BEGIN
      SELECT first_name || '                                        ' || last_name
        BULK COLLECT INTO l_enames
        FROM employees
       ORDER BY salary;
      FOR i IN 1..l_enames.COUNT LOOP
        x_out := x_out || l_enames(i) || ',';
      END LOOP;
    END SimpleAggClob;
    SHO ERR
    PROMPT ClobAggPrc
    CREATE OR REPLACE PROCEDURE ClobAggPrc (x_out OUT CLOB) IS
    BEGIN
      SELECT clobagg(first_name || '                                        ' || last_name || ',')
        INTO x_out
        FROM employees
       ORDER BY salary;
    END ClobAggPrc;
    SHO ERRand the driving script:
    SET SERVEROUTPUT ON
    SET TIMING ON
    DECLARE
      l_enames_c1     CLOB;
      l_enames_c2     CLOB;
      l_enames_v     VARCHAR2(32767);
      l_timer     timer_set_type := timer_set_type ('Aggregation');
    BEGIN
      Utils.g_id := 'Aggregation';
      SimpleAggChr (l_enames_v);
      l_timer.Increment_Time ('SimpleAggChr');
      ClobAggPrc (l_enames_c1);
      l_timer.Increment_Time ('ClobAggPrc');
      SimpleAggClob (l_enames_c2);
      l_timer.Increment_Time ('SimpleAggClob');
      DBMS_Output.Put_Line ('SimpleAggChr returned string of length ' || Length (l_enames_v));
      DBMS_Output.Put_Line ('ClobAggPrc returned string of length ' || Length (l_enames_c1));
      DBMS_Output.Put_Line ('SimpleAggClob returned string of length ' || Length (l_enames_c2));
      l_timer.Write_Times;
    END;
    SET TIMING OFF
    SET LINES 150
    SET PAGES 1000
    COLUMN id FORMAT A30
    COLUMN line_text FORMAT A120
    SELECT line_text
      FROM output_log
    WHERE id = 'Aggregation'
    ORDER BY line_ind
    /and the results:
    SimpleAggChr returned string of length 5779
    ClobAggPrc returned string of length 5779
    SimpleAggClob returned string of length 5779
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:27.05
    LINE_TEXT
    Timer Set: Aggregation, constructed at 03 Nov 2011 16:27:07, written at 16:27:35
    ================================================================================
    [Timer timed: Elapsed (per call): 0.02 (0.000016), CPU (per call): 0.01 (0.000010), calls: 1000, '***' denotes corrected
    line below]
    Timer              Elapsed          CPU          Calls        Ela/Call        CPU/Call
    SimpleAggChr          9.84         0.36              1         9.84400         0.36000
    ClobAggPrc            9.37         0.32              1         9.37400         0.32000
    SimpleAggClob         8.25         0.22              1         8.25000         0.22000
    (Other)               0.00         0.00              1         0.00000         0.00000
    Total                27.47         0.90              4         6.86700         0.22500
    13 rows selected.

  • How do I use the print function to output a numeric variable with a fixed amount of leading zeroes

    I need to create an output from a T-SQL query that picks a numeric variable and uses the print function to output with leading zeroes if it is less than three characters long when converted to string.  For example if the variable is 12 the output should
    be 012 and if the variable is 3 the output should be 003.
    Presently the syntax I am using is PRINT STR(@CLUSTER,3) .  But if @CLUSTER which is numeric is less than three characters I get spaces in front.
    Please help!

    >> I need to create an output from a T-SQL query .. <<
    NO! NO! In RDBMS, we have a presentation layer that handles displays. We do not ever do it in the database. This is fundamental. But more than that, the purpose of PRINT is for debugging in T-SQL and never for output.
    You are still writing 1960's COBOL or BASIC, but you want to to it in SQL.  You probably picked the wrong data type (a numeric that should be a string) and are trying to repair your design error.  
    --CELKO-- Books in Celko Series for Morgan-Kaufmann Publishing: Analytics and OLAP in SQL / Data and Databases: Concepts in Practice Data / Measurements and Standards in SQL SQL for Smarties / SQL Programming Style / SQL Puzzles and Answers / Thinking
    in Sets / Trees and Hierarchies in SQL

Maybe you are looking for

  • Problem for Goods Receipt for Subcontracting Purchase Order

    Dear all, Presently, we are using SAP version 4.6C and we need to introduce GR for Subcontracting Purchase Order. We have developed a ABAP program to handle subcon Goods Receipt by uploading flat-files from our subcontractor. The scenario is as follo

  • Premeire Elements 13 - can't import files into Project Assets, Expert Mode.  Win8.1

    Hello there - I've tried uninstalling/reinstalling.  Can't seem to figure this out.  In other computers, I have imported files into the Project Assets area to "pre-edit" before adding to timeline.  I can add media directly to timeline in Quick Mode,

  • Tried to change resolution in gnome, now cant run it

    I seem to have gotten into the increasingly unpleasant habit of screwing up a desktop environment within the first hour of installing it.... I just installed gnome, was playing around with it, and I tried to change my resolution (silly me). The scree

  • Why does my bluetooth pairing stop working??

    I pair my iPhone 3G to my car and a Jawbone earpiece and after a while neither will work. They show up on the list in the phone, but indicate "not connected". I have to delete the pairing and initiate a new search to get them re-connected. I don't be

  • Hard Drive Space Decreases Rapidly over the day

    I am constantly experiencing a rapid decrease by 5-10 GB over the day in my hard drive space. I have no idea what could be taking up this space as I am usually only working on a word doc, listening to music, surfing the internet. I can only imagine t