Printing count of records before and after a command in a PL/SQL

Hi: I have the following PL/SQL script
declare
l_sysdate date := sysdate;
begin
INSERT INTO a_mnsnotes SELECT * from mnsnotes where TKT_NBR in (
select TKT_NBR from mnsinterface where MNS_STATUS=5 and CLOSED_DATE < (((l_sysdate-30) - to_date('01-JAN-1970','DD-MON-YYYY')) * 86400));
delete from mnsnotes Where
TKT_NBR in (select TKT_NBR from mnsinterface where MNS_STATUS=5 and CLOSED_DATE < (((l_sysdate-30) - to_date('01-JAN-1970','DD-MON-YYYY')) * 86400));
commit;
end;
/I want to assign the number of records in the two table (a_mnsnotes and mnsnotes) to two variables so I can print in one line the numberof records for both tables before and after the procedure. How do I set the output of a sql command (select count(*) from mnsnotes) to a variable within the pl/sql?
Thanks
Ravi

Also I'm guessing this:
(((l_sysdate-30) - to_date('01-JAN-1970','DD-MON-YYYY')) * 86400);
is because closed_date is stored as number of seconds since 01-JAN-1970, which should be turned into a date ASAP. Never store dates as anything other than DATE datatype (or maybe TIMESTAMP in more recent versions).
It's not right, as sysdate will have a time component so if this code is run at 8am it will give different results to if it is run at 9pm. And not all months have 30 days.
Have you considered TRUNC(add_months(sysdate,-1)) instead of l_sysdate-30 ?

