RPTIME01  ( PT60 ) damn slow .... Each job taking 6 hours to run

Hello Guys,
         We have are on SAP 4.7 and CE in place. Time evaluation is damn slow. I’m clueless from where to start. It’s like finding a needle in haystack.  
  I came across the following OSS note; we implemented it but no change. Each job is taking like 6 to 7 hours ….
Any help would be appreciated
“It is also possible to optimize the runtime of RPTIME01 by adjusting the T77s0 parameters LDB (group) and PCEPS (semantic abbreviation)). The default setting is a value of 0, which means that the logical database PNPCE processes packages of 10,000 persons. You can set a considerably smaller value here, for example 100. “
Note 1016714 - Memory overflow TSV_TNEW_PAGE_ALLOC_FAILED
Symptom
When you process a large number of persons using the RPTIME01 time evaluation driver, the runtime is excessive, and the system may terminate the program with the short dump TSV_TNEW_PAGE_ALLOC_FAILED.
Other terms
PNPCE, interface object, memory overflow, time evaluation, concurrent employment
Reason and Prerequisites
The error occurs if the RPTIME01 program tries to allocate memory space that is no longer available. Three factors affect whether the program terminates, when it terminates, and how the error affects the runtime - these are the system settings, the hardware you use, and (most importantly) the amount of data to be processed. Due to this error, the application program retains a copy of specific data for each processed personnel number (contract) in the working memory, even though this data is no longer required after it has completed the time evaluation of a person.
Solution
The error has been corrected, and the solution is delivered by Support Package. You can also implement an advance correction. It is also possible to optimize the runtime of RPTIME01 by adjusting the T77s0 parameters LDB (group) and PCEPS (semantic abbreviation)). The default setting is a value of 0, which means that  the logical database PNPCE processes packages of 10,000 persons. You can set a considerably smaller value here, for example 100. Note that this has no effect on the error described above - RPTIME01 still does not delete the contract data from memory when logical database PNPCE does so. However, by reducing the values of LDB PCEPS, you also reduce the application's memory requirements

We have updated the support pack  to 73  and program “RPCS0000” is giving error  “Invalid SPOOL parameters”  . I created the variant in PT60 , and running 20 jobs . it is keep giving error .
    After research I come to know that for program “RPCS0000 “ in source code “RPCS0F00” in the following perform it is giving error .
  PERFORM get_pri_params USING pri_params
arc_params
  xini_pri_params
    job_name
  xnodial_flg
   xprogname
   spool_title.
SAP note : BTC_DONT_READ_PRIPARAMS   LIKE BTCH0000-INT4 VALUE 35,  " note 770158
Any body know how to get of this error .
FYI
Symptom
When you create job steps, this results in a large number of accesses on the TPRI_PAR table containing the print parameters. The high access rate occurs in particular when you try to create a job with a large number of steps.
Other terms
BP_JOB_MODIFY, BP_JOB_READ, JOB_SUBMIT, LBTCHDEF, read_old_jobdata
Reason and Prerequisites
This is a program error that causes superfluous accesses to the TPRI_PAR table.
Solution
Import the relevant Support Package. For technical reasons (upgrade problems), correction instructions are not available.
IMPORTANT NOTE: Unfortunately, the first version of this note contains an error. This error becomes apparent when you edit a step in change mode in transaction SM36 or SM37 with extended print parameters (for example, e-mail address in the case of a mail printer or page area). The extended print parameters are not displayed in this case. To solve this problem, import the most recent Support Package or implement the correction instructions.
Note that the correction instructions must only be implemented if you have already imported the Support Packages that eliminate the error described in this note. The correction instructions do NOT eliminate the problem of unnecessary access to TPRI_PAR.

