"Z" programs statistics execution

Hi everyone
I need to recover the history of executed "Z" programs, I can see by transaction code STAD the most executed and I´m recovering the data by the
SAPWL_READ_STAT_A_ASTAT function.
The problem that I´m facing is that when I execute my program by the SAPWL_READ_STAT_A_ASTAT function it is not recovering wide hitory.
Do someoe knows if there´s a place or a way where I can get the information?
Or can someone give somelight with that?
Thanks in advanced
Raul

Hi Emmanuel,
       You can get that through SE30,   but  Instead of SE30  use St12 , as it gives you the ABAP and SQL traces also.
       Also check this link it may help you.
       [Re: Diagnosis of the expensive ABAP programs having database time > 90%;
Hope this solves your problem.
Regards,
Pavan.

Similar Messages

  • Choose file by FM F4_FILENAME more times then program auto execution!

    Dear all,
      I met a situation: one program have file path to enter,press F4 for file selection screen popup,choose file then OK back to program,and i find the file selection is wrong,so choose file again by F4...after back,program is auto execution...more than 2 times file selection will occurs this problem...i use FM F4_FILENAME code in event AT-SELECTION SCREEN, detail as follow:
    DATA: P_PATH  LIKE IBIPPARMS-PATH.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_PATH.
      CALL FUNCTION 'F4_FILENAME'
           EXPORTING
                FIELD_NAME = 'PATH'
           IMPORTING
                FILE_NAME  = P_PATH.
    Is there anything wrong in my code? or solution for this situation?  Tks!
    BR
    Regina

    Use FILE_OPEN_DIALOG.
    DATA: L_FILETAB     TYPE FILETABLE,
          L_FILETAB_H   TYPE FILETABLE WITH HEADER LINE,
          INITIAL_DIR_PATH TYPE STRING,
          L_RC          TYPE I.
      REFRESH L_FILETAB.
      INITIAL_DIR_PATH = 'C:\'.
      CALL METHOD CL_GUI_FRONTEND_SERVICES=>FILE_OPEN_DIALOG
        EXPORTING
        WINDOW_TITLE            = 'Select the Asset Master Data file'
       DEFAULT_EXTENSION       =
       DEFAULT_FILENAME        =
        FILE_FILTER             = 'Text Files (.TXT)|.TXT|'
        INITIAL_DIRECTORY       = INITIAL_DIR_PATH
          MULTISELECTION          = SPACE
       WITH_ENCODING           =
        CHANGING
          FILE_TABLE              = L_FILETAB
          RC                      = L_RC
       USER_ACTION             =
       FILE_ENCODING           =
        EXCEPTIONS
          FILE_OPEN_DIALOG_FAILED = 1
          CNTL_ERROR              = 2
          ERROR_NO_GUI            = 3
          NOT_SUPPORTED_BY_GUI    = 4
          OTHERS                  = 5
      IF SY-SUBRC <> 0.
        WRITE:/ 'Error while selecting the input file'.
      ELSE.
        LOOP AT L_FILETAB INTO L_FILETAB_H.
          FNAME = L_FILETAB_H-FILENAME.
          EXIT.
        ENDLOOP.
      ENDIF.

  • Cannot print pdf close program data execution prevention

    when i try to print a pdf (acrobad standard 8) it closes program and gives me "data execution prevention" windows closed this program to protect ... how do i fix this?  this was not happeneing a couple weeks ago...

    I am having the same problem with Acrobat Reader X.
    I am using Adobe Reader X and am constantly getting a Windows "data execution prevention" error every time I open and close a pdf file. What can I do to resolve this as Windows says it can not shut off "data execution prevention" for Adobe reader?

  • ABAP Program and Execution Caching?

    Hi All
    We have a strange problem with custom ABAP program possibily caching a SQL statement. Here is the problem:
    Transaction: ZTRANS_C1
    This transaction is about 4 years old and we have noticed a problem with a SQL statement withing the program which is causing a timeout and shorts dumps (runs for 600ms). We managed to fix the statement and change the program but it is still taking 600ms and timing out.
    So we created a new transaction ZTRANS_C2 which is an exact copy of ZTRANS_C1 and ran it. This took only 65ms.
    So is there any way in SAP or SQL where we can stop it caching the statements or is this some other problem?
    Thanks
    Phil

    Hi Arnold,
    First you need a table type with a structure like follows:
    operation
    groupid
    context
    identifier
    agency
    scheme
    (corresponding to the Interface ValueMappingReplication)
    All used data elements should have type string or charXX
    for example: operation - char10, groupid - char32, rest - char120
    Next you create a function module with attribute 'remote-enabled module'.
    The import parameter is your new table structure.
    Next you create an ABAP program. Here an example:
    report z_value_mapping .
    tables mvke.
    data:
    p_value_mapping type zvalue_mapping,
    p_value_mapping_table type zvalue_mapping_table.
    p_value_mapping-operation = 'Insert'.
    p_value_mapping-context = 'http://xi.com/Material'.
    select * from mvke where matnr between '170' and '501'.
    check not mvke-prodh is initial.
    * Create a value mapping group to join two entries.
    * use a unique 32 digit number.
    concatenate '00000000000000' mvke-prodh into p_value_mapping-groupid.
    translate p_value_mapping-groupid using ' 0'.
    * Store the mapping source as first entry to the group
    p_value_mapping-identifier = mvke-matnr.
    p_value_mapping-agency = 'SenderAgency'.
    p_value_mapping-scheme = 'MATNR'.
    append p_value_mapping to p_value_mapping_table.
    * Store the mapping target as second entry to the group
    p_value_mapping-identifier = mvke-prodh.
    p_value_mapping-agency = 'ReceiverAgency'.
    p_value_mapping-scheme = 'PRODH'.
    append p_value_mapping to p_value_mapping_table.
    endselect.
    * Push data to XI
    call function 'Z_VALUE_MAPPING' in background task
      destination 'IS_XID'
      exporting
        value_mapping       = p_value_mapping_table.
        commit work.
    Import the RFC to the Integration Builder, create a mapping between your RFC and the interface ValueMappingReplication.
    Check this Blog for additional steps:
    /people/sreekanth.babu2/blog/2005/02/23/value-mapping-replication
    Choose names for context, agency and scheme which are useful your scenario.
    Regards
    Stefan

  • Re: Program/Transaction Execution via Macro

    Hi All,
    I'd like to execute a SAP transaction /sapapo/tscopy or program /sapapo/rtscopy using the Macro Workbench. I'd like to know how I can execute the program/transaction ?
    Thanks for your suggestions in advance.
    Suren

    Hi,
    You submit the report using REPORT_SUBMIT()
    REPORT_SUBMIT( 'program_name' ;  <'job_name'> ; <'job_number'>; <'newmode'>) causes the specified program to be executed. Use the optional arguments, job name and job number, if you wish the program to run in the background. If you set the argument 'newmode', the results are displayed in a new window.
    -Shibu
    Thanks for rewarding points if this is helpful

  • Concurrent program statistics

    Hi
    Please share me a query on concurrent request statistics.
    I required how many times a concurrent request got error out in a week count and name of the concurrent request.
    Regards
    Shaik

    Please share me a query on concurrent request statistics.
    I required how many times a concurrent request got error out in a week count and name of the concurrent request.Query FND_CONCURRENT_REQUESTS table -- http://etrm.oracle.com/pls/et1211d9/etrm_pnav.show_object?c_name=FND_CONCURRENT_REQUESTS&c_owner=APPLSYS&c_type=TABLE
    Concurrent Processing - What are the Meaning of the Codes in the STATUS_CODE and PHASE_CODE Columns of FND_CONCURRENT_REQUESTS Table? [ID 152209.1]
    Handy SQL for the Oracle Applications [ID 731190.1]
    https://forums.oracle.com/forums/search.jspa?threadID=&q=FND_CONCURRENT_REQUESTS+AND+STATUS_CODE+AND+PHASE_CODE+AND+Query&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Thanks,
    Hussein

  • How do I pinpoint the program execution?

    Hi all,
    I am wondering how to pinpoint the program's execution point?  I have a problem with all of the loops not stopping properly.  I hit the "Hilight Program execution" and it went to one loop, that is, it appeared greyed out, but I can't figure out which case it's stuck in.  Is there a way to find the exact *point* of execution?
    Thanks,
    Jason

    You can use breakpoints. The program will pause as soon as it hit the breakpoint. To add breakpoints, right-click in the place where you want it and set it. You can also set probes. The probes activate as soon as the information is available. Then you can be creative with the highlight execution, breakpoints and probes. You can have a fairly good idea on how your program is executing.
    Otherwise, try posting your code or an image of your code so we can try to figure out what is going on.
    www.vartortech.com

  • Timing program execution

    What's a good and accurate way to time a program's execution? Should I just use the Calendar/Date/Time objects.

    I'm assuming you're trying to time a program to execute a specific task during the day? Now, you can either use an operating system based solution, or simply have the program run and schedule an event to occur, and then just hang out until this time. Either way isn't too difficult. With windows there is a scheduler program you can use, and with Linux you can simply set up a cronjob. If you want to implement this in software, then simply use a java.util.Timer, and make a new TimerTask for each time you wish for your code to execute:
    Timer myTimer = new Timer();
    Date myDate = new Date();
    myDate.setDate(myDate.getDate()+1);
    myTimer.schedule(new TimerTask()
         public void run()
         doStuff();
    }, myDate);
    And wallah, the doStuff() method will be called exactly one day in the future.
    -Jason Thomas.

  • How can I cancel a runing program by software?

    Hi,
    i have to stop a LabView-DAQ-program from running on a w2k PC by software.
    I'm looking for a program, which can stop the DAQ-program from execution
    if the UPS signals a system shutdown (power failure).
    The UPS software can execute any program or .cmd-file before it shuts
    off system power.
    Any ideas?
    Thanks in advance
    Jörg

    Also see this thread:
    http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=135&HOID=5
    0650000000800000040EA0000&USEARCHCONTEXT_CATEGORY_0=_49_%24_6_&USEARCHCONTEX
    T_CATEGORY_S=0&UCATEGORY_0=_49_%24_6_&UCATEGORY_S=0&UPostedFromTimeSearchArg
    _0=3&UPostedFromTimeSearchArg_1=3&UPostedFromTimeSearchArg_2=2004&UPostedFro
    mTimeSearchArg_S=4&UPostedToTimeSearchArg_0=30&UPostedToTimeSearchArg_1=8&UP
    ostedToTimeSearchArg_2=2004&UPostedToTimeSearchArg_S=4&USEARCHCONTEXT_TIER_0
    =2&USEARCHCONTEXT_TIER_S=0&USEARCHCONTEXT_QUESTION_0=power&USEARCHCONTEXT_QU
    ESTION_S=0
    "joemm" wrote in message news:cgvkkj$nt2$[email protected]..
    > Hi,
    >
    > i have to stop a LabView-DAQ-program from running on a w2k PC by software.
    >
    > I'm looking for a program, which can stop the DA
    Q-program from execution
    > if the UPS signals a system shutdown (power failure).
    > The UPS software can execute any program or .cmd-file before it shuts
    > off system power.
    >
    > Any ideas?
    >
    > Thanks in advance
    >
    > Jörg

  • Calling program

    Dear Experts,
         I have a requirements explained below.
        I have writen a Z program with the selection screen,  i need to execute the standard program RIMHIO00 (grid report)from Z Program by passing values to the selection screen of standard program after execution is completed i need the final internal table(object_tab) values back in my Z program for further process..
       i tried with the submit export to memory statement but it is not working for grid report, Is there any other way to do the above requirements
    pls help me in this,
    thanks in advance
    karthik

    Hi,
    In the copy of the standard program,you will be getting final internal table values before displaying alv grid.Once the final internal table is arrived,just export the internal table.Just remove the coding related the grid display.Then from your original program,import the internal table.
    Check here for export and import command.
    http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/export01.htm
    Kindly reward points by clicking the star on the left of reply,if it helps.
    Message was edited by:
            Jayanthi Jayaraman

  • What is the main use of text elements in program.

    Hi Experts,
    Can any body please explain, why we have to maintain text elements in program.
    is it only for avoiding hot coding or else any thing.
    Please explain.And why we have to avoid hot coding with text elements.
    regards,
    developer.

    Hi,
    Text elements are used to store text , the basic purpose of using this is that the same program can be run in diffrent languages and so the titles/headers must be in the language the program is execued , if you hardcode it in the program this will not work , so we use a text elemnt and the system selects the language for the text element based on the language in which the user has logged in.
    You can search in forums, you will get lots of answers
    Type your key word in sarch text box and press enter, if not found relevant answer, select datae range to all...
    answers  from other forums.
    Hi
    They are useful when the program is used in other languages.
    So that they are automatically converted to that language.
    So define the texts in the text elements and use their ID's like (TXT-05) in the code
    don't sue the complete texts in the program.
    regards,
    nazeer
    Edited by: N a z e e r on Jan 15, 2009 4:33 PM

  • How to pass Selection screen values to another program's selection screen

    Hello,
    I have a requriement where in which i need to pass the selection screen values (say list of pernrs) and few others of one program to selection screen of another. 
    One option that i came across is using Submit. But am unware how to pass only the selection screen values (there wont be any data processing or filtering).  Just the values of one prgm's selection screen are to be sent to another.
    Thanks
    RK

    prog1.
    data:lt_params type table of RSPARAMS.
    data:wa like line of lt_params.
    parameters:pa1 type sy-datum.
    select-options:so1 type sy-dtaum.
    wa-SELNAME = 'PA2'.               "Seletion screen field name
    wa-KIND     = 'P'.                    "P-Parameter,S-Select-options
    wa-SIGN     = 'I'.                    "I-in
    wa-OPTION     = 'EQ'.               "EQ,BT,CP
    wa-LOW     = pa1.                    "Selection Option Low,Parameter value
    append wa to lt_params.
    loop at so1.
    wa-SELNAME = 'SO2'.               "Seletion screen field name
    wa-KIND     = 'S'.                    "P-Parameter,S-Select-options
    wa-SIGN     = 'I'.                    "I-in
    wa-OPTION     = 'EQ'.               "EQ,BT,CP
    wa-LOW     = so1-low.               "Selection Option Low,Parameter value
    wa-HIGH     = so1-high.               "Selection Option Low,Parameter value
    append wa to lt_params.
    endloop.
    CALL FUNCTION 'SUBMIT_REPORT'
      EXPORTING
        report                 = 'ZPROG2.'   "report name of ur tocde
        RET_VIA_LEAVE          = ''            "IF 'X' returns to the called program after execution
        SKIP_SELSCREEN         = 'X'       "If 'X' selection screen of called program is not displayed
    TABLES
       SELECTION_TABLE        = lt_params       "Contains values to the selection screen
    EXCEPTIONS
      JUST_VIA_VARIANT       = 1
      NO_SUBMIT_AUTH         = 2
      OTHERS                 = 3
    Prog2.
    parameters:pa2 type sy-datum.
    select-options:so2 type sy-dtaum.
    write pa2.
    skip 1.
    loop at so2.
    write:so2-low,so2-high.
    skip 1.
    endloop.
    Edited by: Keshu Thekkillam on Aug 20, 2009 3:22 PM

  • How to execute Infopackage with an ABAP program

    Dear All,
    I would like to execute an infopackage every 6th day of the month.
    Therefore I would like to integrate a program in a process chain executed on a daily basis, and call with this program the execution of the infopackage if day = 6.
    Do you know how to execute an infopackage inside an ABAP program ? Which function module use ?
    Thanks,
    Greg

    Hello luminy13,
    Just to answer your question on how to start an InfoPackage inside an ABAP program: you can use function module BAPI_IPAK_START. You might also need to use FM BAPI_IPAK_CHANGE to change the scheduling.
    However, if the only reason you are creating the ABAP program is to run the InfoPackage at the 6th day of the month, then I don't recommend that you create the ABAP program at all. You can simply schedule the InfoPackage (or the process chain that contains it) on the 6th day of the month. Here's how to do it:
    In the scheduling dialog, click the ">>" button. Enter the factory calendar, put 6 is in the workday and then choose "beginning of the month".
    Hope this helps.

  • How to make program eat less memory/enhance performance ?

    Dear experts,
    I have a program that creates 3 tables containing series of line vectors. These are created from data contained in an ascii file. The program performs some calculations on the data. I have everything working perfectly i.e. it creates the tables, does the calculations and gives me the final results which I need (but this only happens when I use a data file that is 88Kb in size).
    However, the frustrating problem I am experiencing currently is that when I use a heavier file e.g size 4.22mb, after a short delay, Windows starts complaining about memory errors and Windows task manager's Mem usage goes through the roof!
    Eventually, I get an Exception in thread ?main? java.lang.OutOfMemoryError <<no stack trace available>> error from the JVM.
    I have tried "java -Xrunhprof" command and it suggests that the real memory hogging line of code is:
    name = ((String) v.elementAt(nj))+"\t"+((String) reference_vec.elementAt(nj));As the program is dynamically allocating and creating a full nxn matrix of the input data lines at run-time that means it is creating zillions of strings at that line? Concatenation of Strings is not a good idea either as this blows performance too. I am thinking of re-writing the program in C. I have run out of ideas. Please can you suggest how I can make some tweaks to the java code so that the program runs more efficiently? Any comments welcome. Program is approx 500 LOC, can post on request.
    d.

    import java.io.*;
    import java.util.*;
              Mobile ID Classification Program - 2003
              Currently known memory bugs -
              15/10/03      -          JVM reports OutOfMemoryError when gsm_data.txt used as input
    public class DataAnalysis {
    /* Data structures used to store values **/
                   private Hashtable Activity = null;
                   private Vector table1 = null;
                   private Vector table2 = null;
                   private Vector table3 = null;
                   private BufferedReader fin;
                   private StringTokenizer st;
         Mobile activity description strings       
         private final String A1 = "IMSI attach";
         private final String A2 = "IMSI detach";
         private final String A3 = "Periodic location update";
         private final String A4 = "Normal location update+authentication";
         private final String A5 = "Service request mobile call";
         private final String A6 = "Service request SMS";
         private final String A7 = "Service request supplementary service activation";
         private final String A8 = "paging response";
         //           private final String A8a = "Paging response+authentication";
         private final String A9 = "Service request energy";
    /*     main function where the program begins execution **/
         public static void main(String args[]) {
                   if(args.length == 0) {
                             System.out.println("File name not specified. Usage : java -Xmx500mb DataAnalysis <file name> ");
              else if(args.length > 1) {
                             System.out.println("Too many parameters. Usage : java -Xmx500mb DataAnalysis <file name> ");
              else {
                                  new DataAnalysis(args[0]);
    /*          Constructor. Takes input file name string as parameter      **/
         public DataAnalysis(String data_file_name) {
                   Activity = new Hashtable();
                                            table1 = new Vector();
                                            table2 = new Vector();
                                            table3 = new Vector();
         //                Parse the input file. Read in lines.
              try{
                   fin= new BufferedReader(new FileReader(data_file_name));
                   String line;
                   while((line = fin.readLine()) != null) {
                        if (line.trim().length() > 0) {
                             tokenize(line);
              catch(Exception e) {
                                  System.out.println(e.getMessage());
              finally {
                   try {
                                  fin.close();                    //       Close the file input stream then 
                   catch(Exception ee) {
                   //           Create the first two tables
                                                           createTable1();
                                                           createTable2();
              //                     Free the memory occupied by table 1
              //                    freeTable(table1);
                        table1 = null;
                                                           createTable3();
                             //                Free the memory occupied by table 2          
                             //                freeTable(table2);
                   table2 = null;
              //                Select all the mobile ids in gsm_data.txt which have a city block distance value less than 0.25 threshold (upper limit)
              System.out.println("--------------------------Table 3 : Relationship between mobile ids using Manhattan City Block distance -------------------------- \n" );
              for(int ni =0;ni<table3.size();ni++) {
                   Vector inner_vec = (Vector) table3.elementAt(ni);
                   for(int nj = 0;nj<(inner_vec.size()-1);nj= nj+2) {
                             float val = ((Float) inner_vec.elementAt(nj)).floatValue();
                             if(val <= 0.25 && val > 0.0)  {                              
                                            System.out.println((String) inner_vec.elementAt(nj+1));
    /*      Returns the index from table 1  **/
         public int getIndexFromTable1(String id) {
              int index = -1;
              for(int ni = 0;ni<table1.size();ni++) {
                   Vector v = (Vector) table1.elementAt(ni);
                   String vect_id = (String) v.elementAt(0);
                   if(vect_id.equalsIgnoreCase(id)) {
                             index = ni;
                             return index;
                        Create table with actual frequency of mobile activity for each mobile id.   
                        Number of times an activity occurred in the input file.          
         public void createTable1() {
                        Enumeration e = Activity.keys();
                        int sum;
              while(e.hasMoreElements()) {
                        Vector table1_row = null;
                        String s = (String) e.nextElement();
                        Integer num = (Integer) Activity.get(s);
                        StringTokenizer st1 = new StringTokenizer(s, "|");
                        String mobile_id = (String) st1.nextToken();
                        String mobile_act = (String) st1.nextToken();
                        int row_index = getIndexFromTable1(mobile_id);
                   if(row_index > 0) {
                                  table1_row = (Vector) table1.elementAt(row_index);
                                  sum = ((Integer) table1_row.lastElement()).intValue();
                   else {
                                       table1_row = new Vector();
                                       sum = 0;                    
                   if(table1_row.contains(mobile_id)) {
                        if(mobile_act.equalsIgnoreCase(A1)) {                              //                IMSI attach activity
                                  table1_row.setElementAt(num, 1);
                                  sum += num.intValue();
                        else if(mobile_act.equalsIgnoreCase(A2)) {                    //                IMSI detach activity
                                  table1_row.setElementAt(num, 2);
                                  sum += num.intValue();
                        else if(mobile_act.equalsIgnoreCase(A3)) {                    //                Periodic location update activity
                                  table1_row.setElementAt(num, 3);
                                  sum += num.intValue();
                        else if(mobile_act.equalsIgnoreCase(A4)) {                    //            Normal location update+authentication activity
                                  table1_row.setElementAt(num, 4);
                                  sum += num.intValue();
                        else if(mobile_act.equalsIgnoreCase(A5)) {                    //            Service request mobile call activity
                                  table1_row.setElementAt(num, 5);
                                  sum += num.intValue();
                        else if(mobile_act.equalsIgnoreCase(A6)) {                    //                Service request SMS activity
                                  table1_row.setElementAt(num, 6);
                                  sum += num.intValue();
                        else if(mobile_act.equalsIgnoreCase(A7)) {                    //                Service request supplementary service activation activity
                                  table1_row.setElementAt(num, 7);
                                  sum += num.intValue();
                        else if(mobile_act.equalsIgnoreCase(A8)) {               //                     Paging response activity                         
                                  table1_row.setElementAt(num, 8);
                                  sum += num.intValue();
                        else if(mobile_act.equalsIgnoreCase(A9)) {               //                    Service request energy activity          
                                  table1_row.setElementAt(num, 9);
                                  sum += num.intValue();
                                  int lastIndex = table1_row.lastIndexOf(table1_row.lastElement());               //       This is the last index which this table
                                  table1_row.setElementAt(new Integer(sum), lastIndex);
                   else {
                        table1_row.addElement(mobile_id);
                        if(mobile_act.equalsIgnoreCase(A1)) {
                             table1_row.addElement(num);
                             sum += num.intValue();
                        else {
                             table1_row.addElement(new Integer("0"));
                        if(mobile_act.equalsIgnoreCase(A2)) {
                             table1_row.addElement(num);
                             sum += num.intValue();
                        else {
                             table1_row.addElement(new Integer("0"));
                        if(mobile_act.equalsIgnoreCase(A3)) {
                             table1_row.addElement(num);
                             sum += num.intValue();
                        else {
                             table1_row.addElement(new Integer("0"));
                        if(mobile_act.equalsIgnoreCase(A4)) {
                             table1_row.addElement(num);
                             sum += num.intValue();
                        else {
                             table1_row.addElement(new Integer("0"));
                        if(mobile_act.equalsIgnoreCase(A5)) {
                             table1_row.addElement(num);
                             sum += num.intValue();
                        else {
                             table1_row.addElement(new Integer("0"));
                        if(mobile_act.equalsIgnoreCase(A6)) {
                             table1_row.addElement(num);
                             sum += num.intValue();
                        else {
                             table1_row.addElement(new Integer("0"));
                        if(mobile_act.equalsIgnoreCase(A7)) {
                             table1_row.addElement(num);
                             sum += num.intValue();
                        else {
                                  table1_row.addElement(new Integer("0"));
                        if(mobile_act.equalsIgnoreCase(A8)) {
                             table1_row.addElement(num);
                             sum += num.intValue();
                        else {
                             table1_row.addElement(new Integer("0"));
                        if(mobile_act.equalsIgnoreCase(A9)) {
                             table1_row.addElement(num);
                             sum += num.intValue();
                        else {
                                       table1_row.addElement(new Integer("0"));
                                       table1_row.addElement(new Integer(sum));
                   if(row_index > 0){
                        //          Replace the vector in table1 with updated vector
                                            table1.remove(row_index);
                                            table1.insertElementAt(table1_row, row_index);
                   else {
                                       //                 Add the row vector to the table vector as a row.
                                                           table1.addElement(table1_row);
                   tableToString(table1, "--------------------------Table 1: Number of times activity occurred in input txt file -------------------------- " );
                        Create table 2 by normalising the data values from table 1 
         public void createTable2() {
              for(int ni = 0;ni<table1.size();ni++) {
                        int sum;
                        String name = "";
                                            Vector table2_row = new Vector();
                                            Vector table1_row = (Vector) table1.elementAt(ni);
                   //            For each record of table 1
                   for(int nj = 0;nj<table1_row.size();nj++) {
                        sum = ((Integer) table1_row.lastElement()).intValue();
                        //               Name of the activity
                        if(nj == 0) {
                                       name = (String) table1_row.elementAt(nj);
                                       table2_row.addElement(table1_row.elementAt(nj));
                        else if (nj == (table1_row.size() - 1)) {
                                  //                Don't do any thing, we dont want the sum of activities in table 2 !
                        else {
                             Integer num = (Integer) table1_row.elementAt(nj);
                             int num_val = num.intValue();
                             if(num_val == 0) {
                                            table2_row.addElement(new Float("0.0"));
                             else {
                                  if(sum > 0.0) {
                                            table2_row.addElement(new Float((float)num_val/sum));
                                  else {
                                            table2_row.addElement(new Float("0.0"));
                        table2.addElement(table2_row);
                                            tableToString(table2, "--------------------------Table 2: Table 1's Normalised Values --------------------------");
              Create table 3 by comparing the relationship between vectors of table 2 using
              the Manhattan City Block distance.
         public void createTable3() {
                   Vector reference_vec = null;
              for(int ni = 0;ni<table2.size();ni++) {
                                  reference_vec = (Vector)table2.elementAt(ni);
                                  createTable3Record(reference_vec);
    /*       public void createTable3Record(Vector reference_vec) {
              //       Vector table3_record = new Vector();
              Table3Record table3_record = new Table3Record();
              for(int ni = 0;ni<table2.size();ni++) {
                   float sum = 0;
                   //           String name = "";
                   Vector v = (Vector) table2.elementAt(ni);        //           each record of table2
                   for(int nj = 0;nj<v.size();nj++) {                    //           for each element of a record of table 2. Iterate through table 2.
                        if (nj == 0) {
                             //           name = ((String) v.elementAt(nj))+"\t"+((String) reference_vec.elementAt(nj));
                                            table3_record.name_prefix = (String) v.elementAt(nj);
                                            table3_record.name_suffix = (String) reference_vec.elementAt(nj);
                                                 //       table3_record.value = sum;                         
                        else {
                                                 float f1 = ((Float) v.elementAt(nj)).floatValue();
                                                 float f2 = ((Float) reference_vec.elementAt(nj)).floatValue();
                                  sum += Math.abs(f1-f2);
                                  table3_record.value = sum;
                                       //               table3_record.addElement(new Float(table3_record.value));                    //                Value
                                       //             table3_record.addElement(table3_record.name);                                             //                Vector Names for that value
                                                      table3.addElement(table3_record);
                                       //                table3_record = null;                         
                   OLD CODE BUT AT LEAST IT WORKS !!  //    Creates a record for the third table            //  OLD CODE BUT IT WORKS
         public void createTable3Record(Vector reference_vec) {
                        Vector table3_record = new Vector();
              for(int ni = 0;ni<table2.size();ni++) {
                        float sum = 0;
                        String name = "";
                        Vector v = (Vector) table2.elementAt(ni);             //           each record of table2
                   for(int nj = 0;nj<v.size();nj++) {                    //           for each element of a record of table 2. Iterate through table 2.
                             if (nj == 0) {
                              name = ((String) v.elementAt(nj))+"\t"+((String) reference_vec.elementAt(nj));               /**  MEMORY BUG  ?   */
                                  //name = new StringBuffer().append((String) v.elementAt(nj)).append("\t").append((String) reference_vec.elementAt(nj)).toString();               
                        else {
                                            float f1 = ((Float) v.elementAt(nj)).floatValue();
                                            float f2 = ((Float) reference_vec.elementAt(nj)).floatValue();
                                            sum += Math.abs(f1-f2);                              //            Calculate the sum
                                            table3_record.addElement(new Float(sum));                    //           Value
                                            table3_record.addElement(name);                                             //           Vector Names for that value
                                            table3.addElement(table3_record);
                                            table3_record = null;
                   Method which breaks the contents of the file which is read into memory for processing 
         public void tokenize(String s) {
                                  st = new StringTokenizer(s, "\t");
                                  String id = "";
                                  //       String time = "";
                                  String activity = "";
              if(st.hasMoreTokens()) {
                                            st.nextToken();                                                            //                      Date e.g. 13052003
                                            //           time = st.nextToken();                                                            //            Time          e.g. 11:30:18
                                            st.nextToken();
                                            st.nextToken();                                                            //                      Frame Number e.g. 166827                              
                                            id = st.nextToken().trim();                                   //                          ID e.g. f47c12cffb or 2943012109009630
                                            st.nextToken();                                                            //                          Classmark  e.g 33
                                            st.nextToken();                                                            //                          Float e.g. 2.2  (the distance from base station)
                                            activity = st.nextToken().trim();                    //                      Activity e.g IMSI attach
                   String key = id+"|"+activity;
                                            key = key.intern();               
                   if (Activity.containsKey(key)) {
                                       Integer num = (Integer) Activity.get(key);
                                       int num_val = num.intValue();
                                       num_val += 1;
                                       num = new Integer(num_val);
                                       Activity.put(key, num);
                   else {
                             Activity.put(key, new Integer(1));               //  Insert key into our Hashtable
                   Frees the memory used by a table 
         public void freeTable(Vector table) {
                        for (int ni = 0;ni<table.size();ni++) {
                                            Vector inner = (Vector) table.elementAt(ni);
                                            inner = null;
                                            table = null;
                   Convert a vector to a string suitable for displaying on console output               
         public void tableToString(Vector table, String table_name){
                   System.out.println(table_name + "\n");
                                  for (Iterator it = table.iterator(); it.hasNext();) {                                                              
                                                 System.out.println(it.next());
                   Function which sepearates mobile id usage beween day/night usage.     
         public void calculateTimeInterval(String t1, String t2){
                             //           t' = t1 - t2          
                             //           Look at all the ids
              Date d1,d2;
                             d1 = new Date(t1);
                             d2 = new Date(t2);
                             // TBD
    }

  • Multiple instances of Concurrent Program Being Submitted Diffrently

    h3. Hi Oracle Gurus,
    I am new here and was unable to find the correct category to post my thread into. So please if you know the right category please move it or let me know.
    I am having an issue with the order of submission of the same concurrent program with different responsibility.
    h4. Let me explain with an example:
    I have program CProg which is incompatible to itself in the present setting. There are multiple schedules running of the program with different responsibility. The problem arises when the schedules overlap.
    Now let's take 2 schedules:
    1. Runs daily at 2 PM. To identify name it as CProgSch1
    2. Runs the program every 3 hours. CProgSch2
    The priority of both requests is same.
    h4. Terms:
    Request_Date:+The time at which the parent program requested child program to be submitted.+
    Requested_Start_Date:+The time at which the program was meant to be run.+
    Actual_Start_Date:+Time when the program was actually run.+
    Actual_Completion_Date:+Time when the program finished execution.+
    h4. Now, the details are:
    Program________Request_Date_____________Requested_Start_Date________Actual_Start_Date________Actual_Completion_Date
    CProgSch1_________25 Dec 2012 2.20PM__________26 Dec 2012 2PM_____________26 Dec2012 2.02 PM________26 Dec 2012 2.22 PM
    CProgSch2_________ 26 Dec 2012 10.58AM________26 Dec 2012 1.55PM___________26 Dec 2012 2.23PM________26 Dec 2012 2.26 PM
    After I checked why not one but both programs missed to start at Requested_Start_Date( by 2 minutes and 23 minutes) I came to know that there was another program running which completed at 2.02PM.
    After its completion to my surprise CProgSch1 which was scheduled 5 Minutes later ran instead of CProgSch2.
    And as listed above, CProgSch2 which was scheduled to run at 1.55PM was actually run at 2.23 PM after completion of CProgSch1 at 2.22PM.
    It seems that Oracle prioritizes the programs based on Request_Date rather than Requested_Start_Date. Is this so? Can we do something so that oracle picks up programs based on Requested_Start_Date instead of Request_Date.

    ok, and can you please tell me how it doesn't follow those guidelines? If he where to make it shorter then it wouldn't be self contained. He showed us just the methods that where causing the problem. How would you present the problem "Hlpes prgrm no wrk!!!!!" and leave it at that? I'll just point this out before you say anything else:
    U nEd 2 b clearer bout wot d prob iz!_
    Fact is your not helping him at all.
    Now on to his question. I have run code similar to yours in my own sessions and everything turns works out fine.
    public class Monster{
         public int AC;
         public Monster(int a){
              AC = a;
    public class State{
         public State(){}
         public void h(Monster mon1, Monster mon2){
              System.out.println(mon1.AC+","+mon2.AC);
    public class Test{
         public static void main(String[] args){
              State h = new State();
              final Monster Goblin = new Monster(12);
              final Monster Pirate = new Monster(14);
              h.h(Goblin, Pirate);
    }That outputs "12,14". So the problem most be somewhere else in the code.

Maybe you are looking for

  • Agins Report

    Hi. On the account receivable report format there is a column that shows the date. This is a text field and I have tried to figure out how it works, what it does to bring the date information, so I have been unable. I need to know where the dates com

  • Is the power adapter exchange program supported?

    I put in for a replacement for my compact power adapter for my iPhone 3G on September 13. It's the 27th, and it hasn't shown up. I've gone through Apple's voicemail tree and waited twenty minutes while the customer service rep traced my order through

  • Direct to disk recording--to mpeg stream

    Don't know if this is the correct place to post this but... We have a Cable TV station in which our video server uses mpeg streams. My question is I began using Bear's hand to record direct to disk from camera. Is there a workflow where one can take

  • AxAcroPDF throws unhandled exception on click of TAB

    I am using VB and call the method AxAcroPDF.loadfile. File loads into the viewer in the form and just after the load if I click TAB, I get the below error and VB6 just closes.

  • HT203477 Why does my computer quit unexpectedly when I click on "Show the Project Library" in Final Cut Pro X ?

    Hello, When I click on "Show the Project Library" on Final Cut Pro X program, my computer unexpectedly quits. I just purchased an iMac 27in screen, (16G Ram) and all the features suggested by the Apple representative to run Final Cut Pro X. The progr