RUNSTATS on Table

I want to run RUNSTATS on table in BI 7.0. How to proceed?

HI,
There are two ways to run RUNSTATS:
a. Manually: RSA1 -> 'Manage' infocube -> tab strip 'performance' -> 'Create Statistics (Btch)'
b. Process chains: If you are already using process chains to load data, then add RUNSTATS NODE to the process chain.
For a further optimized RUNSTATS capability with process chains, see SAP Note 778437.
Also refer this link for more information :
http://www.redbooks.ibm.com/abstracts/TIPS0577.html?Open
Hope this helps.
Thanks,
Rahul

Similar Messages

  • Sampled Runstats

    Hi,
    If we are running the RUNSTATS automatic, it is running completely on the tables and hence on large tables it is taking
    too much of time.
    Please advise me the procedure to run the RUNSTATS automatic with sampling enabled i.e., the RUNSTATS should
    run automatically with specified sampling.
    Thanks & Regards,
    Venkata

    Hi,
    does the following help ?
    At database level, you can define individual options for statistics collection for a table which are used
    by automatic statistics collection in a statistics profile. Automatic statistics collection respects statistics
    profiles that were defined in a way that the profile options are used instead of the default. To define a
    statistics profile for a table, issue a RUNSTATS command with the appropriate statistics collection
    options and with the option SET PROFILE (as shown in the following example that collects statistics
    on a 10% sample of the table data only using Bernoulli sampling):
    RUNSTATS ON TABLE tableschema.tablename
    WITH DISTRIBUTION AND SAMPLED DETAILED INDEXES ALL
    TABLESAMPLE BERNOULLI (10) SET PROFILE

  • AUTO_RUNSTATS: problems after upgrade from 8.2 to 9.5

    Hello guys,
    We're appreciating a problem in our recentley upgraded databases 9.5
    We've upgraded from release 8.2 and we have activated the following parameters:
    db2 UPDATE DB CONFIG USING AUTO_MAINT ON AUTO_TBL_MAINT ON AUTO_RUNSTATS ON
    Although we don't see auto_runstats running in database. How can I activate this issue? Isn't it enough to activate these parameters?
    regards,
    Filipe

    Hello Filipe,
    have a look at your dump directory, under events you find file like db2optstats(n).log
    db2 runstats on table DB2DDP.STMTS
    DB20000I  The RUNSTATS command completed successfully.
    2010-07-22-14.45.36.597065+120 E937346A585        LEVEL: Event
    PID     : 463098               TID  : 16547       PROC : db2sysc 0
    INSTANCE: db2ddp               NODE : 000         DB   : DDP
    APPHDL  : 0-38427              APPID: *LOCAL.db2ddp.100722124520
    AUTHID  : DB2DDP
    EDUID   : 16547                EDUNAME: db2agent (DDP) 0
    FUNCTION: DB2 UDB, relation data serv, sqlrLocalRunstats, probe:10
    COLLECT : TABLE AND INDEX STATS : Object name with schema : AT "2010-07-22-14.45.36.596771" : BY "User" : start
    OBJECT  : Object name with schema, 14 bytes
    DB2DDP  .STMTS
    IMPACT  : None
    2010-07-22-14.45.36.744115+120 E937932A665        LEVEL: Event
    PID     : 463098               TID  : 16547       PROC : db2sysc 0
    INSTANCE: db2ddp               NODE : 000         DB   : DDP
    APPHDL  : 0-38427              APPID: *LOCAL.db2ddp.100722124520
    AUTHID  : DB2DDP
    EDUID   : 16547                EDUNAME: db2agent (DDP) 0
    FUNCTION: DB2 UDB, relation data serv, sqlrLocalRunstats, probe:220
    COLLECT : TABLE AND INDEX STATS : Object name with schema : AT "2010-07-22-14.45.36.743863" : BY "User" : success
    OBJECT  : Object name with schema, 14 bytes
    DB2DDP  .STMTS
    IMPACT  : None
    DATA #1 : String, 49 bytes
    RUNSTATS ON TABLE "DB2DDP"."STMTS" ON ALL COLUMNS
    this is a manual runstats, you will also a ot of fabricated runstats.
    Here is an output from db2 get db cfg for <SID>:
    Automatic maintenance                      (AUTO_MAINT) = ON
       Automatic database backup            (AUTO_DB_BACKUP) = OFF
       Automatic table maintenance          (AUTO_TBL_MAINT) = ON
         Automatic runstats                  (AUTO_RUNSTATS) = ON
           Automatic statement statistics  (AUTO_STMT_STATS) = ON
         Automatic statistics profiling    (AUTO_STATS_PROF) = OFF
           Automatic profile updates         (AUTO_PROF_UPD) = OFF
         Automatic reorganization               (AUTO_REORG) = OFF
    Best regards,
    Joachim

  • ODS Failed

    I'm  working in BW 3.1c,
    Failure: I got an ODS failure Issue. The load is a full load,the loading was successful, but only the ODS activation got failed.
    Error Message:
    Request xxxxxxx, data package 000001 incorrect with status 5 rsodsacstreq
    Request xxxxxxx,data package  000001 not correct
    Inserted records 1-;Changed records 1-,Deleted records 1-
    No confirmation for request XXXXXXXXXXXX when activating the ODS object XXXx
    Error while exporting data
    Steps Taken:
    I manually activated it ,but it again failed.
    I treiggered the load again,but it again failed in the ODS activation step.
    We did runstats and table re-org and then triggered the load , but it failed in ODS activation
    Please help me in this issue
    Regards,
    Kicha

    Hi Kicha,
    Error 5 in table RSODSACTREQ (error RSMPC 128) means that there was an error during an rfc-call in the activation.
    The problem is often temporary like no resources available. Normally you can find further information in sm21 or st22 at the time
    of activation.
    The solution is simply to restart the activation of the particular request.
    Table RSODSACTREQ
    Status Situation
    0      finished
    1      error_update
    3      error_rollback
    5      rfc_error         -> Restart the activation of this request.
    Rgds,
    Colum

  • Creating Stored Procedure in Java

    Hi All,
    I would like to ask how to create a stored procedure in Java.
    My project now is to create a program that will open a DB2 SQL File (Creating Table and Stored Procedure) and then Execute it.
    Executing the CREATE TABLE command is not that difficult since I can break the execution down by statement (divide by ";" in the SQL file).
    The logic I applied here are:
    1. Open the SQL file and store the contents into a String object.
    2. Call the executeUpdate(string_sql_fileContent) method of Statement Object.
    Example: SQL File contect to be executed.
    ===========================================================
    CREATE TABLE MDMTEST.sample
    (firstname CHARACTER(40),
    middlename CHARACTER(40),
    lastname CHARACTER(40),
    idNo SMALLINT NOT NULL
    DATA CAPTURE NONE;
    #SYNC 10;
    ALTER TABLE MDMTEST.sample
    LOCKSIZE ROW
    APPEND OFF
    NOT VOLATILE;
    #SYNC 20;
    ALTER TABLE MDMTEST.sample
    ADD PRIMARY KEY
    (idNo
    #SYNC 30;
    RUNSTATS ON TABLE MDMTEST.sample
    AND INDEXES ALL
    SHRLEVEL REFERENCE;
    ===========================================================
    I can divide this by ";" and execute them by statement.
    But my problem is when creating Stored Procedure... Since in stored procedure there are so many stub-statements...
    Example: Content of SQL File for creating stored procedure.
    ===========================================================
    CREATE PROCEDURE MDMTEST.DROP_ALL_OBJECTS ( )
    SPECIFIC MDMTEST.SQL051109115453000
    LANGUAGE SQL
    NOT DETERMINISTIC
    CALLED ON NULL INPUT
    MODIFIES SQL DATA
    INHERIT SPECIAL REGISTERS
    BEGIN
         Delete Statement;
         Insert Statement;
         Update Statement;
    END;
    ===========================================================
    Take note there are three statements inside the CREATE..BEGIN.. and END.. (namely Delete, Insert, and Update Statements).
    How can I execute the command for creating the procedure in Java? I believe that creating stored procedures in other databases are almost the same...
    So... anyboby who have tried creating stored procedure in Java?
    Please help me in this... I wanna pass the subject hehe..

    I have used these files as a sample:
    Java Program:
    import java.io.*;
    import java.sql.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.util.*;
    import javax.swing.*;
    import javax.swing.border.*;
    import my.db.components.*;
    public class ProcedureUploader {
         private MyDBConnection dbConn=new MyDBConnection();
         private Statement statement;
    public ProcedureUploader() {
         try{
              dbConn.connectDB ("206.206.206.206","12345","DEV","mdmtest","mdmtest");     
              this.statement=dbConn.getStatement ();               
         }catch(SQLException sqle){
              sqle.printStackTrace();
         public String getContents(String fileName) throws IOException{
              File inputFile = new File(fileName);
    FileReader in = new FileReader(inputFile);
    int c; String contents="";
    while ((c = in.read()) != -1) contents+=(char) c;
    in.close();
    return contents;
    public void executeSQLCommand(String file) throws IOException{         
         String command="";
         try{
              command=getContents(file);          
                   statement.executeUpdate(command);
              System.out.println("Command Execution Successful.");     
         }catch(Exception ex){
              System.out.println("There is a problem executing the command. Please check the SQL file and re-execute again.");
              ex.printStackTrace();
    public static void main(String args[]) throws IOException{
         ProcedureUploader uploader=new ProcedureUploader();
         uploader.executeSQLCommand("C:\\I2\\Development\\ProcedureUploader\\sample.sql");
    SQL File:
    CREATE PROCEDURE MDMTEST.sampleProc ( )
    SPECIFIC MDMTEST.sampleProc
    LANGUAGE SQL
    NOT DETERMINISTIC
    CALLED ON NULL INPUT
    MODIFIES SQL DATA
    INHERIT SPECIAL REGISTERS
    delete from SAMPLE;
    commit;
    select * from SAMPLE;;
    #SYNC 10;
    ===========================================================
    The problem is that ... there will be an error:
    ===========================================================
    There is a problem executing the command. Please check the SQL file and re-execute again.
    com.ibm.db2.jcc.c.SqlException: DB2 SQL error: SQLCODE: -104, SQLSTATE: 42601, SQLERRMC: delete from SAMPLE;;PECIAL REGISTERS
    ;<psm_repeat>
    at com.ibm.db2.jcc.c.fg.e(fg.java:1596)
    at com.ibm.db2.jcc.c.fg.b(fg.java:1160)
    at com.ibm.db2.jcc.b.gb.h(gb.java:217)
    at com.ibm.db2.jcc.b.gb.b(gb.java:46)
    at com.ibm.db2.jcc.b.w.b(w.java:40)
    at com.ibm.db2.jcc.b.vb.f(vb.java:118)
    at com.ibm.db2.jcc.c.fg.m(fg.java:1155)
    at com.ibm.db2.jcc.c.fg.a(fg.java:1865)
    at com.ibm.db2.jcc.c.fg.c(fg.java:517)
    at com.ibm.db2.jcc.c.fg.executeUpdate(fg.java:501)
    at ProcedureUploader.executeSQLCommand(ProcedureUploader.java:44)
    at ProcedureUploader.main(ProcedureUploader.java:54)
    ===========================================================
    But still the procedure will be created but until the first ";" only... OR.. creates a stored procedure having the following lines only.
    ===========================================================
    CREATE PROCEDURE MDMTEST.sampleProc ( )
    SPECIFIC MDMTEST.sampleProc
    LANGUAGE SQL
    NOT DETERMINISTIC
    CALLED ON NULL INPUT
    MODIFIES SQL DATA
    INHERIT SPECIAL REGISTERS
    delete from SAMPLE;
    ===========================================================

  • "RUNSTATS and REORGCHK for single table" in DB13

    Hello,
    Our system is ECC 6.0, SAP_BASIS is SAPKB70011.
    "RUNSTATS and REORGCHK for single table" in DB13, I found the parameter, "Parallel Jobs".
    Why there is this parameter? Can we execute parallel runstats for single table in SAP environment?
    Thank you very much and best regards,
    Takae.

    Hi Takae,
    Although this DB13 job is named '.. for single table' it can process more than 1 table if you use wildcards. And only in this case parallelism makes sense, because the job cannot parallelize the runstats for one table but only parallelizes the runstats execution for different tables. Technically this is done be creating further background jobs in the SAP system.
    Best regards
    Ralf

  • "REORG and RUNSTATS for set of tables" job

    Hi,
    In this DBA Planning Calendar job, there's an option for Keep Dictinary. How can I run a reorg with RESET Dictionary?
    To me, Keep Dictionary should be the default option for reorg, and no need to check this box on job scheduling. What's missing is the Reset Dictionary.
    Can someone comment on this?
    Thanks,
    Patrick

    Hi Patrick,
    The behavior of the reorg with or without keepdictionary or resetdictionary depends on the compress flag for the table. Like you mentioned, it would make sense to assume keepdictionary as the default and use resetdictionary based on the user input in the GUI.
    An easier way to control this in my experience is to use "automatic maintenance settings" (under the configuration drop down) and carve out an offline reorg window for the required tables with the ability to choose the right dictionary rebuild option. With version 9.5 and automatic dictionary creation (ADC), rebuilding the already existing compression dictionary has been a moot point in our landscape.
    Hope this helps.
    - Sameer

  • Performance issues with pipelined table functions

    I am testing pipelined table functions to be able to re-use the <font face="courier">base_query</font> function. Contrary to my understanding, the <font face="courier">with_pipeline</font> procedure runs 6 time slower than the legacy <font face="courier">no_pipeline</font> procedure. Am I missing something? The <font face="courier">processor</font> function is from [url http://www.oracle-developer.net/display.php?id=429]improving performance with pipelined table functions .
    Edit: The underlying query returns 500,000 rows in about 3 minutes. So there are are no performance issues with the query itself.
    Many thanks in advance.
    CREATE OR REPLACE PACKAGE pipeline_example
    IS
       TYPE resultset_typ IS REF CURSOR;
       TYPE row_typ IS RECORD (colC VARCHAR2(200), colD VARCHAR2(200), colE VARCHAR2(200));
       TYPE table_typ IS TABLE OF row_typ;
       FUNCTION base_query (argA IN VARCHAR2, argB IN VARCHAR2)
          RETURN resultset_typ;
       c_default_limit   CONSTANT PLS_INTEGER := 100;  
       FUNCTION processor (
          p_source_data   IN resultset_typ,
          p_limit_size    IN PLS_INTEGER DEFAULT c_default_limit)
          RETURN table_typ
          PIPELINED
          PARALLEL_ENABLE(PARTITION p_source_data BY ANY);
       PROCEDURE with_pipeline (argA          IN     VARCHAR2,
                                argB          IN     VARCHAR2,
                                o_resultset      OUT resultset_typ);
       PROCEDURE no_pipeline (argA          IN     VARCHAR2,
                              argB          IN     VARCHAR2,
                              o_resultset      OUT resultset_typ);
    END pipeline_example;
    CREATE OR REPLACE PACKAGE BODY pipeline_example
    IS
       FUNCTION base_query (argA IN VARCHAR2, argB IN VARCHAR2)
          RETURN resultset_typ
       IS
          o_resultset   resultset_typ;
       BEGIN
          OPEN o_resultset FOR
             SELECT colC, colD, colE
               FROM some_table
              WHERE colA = ArgA AND colB = argB;
          RETURN o_resultset;
       END base_query;
       FUNCTION processor (
          p_source_data   IN resultset_typ,
          p_limit_size    IN PLS_INTEGER DEFAULT c_default_limit)
          RETURN table_typ
          PIPELINED
          PARALLEL_ENABLE(PARTITION p_source_data BY ANY)
       IS
          aa_source_data   table_typ;-- := table_typ ();
       BEGIN
          LOOP
             FETCH p_source_data
             BULK COLLECT INTO aa_source_data
             LIMIT p_limit_size;
             EXIT WHEN aa_source_data.COUNT = 0;
             /* Process the batch of (p_limit_size) records... */
             FOR i IN 1 .. aa_source_data.COUNT
             LOOP
                PIPE ROW (aa_source_data (i));
             END LOOP;
          END LOOP;
          CLOSE p_source_data;
          RETURN;
       END processor;
       PROCEDURE with_pipeline (argA          IN     VARCHAR2,
                                argB          IN     VARCHAR2,
                                o_resultset      OUT resultset_typ)
       IS
       BEGIN
          OPEN o_resultset FOR
               SELECT /*+ PARALLEL(t, 5) */ colC,
                      SUM (CASE WHEN colD > colE AND colE != '0' THEN colD / ColE END)de,
                      SUM (CASE WHEN colE > colD AND colD != '0' THEN colE / ColD END)ed,
                      SUM (CASE WHEN colD = colE AND colD != '0' THEN '1' END) de_one,
                      SUM (CASE WHEN colD = '0' OR colE = '0' THEN '0' END) de_zero
                 FROM TABLE (processor (base_query (argA, argB),100)) t
             GROUP BY colC
             ORDER BY colC
       END with_pipeline;
       PROCEDURE no_pipeline (argA          IN     VARCHAR2,
                              argB          IN     VARCHAR2,
                              o_resultset      OUT resultset_typ)
       IS
       BEGIN
          OPEN o_resultset FOR
               SELECT colC,
                      SUM (CASE WHEN colD > colE AND colE  != '0' THEN colD / ColE END)de,
                      SUM (CASE WHEN colE > colD AND colD  != '0' THEN colE / ColD END)ed,
                      SUM (CASE WHEN colD = colE AND colD  != '0' THEN 1 END) de_one,
                      SUM (CASE WHEN colD = '0' OR colE = '0' THEN '0' END) de_zero
                 FROM (SELECT colC, colD, colE
                         FROM some_table
                        WHERE colA = ArgA AND colB = argB)
             GROUP BY colC
             ORDER BY colC;
       END no_pipeline;
    END pipeline_example;
    ALTER PACKAGE pipeline_example COMPILE;Edited by: Earthlink on Nov 14, 2010 9:47 AM
    Edited by: Earthlink on Nov 14, 2010 11:31 AM
    Edited by: Earthlink on Nov 14, 2010 11:32 AM
    Edited by: Earthlink on Nov 20, 2010 12:04 PM
    Edited by: Earthlink on Nov 20, 2010 12:54 PM

    Earthlink wrote:
    Contrary to my understanding, the <font face="courier">with_pipeline</font> procedure runs 6 time slower than the legacy <font face="courier">no_pipeline</font> procedure. Am I missing something? Well, we're missing a lot here.
    Like:
    - a database version
    - how did you test
    - what data do you have, how is it distributed, indexed
    and so on.
    If you want to find out what's going on then use a TRACE with wait events.
    All nessecary steps are explained in these threads:
    HOW TO: Post a SQL statement tuning request - template posting
    http://oracle-randolf.blogspot.com/2009/02/basic-sql-statement-performance.html
    Another nice one is RUNSTATS:
    http://asktom.oracle.com/pls/asktom/ASKTOM.download_file?p_file=6551378329289980701

  • DB02 view is empty on Table and Index analyses  DB2 9.7 after system copy

    Dear All,
                 I did the Quality refresh by System copy export/import method. ECC6 on HP-UX DB29.7.
    After Import Runstats status n Db02 for Table and Index analysis was empty and all value showing '-1'. Eventhough
    a) all standard backgrnd job scheduled in sm36
    b) Automatic runstats are enabled in db2 parameters
    c) Reorgchk all scheduled periodically from db13 and already ran twice.
    4) 'reorgchk update statistics on table all' was also ran on db2 level.
    but Run stats staus in db02 was not getting updated. Its empty.
    Please suggest.
    Regards
    Vinay

    Hi Deepak,
    Yes, that is possible (but only offline backup). But for the new features like reclaimable tablespace (to lower the high watermark)
    it's better to export/import with systemcopy.
    Also with systemcopy you can use index compression.
    After backup and restore you can have also reclaimable tablespace, but you have to create new tablespaces
    and then work with db6conv and online table move to move one tablespace online to the new one.
    Best regards,
    Joachim

  • Inserting in the UUT_Results table a value that we read from our data base from a local variable

    We would like to include in the UUT_Results table a value that we read from our data base into a local variable during the execution of our sequence file. We found that by modifying the configure database options we were able to add a column for this variable, but the local variable was not available to be placed into an expression for that column from the local variables or parameters. Is it possible to do this, and if so, how? Station Globals were available to be included in the expression, however the sequence file may be executed on more than one system which makes the Global unavailable on systems other than the one where the sequence file originated.

    You can use the TestStand API to programmatically create global variables at runtime, thus ensuring their existence. For example, you could call Engine.Globals.SetValString("GlobalStringVariableName", PropOption_InsertIfMissing, "variable value")
    Of course, if you need to test multiple UUTs in parallel, a single global is not sufficient. In that case you might consider adding the field you need to the UUT datatype in the process model. You could then access the field in your sequence via RunState.Root.Locals.UUT.YourNewField = YourNewValue.
    If you also want your sequence to run without using a process model, you must check for the existence of the UUT before accessing it. You could use the expression function: PropertyExists("RunState.Root.Locals.UUT.YourNewFi
    eld")

  • Failure on attempt to Declare Global Temporary Table

    I am working with SAP and I am seeing the following error on the REAL TIME STATISTICS DATABASE on any attempt to declare a global temporary table by any process:
    On the following attempt
    DECLARE GLOBAL TEMPORARY TABLE SESSION.FILL_STAT_TAB_TMP
    AS ( SELECT IXNAME, IXCREATOR,
    FAROFFPOSF, NEAROFFPOSF, LEAFDIST FROM SYSIBM.SYSINDEXPART )
    DEFINITION ONLY CCSID UNICODE ON COMMIT DROP TABLE
    I get the following error
    DSNT408I SQLCODE = -904, ERROR: UNSUCCESSFUL EXECUTION CAUSED BY AN
    UNAVAILABLE RESOURCE. REASON 00C90081, TYPE OF RESOURCE 00000100, AND
    RESOURCE NAME DSNRTSDB
    DSNRTSDB appears to be started. I have EXPLICITLY started it. I have dropped and recreated the RTS tables, starting the database again. We have a temp database created, and 2 tablespaces created in the temp database, one of page size 4k and the other of pagesize 8k.
    I am able to query the RTS tables with no problem.
    We have 8 other subsystems that we migrated to v8 that have no problems. This particular subsystem was an install, but what that might have to do with anything I don't know.
    What am I missing?
    Thanks.

    Hi,
    sorry, i've no answer only another question.
    I'm searching with google on 'FILL_STAT_TAB_TMP' and this post is all i get ;-(
    My problem is a little bit different.
    I'm doing a RUNSTATS with DB20 or DB13 and it works. But in the SM21 appears this:
    ST04: [IBM][CLI Driver][DB2] DSNT408I SQLCODE = -204, ERROR: SESSION.FILL_STAT_TAB_TMP IS AN UNDEFINED NAME
    But if i put the statement from Steve above into spufi, it works without error.
    The dis database(dsnrtsdb) shows this:
    NAME     TYPE PART  STATUS
    DSNRTSTS TS         RW         
    INDEXSPA IX         RW         
    TABLESPA IX         RW
    Kay

  • Schedule reorg/runstats jobs in BI using Control-M as scheduler not DB13

    We would like to define the reorg/runstats jobs in a process chain in our BI system and use Control-M as scheduler .
    Does anybody know how to define reorg/runstats jobs without using DB13?

    Hi,
    check following notes
    Note 915398 - DB2-z/OS: BW: New algorithm for calling RUNSTATS
    Note 1146378 - DB2-z/OS:CCMS: Changed RUNSTATS handling for BW tables
    regards,
    kaushal

  • Error in logging UUT_Result table

    Hi,
    I copied a deafault schema and using only three tables from general schema (i.e. UUT_Result, Step_Result and Meas_NumericLimit). I am using Access as my database. I modified these table as required and created all three tables using inbuilt SQL query. It created well.
    While running sequence I am getting following error.
    An error occurred calling 'LogUUTResult' in 'ITSDBLog' of 'TestStand Database Logging'
    An error occurred while setting a column value.
    Statement: UUT_RESULT.
    Column: Project.
    Unknown variable or property name 'FileGlobals.Project'.
    Source: TSDBLog
    Though I already defined "Project" variable in my FileGlobals.
    Now more strange part is, It gives error and then also logged the data in table. For UUT_Result it loggs only ID. I also put this column in Meas_NumericLimit table for checking and it working fine!!
    Here with attching my database file, TestStandDatabaseoption.ini file, TestStand Sequence file and require labview file.
    Can anybody help me for this?
    Thanks,
    Vishal
    Attachments:
    UUT_Result_error.zip ‏56 KB

    Hi Ray,
    I found a workable solution for my case :-)
    As I mentioned earlier, LogToDatabase callback didn't work. I tried different combinations also but no success. During this trial and error I observe that the error occurs only in UUT_Result and Step_result table. 
    As in the UUT_Result table it writes only once and at the end of test, I configured required parameters in the StationGlobal.  
    For Step_result table it gives error for writing data for MainSequence. As I don't need any data for MainStep I wrote "(RunState.CallStackDepth>0)? RunState.Main.FileGlobals.Temperature:0" as expression for my require parameters in Step_Result table. It works fine.
    br,
    vishal

  • REORG and RUNSTATS: any order of precedence?

    Hi.
    Is there any documentation on Reorg and Runstats?
    I am confused about what role each of these play on what table (ex. P, Q, X, Y etc). It all began with ST04 where I tried to manully run the REORG and Runstats (as the ACR was not running OK) and I was confused because after each of them ran, the status was shown as either "Reorg & Runstats run" or "Runstats & Reorg run".
    Is there any precedence on running them, e. g. Runstats first and then REORG? Or the vise-versa? What should be the order of the tables, e. g. P, Q, X, Y etc or X, Y, P, Q etc.
    And if anybody could please shed some light on how do RUNSTATS & REORG help with the ACR, that would be greatly appreciated.
    Also, as two of the gurus mentioned last week, is the SE38 -->RSDDS_CHANGERUN_MONITOR program a must/good to have for the health of the ACR? I am asking this as the BASIS guys say there is no need etc.
    Thank you very much.

    Hi Gurus.
    I have kind of an odd situation.
    I am running a query on the Web Application Server. It runs fine over there, with the complete expected results (1.3 million records). But when I try to save it as a .CSV file (for further uploads through an InfoPackage), the file is truncated and saves just some 21K records.
    Only one of my colleagues can save the complete file. Three of us have the file saved but it is being truncated.
    Any idea of why is it so?
    Thanks a lot.

  • MB5B Report table for Open and Closing stock on date wise

    Hi Frds,
    I am trying get values of Open and Closing stock on date wise form the Table MARD and MBEW -Material Valuation but it does not match with MB5B reports,
    Could anyone suggest correct table to fetch the values Open and Closing stock on date wise for MB5B reports.
    Thanks
    Mohan M

    Hi,
    Please check the below links...
    Query for Opening And  Closing Stock
    Inventory Opening and Closing Stock
    open stock and closing stock
    Kuber

Maybe you are looking for