Similar Messages

  • With one condition included my discoverer report is taking hours to run

    Hi,
    I am trying to build a discoverer report based on a view and i have defined couple of conditions as per the business requirement. Here is my view which is executing fine from database and at discoverer level.
    Now the requirement is to get the details with conditions
    1. Application_date is not equal to apply date
    2. Applied_amount>0
    parameters should be
    Application_date low and high
    The report is successfully executing when i use condition1 that is application_date<>apply date with parameters mentioned.
    But when i define second condition at report level that applied_amount>0, its taking hours to run.
    Please advise me the way to use this condition2 so that it should be executed in normal time.
    Thanks,
    Prathyusha.
    Edited by: 958913 on Oct 10, 2012 1:28 PM

    Hi Srini,hussein,
    Thanks so much.
    Yes srini that is related to my post. I have tried all the options to make that condition workout. But hard luck i could nt able to make this work out.
    Im still wondered my query is successfully getting executed in database fine and when i give any condition on applied amount its taking hours to run from discoverer desktop and i dont find it executed anytime till now.
    I am not sure about enabling this trace option as i reviewed the ID's suggested by you and seems that all needs to be done with the help of DBA. But i dont have that much time to make this workout. This is an immediate business requirement and i have never seen this problem anytime with discoverer desktop.
    Any help would be appreciated.
    Thanks,
    Prathyusha.

  • My sql query is taking hours to run from toad

    SELECT * from (select hr.NAME org_name, ractla.org_id, acct_site.attribute_category,
              acct_site.attribute10 general_agent, arc.reversal_category,arr.reversal_gl_date,ard.reversed_source_id,
              DECODE (acct_site.attribute_category,
                      'COMM', acct_site.attribute9,
                      'IPLAN', acct_site.attribute11,
                      NULL
                     ) broker_number,                       -- changed by Michelle
              SUBSTR (hca.account_number, 1, 12) customer_number,
              ractla.attribute3 plan_type,
              SUBSTR (hp.party_name, 1, 15) customer_name,
              DECODE (ractla.attribute_category,
                      'Commercial Receivables', ractla.attribute1,
                      'Subscriber Receivables', ractla.attribute1,
                      NULL
                     ) product,                                        --x Product
              rax.trx_number trx_number, rax.trx_date transaction_date,
              DECODE
                 (SIGN (INSTR (rax.attribute4, '/')),
                  1, TO_DATE
                            (   '01'
                             || TO_CHAR
                                      (DECODE (SIGN (INSTR (rax.attribute4, '/')),
                                               1, TO_DATE
                                                         (SUBSTR (rax.attribute4,
                                                                  1,
                                                                  10
                                                          'rrrr/mm/dd'
                                               NULL
                                       'MON-RRRR'
                             'DD-MON-RRRR'
                  NULL
                 ) coverage_month, 
              DECODE (SIGN (INSTR (rax.attribute4, '/')),
                      1, TO_DATE (SUBSTR (rax.attribute4, 1, 10), 'rrrr/mm/dd'),
                      NULL
                     ) due_date,
              DECODE (acct_site.attribute_category,
                      'COMM', SUBSTR (hca.account_number, 1, 6),
                      acct_site.attribute10
                     ) employer_group,
              DECODE (arc.reversal_category,
                      'NSF', TRUNC (arr.creation_date),
                      'REV', TRUNC (arr.creation_date),
                      DECODE (arr.reversal_gl_date,
                              NULL, TRUNC (arr.apply_date),
                              DECODE (ard.reversed_source_id,
                                      NULL, TRUNC (arr.apply_date),
                                      TRUNC (arr.creation_date)
                     ) as application_date,     
                     arr.apply_date,   
                     arr.creation_date,                       --9/8/03
              arc.receipt_number receipt_number, arc.receipt_date receipt_date,
              arr.amount_applied applied_amount, rax.attribute1 company,
              rax.attribute2 division, ractla.attribute2 coverage_plan,                                                              -- (Plan Code)
              DECODE (acct_site.attribute_category,
                      'IPLAN', acct_site.attribute13,
                      'SH', acct_site.attribute8,
                      NULL
                     ) coverage_type,
              ps.amount_due_original trans_amount,
              NVL (ps.amount_due_remaining, 0) trans_amount_remaining,
              SUBSTR (hre.first_name || ' ' || hre.middle_name || ' '
                      || hre.last_name,
                      1,
                      25
                     ) salesrep_name,
              SUBSTR (acct_site.attribute5, 1, 5) salesrep_extension,
              hca.attribute4 SOURCE 
         FROM apps.ra_customer_trx_all rax,                        -- invoice info
              apps.ar_payment_schedules_all ps,
              apps.ra_cust_trx_types_all rat,
              apps.hz_cust_accounts_all hca,
              apps.hz_parties hp,
              apps.ar_receivable_applications_all arr,
              apps.ar_cash_receipts_all arc,                      --- receipt info
              apps.hr_operating_units hr,
              apps.hr_employees hre,
              apps.hz_cust_acct_sites_all acct_site,
              apps.hz_cust_site_uses_all acct_site_use,   --added by tapas on 7/16
              apps.ra_customer_trx_lines_all ractla,
              apps.ar_distributions_all ard
        WHERE
        hca.cust_account_id = rax.bill_to_customer_id 
          AND ps.customer_trx_id = rax.customer_trx_id
          AND rat.cust_trx_type_id = rax.cust_trx_type_id
          AND rat.org_id = rax.org_id
          AND arr.applied_customer_trx_id = rax.customer_trx_id
          AND arr.status = 'APP'
          AND arr.cash_receipt_id = arc.cash_receipt_id
          AND hr.organization_id = rax.org_id
          AND rax.customer_trx_id = ractla.customer_trx_id
          AND ractla.line_number = 1
          AND rax.bill_to_site_use_id = acct_site_use.site_use_id
          AND hca.cust_account_id = acct_site.cust_account_id
          AND acct_site.cust_acct_site_id = acct_site_use.cust_acct_site_id
          AND hca.party_id = hp.party_id 
          AND acct_site.attribute4 = hre.employee_id(+)
          AND hr.NAME = 'Commercial Group'
          AND ard.source_table = 'RA'
          AND ard.source_id = arr.receivable_application_id) app
          where app.application_date between :start_date and :end_Date
         and app.application_date <> app.apply_date
         and app.applied_amount>0;
    This is my query..due to some requirement i have written an inline view. The query is getting executed without inline view and even after including inline view but when i included the condition "app.applied_amount>0" its taking hours and i dont see it complete. Please advise. Urgently needed as a discoverer report needs to be built based on this.
    Thanks.
    Edited by: 958913 on Oct 8, 2012 3:52 PM
    Edited by: 958913 on Oct 8, 2012 4:19 PM
    Edited by: 958913 on Oct 8, 2012 4:33 PM

    Hi,
    the next action plan i have taken is as i need to write a condition that is based on application date(which is not a database column and is getting by a decode statement in the select) i have removed that decode statement from select and written in inline view and there by adding in where condition. Here is the query and still its taking time to run.
    /* Formatted on 2012/10/09 13:51 (Formatter Plus v4.8.8) */
    SELECT hr.NAME org_name, ractla.org_id, acct_site.attribute_category,
           acct_site.attribute10 general_agent, arc.reversal_category,
           arr.reversal_gl_date, ard.reversed_source_id,
           DECODE (acct_site.attribute_category,
                   'COMM', acct_site.attribute9,
                   'IPLAN', acct_site.attribute11,
                   NULL
                  ) broker_number,                          -- changed by Michelle
           SUBSTR (hca.account_number, 1, 12) customer_number,
           ractla.attribute3 plan_type,
           SUBSTR (hp.party_name, 1, 15) customer_name,
           DECODE (ractla.attribute_category,
                   'Commercial Receivables', ractla.attribute1,
                   'Subscriber Receivables', ractla.attribute1,
                   NULL
                  ) product,                                           --x Product
           rax.trx_number trx_number, rax.trx_date transaction_date,
           DECODE
              (SIGN (INSTR (rax.attribute4, '/')),
               1, TO_DATE (   '01'
                           || TO_CHAR (DECODE (SIGN (INSTR (rax.attribute4, '/')),
                                               1, TO_DATE
                                                         (SUBSTR (rax.attribute4,
                                                                  1,
                                                                  10
                                                          'rrrr/mm/dd'
                                               NULL
                                       'MON-RRRR'
                           'DD-MON-RRRR'
               NULL
              ) coverage_month,
           DECODE (SIGN (INSTR (rax.attribute4, '/')),
                   1, TO_DATE (SUBSTR (rax.attribute4, 1, 10), 'rrrr/mm/dd'),
                   NULL
                  ) due_date,
           DECODE (acct_site.attribute_category,
                   'COMM', SUBSTR (hca.account_number, 1, 6),
                   acct_site.attribute10
                  ) employer_group,
           app.application_date,
           arr.apply_date, arr.creation_date,                             --9/8/03
                                             arc.receipt_number receipt_number,
           arc.receipt_date receipt_date, arr.amount_applied applied_amount,
           rax.attribute1 company, rax.attribute2 division,
           ractla.attribute2 coverage_plan,                         -- (Plan Code)
           DECODE (acct_site.attribute_category,
                   'IPLAN', acct_site.attribute13,
                   'SH', acct_site.attribute8,
                   NULL
                  ) coverage_type,
           ps.amount_due_original trans_amount,
           NVL (ps.amount_due_remaining, 0) trans_amount_remaining,
           SUBSTR (hre.first_name || ' ' || hre.middle_name || ' '
                   || hre.last_name,
                   1,
                   25
                  ) salesrep_name,
           SUBSTR (acct_site.attribute5, 1, 5) salesrep_extension,
           hca.attribute4 SOURCE
      FROM apps.ra_customer_trx_all rax,                           -- invoice info
           apps.ar_payment_schedules_all ps,
           apps.ra_cust_trx_types_all rat,
           apps.hz_cust_accounts_all hca,
           apps.hz_parties hp,
           apps.ar_receivable_applications_all arr,
           apps.ar_cash_receipts_all arc,                         --- receipt info
           apps.hr_operating_units hr,
           apps.hr_employees hre,
           apps.hz_cust_acct_sites_all acct_site,
           apps.hz_cust_site_uses_all acct_site_use,      --added by tapas on 7/16
           apps.ra_customer_trx_lines_all ractla,
           apps.ar_distributions_all ard,
           (select rax1.customer_trx_id,DECODE (arc1.reversal_category,
                      'NSF', TRUNC (arr1.creation_date),
                      'REV', TRUNC (arr1.creation_date),
                      DECODE (arr1.reversal_gl_date,
                              NULL, TRUNC (arr1.apply_date),
                              DECODE (ard1.reversed_source_id,
                                      NULL, TRUNC (arr1.apply_date),
                                      TRUNC (arr1.creation_date)
                     ) as application_date
    from  apps.ar_receivable_applications_all arr1,
              apps.ar_cash_receipts_all arc1, 
              apps.ra_customer_trx_all rax1,
              apps.ar_distributions_all ard1
    where  arr1.applied_customer_trx_id = rax1.customer_trx_id
          AND arr1.status = 'APP'
          AND arr1.cash_receipt_id = arc1.cash_receipt_id
           AND ard1.source_table = 'RA'
          AND ard1.source_id = arr1.receivable_application_id
          ) app
    WHERE hca.cust_account_id = rax.bill_to_customer_id
       AND app.customer_trx_id = rax.customer_trx_id
       AND arr.apply_date <> app.application_date
       and app.application_date between :start_date and :end_date
       --AND rax.trx_number IN ('52715888', '52689753')
       AND ps.customer_trx_id = rax.customer_trx_id
       AND rat.cust_trx_type_id = rax.cust_trx_type_id
       AND rat.org_id = rax.org_id
       AND arr.applied_customer_trx_id = rax.customer_trx_id
       AND arr.status = 'APP'
       AND arr.cash_receipt_id = arc.cash_receipt_id
       AND hr.organization_id = rax.org_id
       AND rax.customer_trx_id = ractla.customer_trx_id
       AND ractla.line_number = 1
       AND rax.bill_to_site_use_id = acct_site_use.site_use_id
       AND hca.cust_account_id = acct_site.cust_account_id
       AND acct_site.cust_acct_site_id = acct_site_use.cust_acct_site_id
       AND hca.party_id = hp.party_id
       AND acct_site.attribute4 = hre.employee_id(+)
       AND hr.NAME = 'Commercial Group'
       AND ard.source_table = 'RA'
       AND ard.source_id = arr.receivable_application_id

  • How can I make Time Machine use the ethernet cable to Time Capsule instead of the wireless connection? Wireless is too slow; has been taking 40 hours to create an initial 142 GB backup.

    How can I make Time Machine use the ethernet cable to Time Capsule instead of the wireless connection? Wireless is too slow; has been taking 40 hours to create an initial 142 GB backup.

    Plug in ethernet .. in the computer.. turn off wireless.

  • My iPod touch is downloading and updating apps very slow more than an hour.

    My iPod touch 4th gen 32gb verson 4.3.1 is downloading and updating apps very slow more than an hour. I just got it a day ago and I backed up all my apps music and pictures and videos from iTunes. Few months ago I had an iPod touch but I lost it and it was working fine. Luckily before I lost it i backed up everything to iTunes so now everything that was in my old iPod is now in my new iPod. Anyways, When I first bought it I straight away backed up everything and saw that i had many updates on my apps. I started updating it all at once but even the first one was not loading at all and mty ipod was hanging many times during the updates so i cancelled all the updates. i even tried it on my computer and it was taking forever but my laptop does updating and downloading apps slower than my ipod so that doesnt matter. Even when I download an app on my iPod now its take more that an hour. So i was wondering, is my iPod slow cause I backed up too many things when i just got it . I have about 120 apps 150 plus photos and 70 videos and I backed it up all in one night on the day i got my ipod. So now I'm restoring my iPod and updating it to IOS 5 and see what happens. Hopefully it will be faster then but I still need to know what is main problem of m iPod hanging and slow updating/downloading. Need a reply ASAP. Thanks

    Still you can switch it off while syncing.
    You can also do a reset (Hold Sleep/Wake and Home buttons about 10 secs or more till Apple logo appears)

  • Excel ADODB Sql Query Execution taking hours when manipulate excel tables

    Hello All 
    I have 28000 records with 8 column in an sheet. When I convert the sheet into ADODB database and copy to new
    excel using below code it is executing in less than a min
    Set Tables_conn_obj = New ADODB.Connection
    Tables_conn_str = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" & Table_Filename & ";Extended Properties=""Excel 12.0;ReadOnly=False;HDR = Yes;IMEX=1"""
    Tables_conn_obj.Open Tables_conn_str
    First_Temp_sqlqry = "Select * INTO [Excel 12.0;DATABASE=C:\Prod Validation\Database\Second Acat Table.xlsb].[Sheet1] Table [first - Table$];" Tables_conn_obj.Execute First_Temp_sqlqry
    But when I change the query to manipulate one column in current table based on another table in the same excel
    and try to copy the results in another excel, it is taking more than one hour.. why it is taking this much time when both the query results returns the same number of rows and column. I almost spend one week and still not able to resolve this issue.
    Even I tried copyfromrecordset, getrows(), getstring(), Looping each recordset fields options all of them taking
    same amount of time. Why there is huge difference in execution time.
    Important note: Without into statement even below query is executing in few seconds.
    select ( ''''''manipulating first column based on other table data''''''''''''''
    iif(
    [Second - Table$].[Policy Agent] = (select max([ACAT$].[new_Agent_number]) from [ACAT$] where [ACAT$].[new_Agent_number] = [Second - Table$].[Policy Agent] and [ACAT$].[ACAT_EffectiveDate] = ( select MAX([ACAT$].[ACAT_EffectiveDate] ) from [ACAT$] where [ACAT$].[new_Agent_number] = [Second - Table$].[Policy Agent]and [ACAT$].[ACAT_EffectiveDate] > '2014-10-01') ) , (select max([ACAT$].[Old_Agent_number]) from [ACAT$] where [ACAT$].[new_Agent_number] = [Second - Table$].[Policy Agent] and [ACAT$].[ACAT_EffectiveDate] = ( select MAX([ACAT$].[ACAT_EffectiveDate] ) from [ACAT$] where [ACAT$].[new_Agent_number] = [Second - Table$].[Policy Agent]and [ACAT$].[ACAT_EffectiveDate] > '2014-10-01')) ,
    iif( [Second - Table$].[Policy Agent] = (select max([ACAT$].[Old_Agent_number]) from [ACAT$] where [ACAT$].[Old_Agent_number] = [Second - Table$].[Policy Agent] and [ACAT$].[ACAT_EffectiveDate] = ( select MAX([ACAT$].[ACAT_EffectiveDate] ) from [ACAT$]where [ACA T$].[Old_Agent_number] = [Second - Table$].[Policy Agent]and [ACAT$].[ACAT_EffectiveDate] <= '2014-10-01') ), (select max([ACAT$].[new_Agent_number]) from [ACAT$] where [ACAT$].[Old_Agent_number] = [Second - Table$].[Policy Agent] and [ACAT$].[ACAT_EffectiveDate] = ( select MAX([ACAT$].[ACAT_EffectiveDate] ) from [ACAT$] where [ACAT$].[Old_Agent_number] = [Second - Table$].[Policy Agent]and [ACAT$].[ACAT_EffectiveDate] <= '2014-10-01')) ,
    [Second - Table$].[Policy Agent] ))) as [Policy Agent],
    ''''''summing up all other columns''''''''''''''
    (iif(isnull(sum([Second - Table$].[Auto BW-Line Of Business Detail])),0,sum([Second - Table$].[Auto BW-Line Of Business Detail]))) as [Auto BW-Line Of Business Detail],(iif(isnull(sum([Second - Table$].[Auto Farmers])),0,sum([Second - Table$].[Auto Farmers]))) as [Auto Farmers],(iif(isnull(sum([Second - Table$].[MCA])),0,sum([Second - Table$].[MCA]))) as [MCA],(iif(isnull(sum([Second - Table$].[CEA])),0,sum([Second - Table$].[CEA]))) as [CEA],(iif(isnull(sum([Second - Table$].[Commercial P&C])),0,sum([Second - Table$].[Commercial P&C]))) as [Commercial P&C],(iif(isnull(sum([Second - Table$].[Comm WC])),0,sum([Second - Table$].[Comm WC]))) as [Comm WC],(iif(isnull(sum([Second - Table$].[Fire Farmers])),0,sum([Second - Table$].[Fire Farmers]))) as [Fire Farmers],(iif(isnull(sum([Second - Table$].[Flood])),0,sum([Second - Table$].[Flood]))) as [Flood],(iif(isnull(sum([Second - Table$].[Kraft Lake])),0,sum([Second - Table$].[Kraft Lake]))) as [Kraft Lake],(iif(isnull(sum([Second - Table$].[Life])),0,sum([Second - Table$].[Life]))) as [Life],(iif(isnull(sum([Second - Table$].[Foremost])),0,sum([Second - Table$].[Foremost]))) as [Foremost],(iif(isnull(sum([Second - Table$].[Umbrella])),0,sum([Second - Table$].[Umbrella]))) as [Umbrella],(iif(isnull(sum([Second - Table$].[MCNA])),0,sum([Second - Table$].[MCNA]))) as [MCNA]
    INTO [Excel 12.0;DATABASE=C:\Prod Validation\Database\Second Acat Table.xlsb].[Sheet1]
    from [Second - Table$] group by [Second - Table$].[Policy Agent] ;

    Hi Fei,
      Thank you so much for the reply post. I just executed the same above SQL without INTO Statement and assigned the SQL result to ADODB recordset as below. If the time difference is due to the SQL query then below statements also should execute for hours
    right, but it gets executed in seconds. But to copy the recordset to excel again it is taking hours. I tried copyfromrecordset,
    getrows(), getstring(), Looping each recordset fields options and all of them taking same amount of time. Please let me know there is delay in time for this much small data
    Even I tried to typecast all columns to double, string in SQL and still the execution time  is not reduced. 
    First_Temp_Recordset.Open sql_qry, Tables_conn_obj, adOpenStatic, adLockOptimistic ''' OR SET First_Temp_Recordset = Tables_conn_obj.Execute sql_qry

  • Excel ADODB Sql Query Execution taking hours when manipulate excel tables why?

    I have 28000 records with 8 column in an sheet. When I convert the sheet into ADODB database and copy to new excel using below code it is executing in less than a min
    Set Tables_conn_obj = New ADODB.Connection Tables_conn_str = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" & Table_Filename & ";Extended Properties=""Excel 12.0;ReadOnly=False;HDR = Yes;IMEX=1""" Tables_conn_obj.Open
    Tables_conn_str First_Temp_sqlqry = "Select * INTO [Excel 12.0;DATABASE=C:\Prod Validation\Database\Second Acat Table.xlsb].[Sheet1] Table [first - Table$];" Tables_conn_obj.Execute First_Temp_sqlqry
    But when I change the query to manipulate one column in current table based on another table in the same excel and try to copy the results in another excel, it is taking more than one hour.. why it is taking this much time when both the query results returns
    the same number of rows and column. I almost spend one week and still not able to resolve this issue.
    Even I tried copyfromrecordset, getrows(), getstring(), Looping each recordset fields options all of them taking same amount of time. Appreciate any inputs...
    select ( ''''''manipulating first column based on other table data''''''''''''''
    iif( [Second - Table$].[Policy Agent] = (select max([ACAT$].[new_Agent_number]) from [ACAT$] where [ACAT$].[new_Agent_number] = [Second - Table$].[Policy Agent] and [ACAT$].[ACAT_EffectiveDate] = ( select MAX([ACAT$].[ACAT_EffectiveDate] ) from [ACAT$] where
    [ACAT$].[new_Agent_number] = [Second - Table$].[Policy Agent]and [ACAT$].[ACAT_EffectiveDate] > '2014-10-01') ) , (select max([ACAT$].[Old_Agent_number]) from [ACAT$] where [ACAT$].[new_Agent_number] = [Second - Table$].[Policy Agent] and [ACAT$].[ACAT_EffectiveDate]
    = ( select MAX([ACAT$].[ACAT_EffectiveDate] ) from [ACAT$] where [ACAT$].[new_Agent_number] = [Second - Table$].[Policy Agent]and [ACAT$].[ACAT_EffectiveDate] > '2014-10-01')) ,
    iif( [Second - Table$].[Policy Agent] = (select max([ACAT$].[Old_Agent_number]) from [ACAT$] where [ACAT$].[Old_Agent_number] = [Second - Table$].[Policy Agent] and [ACAT$].[ACAT_EffectiveDate] = ( select MAX([ACAT$].[ACAT_EffectiveDate] ) from [ACAT$]where
    [ACA T$].[Old_Agent_number] = [Second - Table$].[Policy Agent]and [ACAT$].[ACAT_EffectiveDate] <= '2014-10-01') ), (select max([ACAT$].[new_Agent_number]) from [ACAT$] where [ACAT$].[Old_Agent_number] = [Second - Table$].[Policy Agent] and [ACAT$].[ACAT_EffectiveDate]
    = ( select MAX([ACAT$].[ACAT_EffectiveDate] ) from [ACAT$] where [ACAT$].[Old_Agent_number] = [Second - Table$].[Policy Agent]and [ACAT$].[ACAT_EffectiveDate] <= '2014-10-01')) ,
    [Second - Table$].[Policy Agent] ))) as [Policy Agent],
    ''''''summing up all other columns''''''''''''''
    (iif(isnull(sum([Second - Table$].[Auto BW-Line Of Business Detail])),0,sum([Second - Table$].[Auto BW-Line Of Business Detail]))) as [Auto BW-Line Of Business Detail],(iif(isnull(sum([Second - Table$].[Auto Farmers])),0,sum([Second - Table$].[Auto Farmers])))
    as [Auto Farmers],(iif(isnull(sum([Second - Table$].[MCA])),0,sum([Second - Table$].[MCA]))) as [MCA],(iif(isnull(sum([Second - Table$].[CEA])),0,sum([Second - Table$].[CEA]))) as [CEA],(iif(isnull(sum([Second - Table$].[Commercial P&C])),0,sum([Second
    - Table$].[Commercial P&C]))) as [Commercial P&C],(iif(isnull(sum([Second - Table$].[Comm WC])),0,sum([Second - Table$].[Comm WC]))) as [Comm WC],(iif(isnull(sum([Second - Table$].[Fire Farmers])),0,sum([Second - Table$].[Fire Farmers]))) as [Fire
    Farmers],(iif(isnull(sum([Second - Table$].[Flood])),0,sum([Second - Table$].[Flood]))) as [Flood],(iif(isnull(sum([Second - Table$].[Kraft Lake])),0,sum([Second - Table$].[Kraft Lake]))) as [Kraft Lake],(iif(isnull(sum([Second - Table$].[Life])),0,sum([Second
    - Table$].[Life]))) as [Life],(iif(isnull(sum([Second - Table$].[Foremost])),0,sum([Second - Table$].[Foremost]))) as [Foremost],(iif(isnull(sum([Second - Table$].[Umbrella])),0,sum([Second - Table$].[Umbrella]))) as [Umbrella],(iif(isnull(sum([Second - Table$].[MCNA])),0,sum([Second
    - Table$].[MCNA]))) as [MCNA]
    INTO [Excel 12.0;DATABASE=C:\Prod Validation\Database\Second Acat Table.xlsb].[Sheet1]
    from [Second - Table$] group by [Second - Table$].[Policy Agent] ;

    Hi Fei,
      Thank you so much for the reply post. I just executed the same above SQL without INTO Statement and assigned the SQL result to ADODB recordset as below. If the time difference is due to the SQL query then below statements also should execute for hours
    right, but it gets executed in seconds. But to copy the recordset to excel again it is taking hours. I tried copyfromrecordset,
    getrows(), getstring(), Looping each recordset fields options and all of them taking same amount of time. Please let me know there is delay in time for this much small data
    Even I tried to typecast all columns to double, string in SQL and still the execution time  is not reduced. 
    First_Temp_Recordset.Open sql_qry, Tables_conn_obj, adOpenStatic, adLockOptimistic ''' OR SET First_Temp_Recordset = Tables_conn_obj.Execute sql_qry

  • Drive is taking hours to install software

    Hello,
    I just purchased an iMac 27 inch i7 and when I'm trying to install pro logic it is taking hours to install. I'm on the 3rd disc and it's been going on 4 hours. Do I have a defective DVD drive or is there some kind of fix available? Thanks in advance.

    Hi, I have a thread here about the exact thing!! Although I thought it was due to the SSD in here or the HDD. I have both. Its neither, its the superdrive!! And its not specific to ANY app. I installed 6 or 8 games anywhere from 2 to 20 GB each. All take a ridiculous amount of time to install. I have spent HOURS installing just FCP application's DVD NOT THE CONTENT. Its terrible.
    I know its the superdrive, or something related to the superdrive, because I just went to best buy and purchased a portable, LG brand, 8 X DVD drive and attached it. Its TEARING through the audio content dvd that took almost 3 hours to install last night. It's 90% through and its only been 12 minutes. Your problem is exactly like mine and I originally thought it was my SSD but the content isn't even going on my SSD. Ots going on my HDD.
    What really ***** is that I JUST received this after having it built. Now I have to drag this heavy monster down to the Apple store for repair and do without...again.

  • HT1689 why is rental movie from itunes taking hours yo download. 5.5 gigabites. cannot stop download

    trying to down load a movie on my new expensive  I pad. Taking hours. Says 5.5 gb cannot stop the download either

    The time it takes is dependent on your internet speed. Check www.speedtest.net
    6mbps is required for instant HD (you can switch to SD in the settings)
    As said above ATV does not store content. Turning off or accessing other content will indeed flush the rental (requiring reload)
    Netflix uses a different system where it streams instantly and adapts based on your connection. iTunes is quality is fixed and will only start once enough has buffered in order to play without inturruption.
    The suggestion about renting via the computer is appropriate if on a slow connection or if you wish to store for later viewing.

  • How can I attach j-pegs and other documents to an email unopened and stop each them taking up a whole page of my email ?

    How can I attach j-pegs and other documents to an email unopened and stop each them taking up a whole page of my email ?

    In addition to the last poster's suggestion  -  just so you know, it also depends on the email program the recipient uses as to how they will see any attachments - for instance, when I am using my Yahoo Mail, I am absolutely unable to view any attachment within the browser window - Yahoo forces me to download it; there is no way for me to check it (like a preview) to see if I want to download it or not.
    And, FWIW: the window shown in the screenshot does not show on my version of Mail 5.1 (which is the latest for 10.7.2); the only one similar shows when viewing a message received with an attachment, not while sending one. So that must be a different version.

  • How to determine the time duration of each job for a particular report

    Hi guys,
    I am facing a very interesting problem which I want to share with all of you-hoping to get some input from you
    enlightened fellas :).
    I have vendor and vendor sub-range maintained in one custom table. For each vendor I have got article site combination maintained in another table. The thing is I have to execute this program in background. Now for each vendor I may have only 1 article or multiple articles. So if I schedule the job for 60 min. say then for 1 article the time alloted will be too big and for multiple articles the time alloted may prove to be too small. Another thing from a functional point of view is a vendor which has 1 article today may have more articles added to his name tomorrow (if the customer likes his product the company may buy more from him). So the point is we have to dynamically adjust the time alloted for each job.
    I could not find any utility in ABAP which can do this.
    Can any of you please help me?
    Thanks a lot !
    Hasso.
    Edited by: Hasso14 on Apr 28, 2011 3:06 PM

    Exaactly-only I want to find the best time needed to finish for an article or multiple articles i.e I do not know how many articles will be available for each vendor beforehand before doing a select on the 2 tables. But once I know the number (maybe 1 or more than 1) I want to allot the best time for that article/lot of articles(maybe JOB_OPEN  technique ?).Also the number of articles may vary over time so the algorithm should take care of that too.-quite a tricky prob :)-I would request the others to see this reply which I think will clarify their doubts.
    Edited by: Hasso14 on Apr 28, 2011 9:03 PM

  • Networked OJ 8500 that is extremely slow in job queuing.

    We recently installed an OJ 8500 and the job queuing is extremely slow.  The printer is networked (wired) and all users have the same problem.  We run a combination of XP, Vista and Windows7.  We have no problem getting the printer to print.  Its just painfully slow.  Job to job delays are 30 sec to 1 min.  The first job is slow to start.  Multiple copies of the same page print with this long delay between pages.  The OJ 5400 we had previously did not have this problem.  Can this be fixed?

    Once the job hits the printer it prints immediately.  It's right after you tap Print on the iPad that takes a long time. There is a box that pops up saying that the job is being processed (don't remember the wording exactly).  Once the box disappears it also takes a bit of time for the job to hit the printer. 
    The actual process of the printer printing is normal. 
    Also, in some cases the iPad won't even see that there is a printer connected to the network even though the printer is powered on, online and the iPad is connected to the home network.  Usually a reboot of the printer fixes this problem.
    Thanks

  • HT4623 So my upgarde to iOS 6.1.2 in the iPhone is taking hours by Wifi. I was told I can patch the phone to my computer, then upgrade by way of iTunes - How do I do this? The site seems particulalry unhelpful! Thanks to all who respond

    So my upgrade of 6.1.2 is taking hours by Wifi. How do I do it throuigh iTunes, patched into my computer? Thanks!

    Once the Device is asking to be Restored with iTunes... it is too late to save anything...
    To minimise loss... Connect to iTunes on the computer you Usually Sync with and Restore from the most recent Backup...
    http://support.apple.com/kb/HT1414
    Restore from Backup
    http://support.apple.com/kb/ht1766

  • Job taking too long

    hello,
    I have setup a job and its been running since 1 day and dont know why it has taken such a long time.
    The job is simply writing data on the new created info structure which is transactional data.
    So I am not sure why it is taking so long.
    How can I make some checks etc..
    How should I do the Trace and steps etc..
    Please help

    Hi Andy,
    yes... you will see the statistical record after
    - the program has finished or
    - the program is aborted (not on 4.0B but in new releases ...).
    While it is running... you can only use
    - SM50 (refresh several times) -  to  see what the program is doing NOW
    - SM50 (doubleclick) - to get some acummulated values with resp. to DB accesses
    - SE30 / ST05 / ST12 - to trace the current execution
    - Debugger - to get the call stack and current memory consumption
    Kind regards,
    Hermann

  • Why materialized view taking hours and yet not created

    hi,
    i am trying to create the following MV
    create materialized view MV1
    force on demand
    start with date 1 next date2
    AS
    select query 1--> complex query that return approcimately 2 millions rows
    union all
    select query2 --> complex query that returns 300K rowsit has been taking hours i.e > 4 hrs and still unable to create the MV
    w/o the create materialized view statement i am able to return the results from the union of the 2 queries
    what might be the possibility ?
    tks & rdgs

    Issue could be due to the complexity of your query..Even i faced the same issue when i worked on materialized views.It was taking too long to create materialized view and then we splitted the query and created two materialized views.
    Finally created a View for those MV's.You can also try the same
    Materialized View Log
    When you create a materialized view using the FAST option you will need to create a view log on the base tables.A fast refresh uses materialized view logs to update only the rows that have changed since the last refresh.
    When DML changes are made to the master table's data, Oracle stores rows describing those changes in the materialized view log and then uses the materialized view log to refresh materialized views based on the base table. This process is called an incremental or fast refresh.Without a materialized view log, Oracle must reexecute the materialized view query to refresh the materialized view. This process is called a complete refresh.Usually, a fast refresh takes less time than a complete refresh.
    You can go through the below link
    http://www.lc.leidenuniv.nl/awcourse/oracle/server.920/a96567/repmview.htm
    Thanks
    Suni

Maybe you are looking for

  • My iphoto has an error message when transfer photos from my iphone?

    I have a MacBook Pro Mac OS X Version 10.6.8. Processor 2.2 GHz Intel Core i7. 4 GB memory  and an iPhone 4 - iOS 7.1.1 with 13.53 GB. I am due to upgrade to 7.1.2 now but developed problems with my iphoto and wanted to correct that first. I had a DV

  • Messed up non-English text

    I have worked on i18n for several time in various positions. I mess up non English text first time. The followings are the process: 1.Copy translated text from MS word file into a text editor 2. Run the native2ascii -encoding UTF-8 file1.properties t

  • My mail account disappeared!

    my Mail Account disappeared and I had to add the account again. When I did this there was no Junk Box or a Trash box showing in the list of Mailboxes. His do I get these back/to show again?

  • N95 - no text tones available

    My phone is silent when a text is received. I have tried to apply a tone but all i am offered is "off" or download tones.  It used to have a choice of tones or i could apply a tone from my music.  Any ideas gratefully received. Sam Solved! Go to Solu

  • Reboot cycle only when disconencted from base

    Hi. I have an iphone 1.1.4 The screen froze while playing music and would not reboot. I did the home + power reset and it sent it into an endless reboot cycle. I attempted to restore via itunes and it gave me error 2003. After 4 or 5 tries i got it t