Similar Messages

  • How to covert before and after image details from logdump to SQL

    Hi,
    Through logdump,i am able to retrieve below before and after image details for an update statement.
    Instead of below ascii format output, i need to know the complete sql statement before update and after update.
    Is there any command to covert below output to readable SQL sentence?
    2012/09/26 02:30:16.999.659 FieldComp Len 300 RBA 2528
    Name: TEST.TESTTABLE
    Before Image: Partition 4 GU m
    5e50 86f5 af70 9660 b6fa 785c e34f 8881 0497 9507 | ^P...p.`..x\.O......
    799f 2ee2 6399 d539 ea92 90de 828b 83d9 adc9 c8c4 | y...c..9............
    ca87 9632 7136 a5fc 826f 8cc7 6ddd 7f8a e02e 816a | ...2q6...o..m......j
    6ac4 739a 8011 5068 068a 4553 4937 93e7 cc5a d3d3 | j.s...Ph..ESI7...Z..
    6a2b 2540 3be9 1df7 6d0c 0f17 d795 efd4 e0c5 dae9 | j+%@;...m...........
    a488 a757 7c07 78a4 5f2a 1330 d2bb 5a05 7075 6b95 | ...W|.x._*.0..Z.puk.
    529c f681 97d8 df6f 58d5 37dc e36d 8bc0 19d5 c7f0 | R......oX.7..m......
    Bad compressed block, found length of 34549 (x86f5), RBA 2528
    Logdump 2335 >n
    Hdr-Ind : E (x45) Partition : . (x04)
    UndoFlag : . (x00) BeforeAfter: A (x41)
    RecLength : 300 (x012c) IO Time : 2012/09/26 02:30:16.999.659
    IOType : 15 (x0f) OrigNode : 255 (xff)
    TransInd : . (x01) FormatType : R (x52)
    SyskeyLen : 0 (x00) Incomplete : . (x00)
    AuditRBA : 24567 AuditPos : 4268948
    Continued : N (x00) RecCount : 1 (x01)
    2012/09/26 02:30:16.999.659 FieldComp Len 300 RBA 2947
    Name: TEST.TESTTABLE
    After Image: Partition 4 GU m
    5e50 86f5 af70 9660 b6fa 785c e34f 8881 0497 9507 | ^P...p.`..x\.O......
    799f 2ee2 6399 d539 ea92 90de 828b 83d9 adc9 c8c4 | y...c..9............
    ca87 9632 7136 a5fc 826f 8cc7 6ddd 7f8a e02e 816a | ...2q6...o..m......j
    6ac4 739a 8011 5068 068a 4553 4937 93e7 cc5a d3d3 | j.s...Ph..ESI7...Z..
    6a2b 2540 3be9 1df7 6d0c 0f17 d795 efd4 e0c5 dae9 | j+%@;...m...........
    a488 a757 7c07 78a4 5f2a 1330 d2bd 5a05 7075 6b95 | ...W|.x._*.0..Z.puk.
    529c f681 97d8 df6f 58d5 37dc e36d e8b8 19d5 1af0 | R......oX.7..m......
    Bad compressed block, found length of 34549 (x86f5), RBA 2947

    From the reference guide:
    *FORMATSQL*
    Valid for Extract
    Use the FORMATSQLparameter to output data in external SQL format, instead of the default
    Oracle GoldenGate canonical format. FORMATSQLgenerates SQLstatements (INSERT, UPDATE,
    DELETE) that can be applied to both SQLand Enscribe tables by utilities other than Oracle
    GoldenGate Replicat.
    NOTE Do not use FORMATSQL if the data will be processed by the Replicat process.
    Replicat expects the default canonical format. Do not use FORMATSQLif
    FORMATASCIIor FORMATXMLis being used.
    A FORMATSQL statement affects all extract files or trails defined after it.
    Default output
    Without options, FORMATSQLtransactions are output as follows, in comma-delimited format:
    ● The begin-transaction indicator, B.
    ● The timestamp at which the transaction was committed.
    ● The sequence number of the transaction log in which the commit was found.
    ● The relative byte address (RBA) of the commit record within the transaction log.
    ● The SQL statements.
    ● The commit indicator, C.
    ● A newline indicator.
    Every record in a transaction is contained between the begin and commit indicators. Each
    combination of commit timestamp and RBA isunique. You can customize the output
    format with optional arguments.
    Default See “Default output”
    Syntax FORMATSQL [<option>] [, ...]

  • How to create a loop to run total of records for before and after unconstant date

    Post Author: Ann2
    CA Forum: Formula
    Here is the data sample:
    ID period code date
    1  00  I    01/01/1999
    1 00   Z   01/02/1999
    1 00  G   12/05/1999
    1 00  M   01/01/2000
    There are many students with many periods and many codes. I need to save a date when code = 'G' and count separateley records per student/period 2 times - before and equal that date and after that date, so in the end for period 00 I will have 2 values: 3 (before) and 1(after).
    There are periods from 00 to 08. I am counting students abscencies before and after warning letter was sent (code G).
    The result data should look : 00 01 02 03 04 05 06  07  08              00 01 02 03 04 05 06  07  08     Total
                                                3  0   0   0   0   0   0   0   0                 1 0    0   0   0   0   0   0   0        4
    Please help me.
    Thank you.
    Ann2

    Post Author: Ann2
    CA Forum: Formula
    Thank you for your answer, but I do care about the date the 'G' happened, because I need to reset count.
    The logic behind is this:if a student absent for more than 8 times per period - the letter will be sent out to the parents , that will be code 'G' with period '-1' (it may happen that there will never be code 'G' , but I need to track all absencies). Once the letter is sent, the count starts over (the count starts over the next day after code 'G'). The absencies which happened before or the date the letter sent should count toward 'previous'  abscenices, all other - absenices after the letter.
    So basically I need total per period and total per period before or the day with code 'G'.  Running total with reset with formula code = 'G' does not work.
    I created a formula field which has global date (when code 'G' happenned) and it says if globaldate >= periodDate then date (1900,01,01) else (2100,01,01) and that formula is ok, but I can not use it in running total or can not create group on it and insert total.
    Please help me with this. Thank you.
    Ann2

  • Counting values before and after an interval

    I posted this awhile back but I'm back to trying to solve the problem (didn't solve it), so apologies if that is bad etiquette! This forum has been so helpful though I thought I would try again:
    design/methodology question
    The short of it is I have a table with calls that happened, all have a start and end time.
    I want to take 1 min intervals over a given hour (say, 12-1pm) and (the part I need help with) count all calls that happened before and after that interval.
    That is to say, all calls that were 'active' during that interval (consider if I call started at 11:59 am and ended at 12:05) would need to be counted for the 12:00, 12:01, 12:02, 12:03, 12:04, and 12:05 intervals.
    So what I'm trying to construct is an SQL query that uses a 'variable' in this case (I think).
    That is, so I can saw 'where start_time < min_interval' and where 'end_time is > min_interval' and count those records to my total.
    But I'm at a loss on how to pull this off!
    Thoughts?

    If a call began at 15:01:01 and ended at 15:01:59, was it active at 15:01? Was it active at 15:02? Both? Neither?Is only active at 15:01.
    Do you need 4 separate numbers, or do you need 1 number, which is the total of these 4?I need 1 number which is the math formula (using the number above)
    1 + 2 - 3 + 4
    Oracle version is 10.2.0.4.0
    I will work on learning the CREATE TABLE and INSERT statements, as well as, the WITH one.
    Is the point of submitting those to understand the data set being worked with?
    Here is my attempt...
    Consider the following:
    WITH     my_call     AS
         SELECT     1 AS call_id     ,     to_date('10-may-2011 12:00:17'
                             , 'dd-mon-yyyy hh24:mi:ss'
                             ) AS start_time      ,      to_date('10-may-2011 12:01:23'
                                                 , 'dd-mon-yyyy hh24:mi:ss'
                                                 ) AS end_time  FROM dual     UNION ALL
         SELECT     2           ,      to_date('10-may-2011 12:00:45'
                             , 'dd-mon-yyyy hh24:mi:ss'
                             )                 ,      to_date('10-may-2011 12:03:55'
                                                 , 'dd-mon-yyyy hh24:mi:ss'
                                                 )           FROM dual     UNION ALL
         SELECT     3          ,      to_date('10-may-2011 12:01:01'
                             , 'dd-mon-yyyy hh24:mi:ss'
                             )                 ,      to_date('10-may-2011 12:01:59'
                                                 , 'dd-mon-yyyy hh24:mi:ss'
                                                 )           FROM dual     UNION ALL
         SELECT     4          ,      to_date('10-may-2011 12:01:45'
                             , 'dd-mon-yyyy hh24:mi:ss'
                             )                 ,      to_date('10-may-2011 12:04:43'
                                                 , 'dd-mon-yyyy hh24:mi:ss'
                                                 )           FROM dual     UNION ALL
         SELECT     5           ,      to_date('10-may-2011 12:02:33'
                             , 'dd-mon-yyyy hh24:mi:ss'
                             )                 ,      to_date('10-may-2011 12:08:05'
                                                 , 'dd-mon-yyyy hh24:mi:ss'
                                                 )           FROM dual     UNION ALL
         SELECT     6           ,      to_date('10-may-2011 12:02:35'
                             , 'dd-mon-yyyy hh24:mi:ss'
                             )                ,      to_date('10-may-2011 12:04:56'
                                                 , 'dd-mon-yyyy hh24:mi:ss'
                                                 )           FROM dual     UNION ALL
         SELECT     7           ,      to_date('10-may-2011 12:03:02'
                             , 'dd-mon-yyyy hh24:mi:ss'
                             )                 ,      to_date('10-may-2011 12:05:13'
                                                 , 'dd-mon-yyyy hh24:mi:ss'
                                                 )           FROM dual     UNION ALL
         SELECT     8           ,      to_date('10-may-2011 12:03:41'
                             , 'dd-mon-yyyy hh24:mi:ss'
                             )                 ,      to_date('10-may-2011 12:04:37'
                                                 , 'dd-mon-yyyy hh24:mi:ss'
                                                 )           FROM dual
    )then, to solve #1 (calls that started in each minute):
    select
      to_char(new_time(trunc(start_time, 'hh24') + (trunc(to_char(start_time, 'mi')/1)*1)/24/60, 'GMT', 'CDT'), 'hh24:mi') as "Start Time",
      count(*) as "Start Time Count"
    from
      my_call
    group by
      to_char(new_time(trunc(start_time, 'hh24') + (trunc(to_char(start_time, 'mi')/1)*1)/24/60, 'GMT', 'CDT'), 'hh24:mi')
    order by
      to_char(new_time(trunc(start_time, 'hh24') + (trunc(to_char(start_time, 'mi')/1)*1)/24/60, 'GMT', 'CDT'), 'hh24:mi');would yield the following output (consider I am converting to GMT in this example):
    07:00     2
    07:01     2
    07:02     2
    07:03     2To solve 2, calls with end_time, I do the following:
    select
      to_char(new_time(trunc(end_time, 'hh24') + (trunc(to_char(end_time, 'mi')/1)*1)/24/60, 'GMT', 'CDT'), 'hh24:mi') as "End Time",
      count(*) as "End Time Count"
    from
      my_call
    GROUP BY to_char(new_time(trunc(end_time, 'hh24') + (trunc(to_char(end_time, 'mi')/1)*1)/24/60, 'GMT', 'CDT'), 'hh24:mi')
    order by
      to_char(new_time(trunc(end_time, 'hh24') + (trunc(to_char(end_time, 'mi')/1)*1)/24/60, 'GMT', 'CDT'), 'hh24:mi');which gives us:
    07:01     2
    07:03     1
    07:04     3
    07:05     1
    07:08     1# 3 (calls that started and ended in the same minute) is:
    select
      to_char(new_time(trunc(end_time, 'hh24') + (trunc(to_char(end_time, 'mi')/1)*1)/24/60, 'GMT', 'CDT'), 'hh24:mi') as "End Time",
      count(*) as "End Time Count"
    from
      my_call
    where
    to_char(new_time(trunc(start_time, 'hh24') + (trunc(to_char(start_time, 'mi')/1)*1)/24/60, 'GMT', 'CDT'), 'hh24:mi') = to_char(new_time(trunc(end_time, 'hh24') + (trunc(to_char(end_time, 'mi')/1)*1)/24/60, 'GMT', 'CDT'), 'hh24:mi')
    GROUP BY to_char(new_time(trunc(end_time, 'hh24') + (trunc(to_char(end_time, 'mi')/1)*1)/24/60, 'GMT', 'CDT'), 'hh24:mi')
    order by
      to_char(new_time(trunc(end_time, 'hh24') + (trunc(to_char(end_time, 'mi')/1)*1)/24/60, 'GMT', 'CDT'), 'hh24:mi');which gives us:
    07:01     1Now, given the small data set (which, as a side note, I can see a little, now, why the WITH statement here is useful and important!) we know the final output should be
    (EXPECTED RESULT WHEN WE ARE DONE):
    07:00     2
    07:01     4
    07:02     4
    07:03     6
    07:04     5
    07:05     2
    07:06     1
    07:07     1
    07:08     1So what I am posting this forum is help in calculating #4 - calls that had a start time (trunc'd to the minute) before the minute interval and an end_time after.
    Something like this:
    select
      to_char(new_time(trunc(end_time, 'hh24') + (trunc(to_char(end_time, 'mi')/1)*1)/24/60, 'GMT', 'CDT'), 'hh24:mi') as "End Time",
      count(*) as "End Time Count"
    from
      my_call
    where
    to_char(new_time(trunc(start_time, 'hh24') + (trunc(to_char(start_time, 'mi')/1)*1)/24/60, 'GMT', 'CDT'), 'hh24:mi') < minute_interval and
    to_char(new_time(trunc(end_time, 'hh24') + (trunc(to_char(end_time, 'mi')/1)*1)/24/60, 'GMT', 'CDT'), 'hh24:mi') > minute_interval
    GROUP BY to_char(new_time(trunc(end_time, 'hh24') + (trunc(to_char(end_time, 'mi')/1)*1)/24/60, 'GMT', 'CDT'), 'hh24:mi')
    order by
      to_char(new_time(trunc(end_time, 'hh24') + (trunc(to_char(end_time, 'mi')/1)*1)/24/60, 'GMT', 'CDT'), 'hh24:mi');where the expected output would be:
    07:00     0
    07:01     1
    07:02     2
    07:03     3
    07:04     2
    07:05     1
    07:06     1
    07:07     1
    07:08     0thoughts on accomplishing this?

  • I am trying to delete pages I have crated in numbers, but can only see them in print preview. Without print preview I do not see them. How can I delete these pages, but keep others before and after?

    I am trying to delete pages I have crated in numbers, but can only see them in print preview. Without print preview I do not see them. How can I delete these pages, but keep others before and after?

    Hi Crushed,
    Numbers doesn't have pages. It has a canvas that holds objects such as tables and charts.
    Drag the objects from the bottom of the canvas onto the white space above. That will reduce the number of "pages" (sheets of paper) that will print.
    Regards,
    Ian.

  • Count before and after to certain occurance.

    I am trying to count the amount of units  studied before and after a certain Course was taken.
    So ID 1 did PREP in 2013 in the first period and has and also had done a unit in 2009 so reult be before prerp count 1
    ID 2 did PREP in 2012 first period and also an OTHER course in the same period as well as a OTHER in period 2. So when a PREP course appear in the same period and year as an OTHER course I would like it to count it as AFTER Prep.(see below(so when equal count as after PREP))
    ID 3 has done one unit before before PREP which is in 2011 and 2 Units after the first PREP course.
    I attepted this with not in and in statments basic I know but to no luck.
    Any help is greatly appreciated.
    Thanks
    CREATE TABLE DAN_DIRK_2
    (ID     VARCHAR2(8),
    YEAR    VARCHAR2(8),
    PERIOD VARCHAR2(8),
    COURSE VARCHAR2(12),
    UNIT VARCHAR2(12));
    INSERT INTO DAN_DIRK_2 (ID, YEAR,PERIOD,COURSE,UNIT) VALUES (1,'2013','SP1','PREP','PLI');
    INSERT INTO DAN_DIRK_2 (ID, YEAR,PERIOD,COURSE,UNIT) VALUES (1,'2009','SP4','OTHER','DRI');
    INSERT INTO DAN_DIRK_2 (ID, YEAR,PERIOD,COURSE,UNIT) VALUES (2,'2012','SP1','OTHER','FER');
    INSERT INTO DAN_DIRK_2 (ID, YEAR,PERIOD,COURSE,UNIT) VALUES (2,'2012','SP2','OTHER','AQW');
    INSERT INTO DAN_DIRK_2 (ID, YEAR,PERIOD,COURSE,UNIT) VALUES (2,'2012','SP1','PREP','FGV');
    INSERT INTO DAN_DIRK_2 (ID, YEAR,PERIOD,COURSE,UNIT) VALUES (3,'2011','SP1','OTHER','GVW');
    INSERT INTO DAN_DIRK_2 (ID, YEAR,PERIOD,COURSE,UNIT) VALUES (3,'2012','SP2','PREP','FER');
    INSERT INTO DAN_DIRK_2 (ID, YEAR,PERIOD,COURSE,UNIT) VALUES (3,'2013','SP1','OTHER','FSW');
    INSERT INTO DAN_DIRK_2 (ID, YEAR,PERIOD,COURSE,UNIT) VALUES (3,'2013','SP1','PREP','FGH');
    GIVES:
    ID
    YEAR
    PERIOD
    COURSE
    UNIT
    1
    2013
    SP1
    PREP
    PLI
    1
    2009
    SP4
    OTHER
    DRI
    2
    2012
    SP1
    OTHER
    FER
    2
    2012
    SP2
    OTHER
    AQW
    2
    2012
    SP1
    PREP
    FGV
    3
    2011
    SP1
    OTHER
    GVW
    3
    2012
    SP2
    PREP
    FFR
    3
    2013
    SP1
    OTHER
    FSW
    3
    2013
    SP1
    PREP
    FGH
    WANT:
    ID
    BEFORE
    AFTER
    1
    1
    0
    2
    0
    2
    3
    1
    2

    Chloe_19 wrote:
    Get an Error
    ORA-32033: unsupported column aliasing
    32033. 00000 -  "unsupported column aliasing"
    *Cause:    column aliasing in WITH clause is not supported yet
    *Action:   specify aliasing in defintion subquery and retry
    Error at Line: 1 Column: 8
    Am using version:
    Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bi
    because you use 10g, try this :
    WITH tt AS (
    select 1 ID,  2013 YR,  'SP1' PERIOD,  'PREP' COURSE,  'PLI' UNIT from dual union all
    select 1,  2009,  'SP4',  'OTHER',  'DRI' from dual union all
    select 2,  2012,  'SP1',  'OTHER',  'FER' from dual union all
    select 2,  2012,  'SP2',  'OTHER',  'AQW' from dual union all
    select 2,  2012,  'SP1',  'PREP',  'FGV' from dual union all
    select 3,  2011,  'SP1',  'OTHER',  'GVW' from dual union all
    select 3,  2012,  'SP2',  'PREP',  'FFR' from dual union all
    select 3,  2013,  'SP1',  'OTHER',  'FSW' from dual union all
    select 3,  2013,  'SP1',  'PREP',  'FGH' from dual ),
    tt2 AS (
    SELECT t.ID,
           min(t.YR) minyr, 
           min(replace(t.PERIOD,'SP','')) KEEP(DENSE_RANK FIRST ORDER BY T.YR) minpr
    FROM  tt t
    WHERE t.COURSE = 'PREP'
    GROUP BY t.ID)
        SELECT ID,
               NVL(COUNT(BEF),0) BEFORE,
               NVL(COUNT(AFT),0) AFTER
               FROM(          
                        SELECT t1.ID,
                               (CASE WHEN t1.YR = t2.minyr AND replace(t1.PERIOD,'SP','')= t2.minpr AND t1.course='PREP' THEN NULL
                                     WHEN t1.YR = t2.minyr AND replace(t1.PERIOD,'SP','')= t2.minpr AND t1.course!='PREP' THEN NULL
                                     WHEN t1.YR < t2.minyr THEN -1
                                     WHEN t1.YR = t2.minyr AND replace(t1.PERIOD,'SP','')<= t2.minpr THEN -1
                                 END) BEF,
                               (CASE WHEN t1.YR = t2.minyr AND replace(t1.PERIOD,'SP','')= t2.minpr AND t1.course='PREP' THEN NULL
                                     WHEN t1.YR = t2.minyr AND replace(t1.PERIOD,'SP','')= t2.minpr AND t1.course!='PREP' THEN 1
                                     WHEN t1.YR > t2.minyr THEN 1
                                     WHEN t1.YR = t2.minyr AND replace(t1.PERIOD,'SP','')>= t2.minpr THEN 1
                                 END) AFT        
                         FROM tt t1
                        LEFT JOIN tt2 t2
                               ON t2.id = t1.id
        GROUP BY ID
        ORDER BY 1

  • Can I print before and after on the same page?

    Hi everyone.
    I'm really proud of my editing on a particular image.  I want to print the before and after on the same page, just like I can see the before and after side-by-side in the Develop mode.
    Is this possible?
    Thanks for your help.

    Yes but you will need to make a virtual copy by going to the menu:
    Photo >> Create Virtual Copy
    Then open copy 2 in the Develop module and from the history panel change the setting to the time of import (usually the bottom of the list) or use the re-set button to get back to the original file from camera.
    You can then select copy 1 & 2 and go to the Print module to set up your page with both images.

  • Status page before and after print jobs managed by Jetdirect.

    Hey Guys I am receiving an extra page before and after every print job.
    Printers are managed from Jetdirect Printer Installer for Unix Version E.10.34
    Server has Sun OS 5.10
    I have like 19 printers but only 5 HP CB516A are having this problem.
    The Print Message displayed is :
    Start: fpec4050-2729 Tue Nov 11 15:41:18 EST 2014
    End: fpec4050-2729 Tue Nov 11 15:41:18 EST 2014
    Its not a major issue but its a nuissance and wastes pages and ink
    Any assistance for a resolution to this would be helpful.
    Thanks.

    @deff 
    ‎Thank you for using HP Support Forum. I have brought your issue to the appropriate team within HP. They will likely request information from you in order to look up your case details or product serial number. Please look for a private message from an identified HP contact. Additionally, keep in mind not to publicly post ( serial numbers and case details).
    If you are unfamiliar with the Forum's private messaging please click here to learn more.
    Thank you,
    Omar
    I Work for HP

  • An extra page prints before and after a page with the data, why?

    If I go to www.allrecipes.com, select a recipe and click on the Print button, FF prints an extra blank page before and after the recipe. The recipe is short and easily fits on a single page. I've changed all the print settings so that even the Header & Footer info is set to "Blank".

    I don't understand why blank pages are generated, but I can help you with a quick hack if you like. This will strip off everything but the actual recipe area so that you can streamline the printout.
    After you load the page and select your options:
    * Open Firefox web console using Ctrl+Shift+k
    * Next to the caret (>) paste the following script then press Enter to run it:
    var rectbl = document.querySelector(".pageback table.recipeprinttable"); document.body.insertBefore(rectbl, document.body.firstChild); while(document.body.children.length>1) document.body.removeChild(document.body.children[1]);
    * Close the web console by pressing Ctrl+Shift+k again
    When you preview the page, it should look ready for printing. Any luck?
    Obviously that's not very convenient if you print a lot of recipes from this site, so you could save the script as a bookmarklet. Here's how:
    First, copy this slightly modified script (select, Ctrl+c):
    javascript: var rectbl = document.querySelector(".pageback table.recipeprinttable"); document.body.insertBefore(rectbl, document.body.firstChild); while(document.body.children.length>1) document.body.removeChild(document.body.children[1]); void 0;
    Next, if you are not displaying the Bookmarks Toolbar, you can display it using either:
    * right-click a blank area of the tab bar > Bookmarks Toolbar
    * tap the Alt key > View menu > Toolbars > Bookmarks Toolbar
    Right-click on the Bookmarks Toolbar and choose New Bookmark.
    Paste the code into the Location box (the second box).
    Then type a useful name in the Name box (e.g., AllRecipes) and click Add.
    Now, when you want to hack the page, click the button to run the script.

  • PSC 1210 page feed before and after printing

    My PSC 1210 has been working fine for years but it has just recently started feeding a blank page before and after printing. That wouldn't be a problem except that the blank pages are not fully ejected, this means that I have to grab the first blank page, as it comes through the printer, and pull it out, otherwise it gets drawn back in causing a paper jam when the actual print job starts. Once this blank page has been removed the print job continues perfectly.
    This occurs when printing documents, copying using the scanner, and printing a test page.
    I have removed and reinstalled the printer driver/software and performed a partial reset on the printer, neither fixed the problem.

    I see you mention that the issue also happens when you are copying, that means that this issue is not related to your printer software. So that's good to know!
    Now, since this is not a software issue, this must then be related to your hardware. Is this printer plugged into a wall outlet directly or is it plugged into a surge protector? To be sure that the printer gets all the power it needs make sure that it is plugged directly into a wall outlet.
    First things first, I would recommend unplugging the printer for about 30 seconds from both the back of the unit and from the wall outlet, and then plugging it back in. Try making a copy or print and see if the issue persists.
    You can also try cleaning the paper feed rollers in the printer, here is a document that can show you where all of those are located and how to clean them.
    http://goo.gl/glh8v
    Let me know if any of this helps resolve the issue!

  • L7680 Ejects Blank Page before and after print job

    My L7680 recently started to eject a blank page before and after a print job; seperator page option is NOT selected.  I tried all the suggested trouble shooting points in the HELP section but none have solved the issue. 
    This question was solved.
    View Solution.

    The setup button on the printer had a choice to return to all factory defaults - that solved the problem but it does take yoiu back to starting again to set other choices you may have made since starting toi use the devise.

  • Hp 5510 won't print black before and after installing new cartridge. have done specified checks.

    HP Photosmart 5510 won't print black before and after installing new cartridge.  Have done specified checks.

    sueali301 wrote:
    Been through all steps. Cannot find levers.The printhead on the Photosmart 5510 is not removable.  For the Photosmart 5510 the troubleshooting steps in the document here may help.  Especially make sure the vents are cleared.  If that does not resolve the issue then resetting the printer as described in the post here may help.  If this does not resolve the issue then read the entire thread here and try requesting reset instructions. If your printer is under warranty I suggest you contact HP for warranty service.  If you are in the US call 1-800-HPINVENt, elewhere see the contact information here. 

  • M1522nf feeds one bland page before and after each printing.

    My HP m1522nf will feed one bland page before and after each printing.

    This seems to be a commercial product. For the best chance at finding a solution I would suggest posting in the forum for HP Business Support!
    You can find the Commercial Laserjet board here:
    http://h30499.www3.hp.com/t5/Printers-LaserJet/bd-p/bsc-413
    Best of Luck!
    You can say thanks by clicking the Kudos Star in my post. If my post resolves your problem, please mark it as Accepted Solution so others can benefit too.

  • Data Loading(Before and After Image)

    I heard that a datasource which has both "Before and After Image " ,then the data can be sent directly to the infocube or from the DSO to the Infocube but where as
    If a datasource supports after image then first it has to be loaded to the DSO and then to the Infocube ,
    My question is how to know the image types of the datasource ?

    Hi Ravi,
    Check in ROOSOURCE tables in ECC. You can find the behvariaour options in DELTA field, so based on this table we can say will it support Cube/ODS.
        Delta Only Via Full Upload (ODS or InfoPackage Selection)
    A    ALE Update Pointer (Master Data)
    ABR    Complete Delta with Deletion Flag Via Delta Queue(Cube-Comp)
    ABR1    Like Method 'ABR' But Serialization Only by Requests
    ADD    Additive Extraction Via Extracto (e.g. LIS Info Structures)
    ADDD    Like 'ADD' But Via Delta Queue (Cube-Compatible)
    AIE    After-Images Via Extractor (FI-GL/AP/AR)
    AIED    After-Images with Deletion Flag Via Extractor (FI-GL/AP/AR)
    AIM    After-Images Via Delta Queue (e.g. FI-AP/AR)
    AIMD    After-Images with Deletion Flag Via Delta Queue (e.g. BtB)
    CUBE    InfoCube Extraction
    D    Unspecific Delta Via Delta Queue (Not ODS-Compatible)
    E    Unspecific Delta Via Extractor (Not ODS-Compatible)
    FIL0    Delta Via File Import with After-Images
    FIL1    Delta Via File Import with Delta Images
    NEWD    Only New Records (Inserts) Via Delta Queue (Cube-Compatible)
    NEWE    Only New Records (Inserts) Via Extractor (Cube-Compatible)
    O  
    ODS    ODS Extraction
    X    Delta Unspecified (Do Not Use!)

  • Everyone:  This time repair your permissions before and after 10.4.8 update

    Hello All,
    Just a reminder for all those who are updating to OS 10.4.8.
    While many people do ignore all the recommendations that we provide and still come through fine, please do consider observing the following to minimize your problems.
    To insure the best chance of success, please consider downloading the Combo Updater for your computer instead of using Software update.
    For PowerPC Mac's, this would be:
    http://www.apple.com/support/downloads/macosx1048comboupdateppc.html
    For Intel Macs, this would be:
    http://www.apple.com/support/downloads/macosx1048comboupdateintel.html
    The benefit of using the Combo Updater, is that it replaces all system files that have been changed since the last major release (in this case since 10.4.0).
    So, if you have any system files that have become corrupted, the Combo Updater will very likely over-write those, and spare you the headaches that come from updating an operating system that has problems that just haven't come to the surface yet.
    In many cases, you can have problems that have not come to the surface, and the "Delta" or Software update method will bring them out to bite you. The reason for this, is because the Delta / Software Update version only changes files that have changed since 10.4.7. And, it works more in a "patch" fashion. So, if there is a problem in one of the files being patched, then the update will cause you some major headaches.
    Going with the larger "Combo" update over-writes almost all the System files with clean versions instead of just making patches. So, it is frequently much more successful.
    Now, with that said, before you update, you should make sure your permissions are all set properly. If your permissions are wrong, then your update will likely have trouble.
    So, go into "Disk Utility" in the Applications --> Utilities folder and repair your permissions.
    Start by selecting your hard drive on the left window of Disk Utility. Then, go down and click on the "Repair Permissions" button. Once it's completed, then exit Disk Utility.
    Now, it is also extremely important to make sure all running programs are closed before you install any system update. So, go ahead and restart your computer.
    Restarting will make sure that all programs are closed, and that nothing weird is stuck in memory before you install.
    If you have anti-virus programs running, then disable or deactivate them first (you don't want them interpreting this as unauthorized modification or it might prevent certain files from being updated).
    Now, with your computer freshly restarted, install the Combo updater you downloaded.
    When prompted, click on the "Restart" button when prompted.
    Now, the computer will startup, but sit at the spinning wheel for several minutes. It will eventually restart again on it's own. And, finally, it will start-up all the way and you'll be back at your desktop.
    Now, immediately go back to Disk Utility and repair permissions as you did in the previous step. You will likely see several permissions that have been repaired. In my case, I had dozens of CoreAudio, Widgets, and other permissions that needed repair. Once permissions have been repaired, go ahead and restart one last time. This makes sure that everything is set and then cleaned-up.
    Once it reboots, begin using it and enjoy.
    Now, this may sound like a lot. But, it really is simple. It just reads like a lot of stuff.
    And, of course, you are free to ignore this and just install it however you like. Many people have their own ideas here. And, many people say you don't have to do anything to prepare. But, for those that have had huge problems in the past, these extra steps will usually save you the major headaches that tons of people inevitably have with every new update.
    Anyway, I hope this helps to save at least a few of you any problems. If you don't agree with the ideas above, just ignore it and do as you like.
    But, if you want a little extra piece-of-mind and a better chance at success, then please consider exercising this extra caution.
    And, for the record, I have updated my machines to 10.4.8 (within minutes of the update being available) and it is working perfectly smooth on my systems.
    I hope you find this helpful.

    mhunter, thanks and good that you take the time and effort again to remind everyone that it does take an effort to do a major OS update, to ensure maximum stability.
    So far my 10.4.8 Update is a-okay, and I have had many trouble-free updates since installing 10.4
    I too practice rigourously and "religiously" before and after an OS or Security Update, but I normally use Software Update, equally successful:
    1. Before Startup, UNPLUG all external devices, left only keyboard, mouse and internet connection, unless they are all wireless.
    2. Startup, disable NAV if any, Repair Disk Permission. Restart again, Repair Permission again.
    3. Do Software Update
    4. Restart, Repair Permission
    5. Shutdown, plug everything back
    6. Startup Mac, use Mac
    So far these steps have been keeping all my macs both at home and at work very very stable and healthy.
    Maybe, just maybe if everyone here, all mac users were to follow these steps, yes they can be a hassle, yes they can take up some time, but then there will be less less complains and "blasts" at Apple, just because perhaps themselves have been too careless or negligance in performing updates.
    Cheers

Maybe you are looking for

  • How to report a problem in ios 7

    i have found a minot glitch in iphone ios 7... related to the lock screen, how to report it to apple and is it true that if i found a bug i get paid for it ?

  • Characteristic USITMMPE is blocked by conversion

    I tried to activate an InfoObject and I got: Characteristic USITMMPE is blocked by conversion. Now I am unable to make any change to this InfoObject. How to unblocked it? Thanks.

  • Allow Software to Delete Channels, but Not User

    I am using the OnDeleteRequest action to prevent the user from deleting channels in my custom device.  However I realized that this also prevents code I write (in this case executing on a right-click action) from deleting channels.  I need a way to d

  • XSL transform sort problem in 1.5

    I am having problems applying an XSL transform to some XML data I have under the 1.5 JRE. Under 1.4.2 (and in several tools and browsers), the transform works correctly. In 1.5, <xsl:sort...> directives don't seem work correctly. Here's a simplified

  • Ix4-300d disk firmware

    Hi, I recently bought ix4-300d with 4 2TB ST2000DM001-1ER164 (firmware CC25). Already having updated the devices firmware I saw on this thread 1524192 "We do not recommend or see it necessary to update the firmware unless you have firmware CC37 or lo