How to find unused variable through sequence

Hi,
I would like to know if it is possible to find unused variable through sequence in order to suppress them ?
Thank you

Hi,
If you're fixed on that version of TestStand for a while (for whatever reason) and you see this situation coming up again, you could always build a small tool to automate the process.
From the current sequence file's handle, you could traverse all the locals and file globals to make a list of all variables and then search the sequences step by step to see if they're in use.
What this won't tell you is if any code modules or custom step types are directly accessing those variables through the sequencecontext handle so removing them can cause issues.
A secondary approach is to cut all the locals (or whatever the variable scope is) in to a new sequence file (or work with a backup version of your sequence file) and delete them from the existing file and see what errors get thrown up.
Finally, as Doug suggests, to get a latest copy of TestStand on to another machine, you could download a trial version and work with that if it's a one off. After all - if you find the sequence analyser feature that useful, it's a great reason to consider your upgrade policy / timing in the future anyway!
Thanks
Sacha
// it takes almost no time to rate an answer

Similar Messages

  • How to find Unused variables in procedure,function or package

    Hi all,
    I want find out unused variables in procedure, function and package.
    I have written below script for doing this ,but i am not getting the expected result.
    Kindly help me to improve the below code ,so that it works as expected.
    {code}
    version details
    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    PL/SQL Release 11.2.0.3.0 - Production
    "CORE    11.2.0.3.0    Production"
    TNS for Linux: Version 11.2.0.3.0 - Production
    NLSRTL Version 11.2.0.3.0 - Production
    {code}
    {code}
    What i Have tried is This.
    DECLARE
      V_OBJECT_NAME VARCHAR2(30) :='PR_PRINT';
      V_OBJECT_TYPE VARCHAR2(30) :='PROCEDURE';
      CURSOR C1(CP_OBJECT_NAME VARCHAR2,CP_OBJECT_TYPE VARCHAR2)
      IS
        SELECT US.NAME,
          US.TYPE,
          US.LINE,
          REGEXP_SUBSTR(US.TEXT,'.* ') AS var_name
        FROM user_source US
        WHERE name=CP_OBJECT_NAME
        AND type  =CP_OBJECT_TYPE
        AND REGEXP_LIKE (TEXT,'(v_|g_|c_)','i')
        AND REGEXP_LIKE (TEXT,'^[^ ]')
        AND REGEXP_LIKE (TEXT,'^[^--]') ;
      v_count NUMBER ;
    BEGIN
      FOR i IN C1(V_OBJECT_NAME,V_OBJECT_TYPE)
      LOOP
        SELECT COUNT( *)
        INTO V_COUNT
        FROM USER_SOURCE US
        WHERE US.NAME=I.NAME
        AND REGEXP_LIKE(US.TEXT,i.var_name,'i' )
        AND US.LINE<>I.LINE;
        IF V_COUNT  =0 THEN
          DBMS_OUTPUT.PUT_LINE('variable '||I.VAR_NAME||'Is declared at line#'||I.LINE||' But no where used');
        END IF ;
      END LOOP;
    EXCEPTION
    WHEN OTHERS THEN
      DBMS_OUTPUT.PUT_LINE('p_err_code := '||SQLCODE||dbms_utility.format_Error_backtrace());
      DBMS_OUTPUT.PUT_LINE('p_err_msg := '||sqlerrm);
    END ;
    {code}
    Thanks,
    P Prakash

    Hello,
    as suggested by padders you can use PL/Scope, an example:
    ALTER SESSION SET PLSCOPE_SETTINGS='IDENTIFIERS:ALL';
    CREATE OR REPLACE PACKAGE ui_test1 AS
        global_number   NUMBER := 9;
    FUNCTION get_number
        RETURN NUMBER;
    END ui_test1;
    CREATE OR REPLACE PACKAGE BODY ui_test1 AS
    PROCEDURE setNull
         p_varchar          IN OUT VARCHAR2
    IS
    BEGIN
        p_varchar := NVL(p_varchar,'NULL');
    END setNull;
    FUNCTION get_number
        RETURN NUMBER
    IS
        FUNCTION setZero
             p_number       IN NUMBER
            RETURN NUMBER
        IS
        BEGIN
            RETURN NVL(p_number,0);
        END setZero;
    BEGIN
        RETURN global_number;
    END get_number;
    END ui_test1;
    SELECT  DISTINCT
            object_name
           ,object_type
           ,name
           ,type
           ,line
           ,col
    FROM    all_identifiers obj
    WHERE   obj.owner = USER
    AND     obj.usage = 'DECLARATION'
    AND     obj.object_name = 'UI_TEST1'
    AND     NOT EXISTS (
                SELECT  1
                FROM    all_identifiers with_rh
                WHERE   obj.signature = with_rh.signature
                AND     with_rh.usage IN ('REFERENCE','CALL','ASSIGNMENT')
    ORDER BY TYPE
            ,object_name
            ,object_type
            ,name;
    OBJECT_NAME  OBJECT_TYPE   NAME       TYPE       LINE COL
    UI_TEST1     PACKAGE       GET_NUMBER FUNCTION     11  10
    UI_TEST1     PACKAGE BODY  SETZERO    FUNCTION     35  14
    UI_TEST1     PACKAGE       UI_TEST1   PACKAGE       1   9
    UI_TEST1     PACKAGE BODY  SETNULL    PROCEDURE    12  11
    Regards
    Marcus

  • Need help on how to find unused variables and intialization blocks in rpd

    Hi ,
    I have to remove used initialization blocks and variables.
    Could suggest me the wayt to find the unused variables and intialization blocks.
    Thnx

    1.For the ones used in the RPD, you can right click on the presentation catalog and say Display related variable, init blocks etc.
    2. The ones used in Presentation layer only could be identified when they get fired. refresh your dashboards and from the admin tool in online mode you can find which init blocks and variables are fired... eliminate by that way.
    3. to know all the variables and init blocks present create the Metadata dictionary of the RPD and you will get a folder named Init blocks... identify and explore there....

  • How to find unused logins?

    Hi All,
    We have one urgent requirment.How to find unused logins in SQL server 2008? Is there any script to remove unused logins?
    Please help me to complete the task.
    Thanks,
    Siva G
    SivaG:Please Marked as Answered, if it resolves your issue.

    Hello Siva,
    How do you define "unused logins", such who have never logged in or ...? Anyway, by default login activities are not logged by SQL Server, you have to implement a logging on your own. Even
    LOGINPROPERTY (Transact-SQL) don't return such information.
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • How to find unused objects in SAP BI system?

    Hello All,
    I have got a requirement- you can say optimization programme in BW system.
    For that i have to first find the list of unused obects-DSO's, IC, etc.
    We have RSDODSO, RSDCUBE tables, but not sure how to use them- by looking at latest data loads/ time stamp.
    If you have any suggestions on this .Please revert me back.
    Regards,
    Siva

    HI Kumar,
    For cubes: Goto se11 and use table RSMDATASTATE and check the value of the field LAST_CHANGE this is the date on which last time data is loaded in cube.
    Check RSMO & find which all data loads are happening daily...weekly...montly
    Refer to the link below for more info on unused objects:
    How to find UNUSED InfoObjects list in BEx Query by comparing with Infoprovider.
    How To Find Unused InfoObjects Part - 1.
    Regards,
    Ashvin

  • How to find unused queries in BWD?

    How to find unused queries in BWD?
    Please let me know the process after finding  unused queries to delete them,and  what are the various possibilities we need check before deleting??

    Hi Bharani,
    You can use Transaction RSZDELETE for deletion of query objects with respect to many selections.
    In that you have one selection as 'Last Used'. So you can deleted these queries which are very old and not used for long time.
    In case if you want to see these queries you can check in the table RSZCOMPDIR using SE16 giving the technical name of the query and here also you can find the field called 'Last Used'.
    Based on this you will be able to decide which query you can delete.
    Reward points if helpful.
    Kind Regards,
    Raghu

  • HOW TO FIND UNUSED initialization blocks  IN OBIEE RPD

    Hi Gurus,
    I have a task to remove unused initialization blocks and subject areas from RPD.
    how to find them ?how to check whether any reports are using these initialization blocks?
    Please reply me. I need to complete this task.Pls help me
    Regards,
    siva

    Unused Subject Areas -
    Use Catalog Manger - Tools - Create a report to with report name and subject area. You will get what are being used.
    Use RPD - Tools - Utilities export your RPD to CSV and check the Subject area.
    Compare both and remove unwanted subject areas.
    Initialization Blocks - We do not use these blocks directy but use Variables that are associated with it. Go to RPD - online - Mangesession - You will see the Variables tab in the window which give list of all variables thats get initialised with the session. --- Session Blocks
    Use Report Tools - Query Repository for searching.
    Try like this.

  • How to find unused indexes in oracle 10g r2

    Hi all,
    db:oracle 10.2.0.3
    os:solaris
    i want rebuilt the some of the indexes (due poor performence of db)
    how to find the unused indexes in oracle 10gr2 database.?
    can any one help me out plz.

    kk001 wrote:
    Hi all,
    db:oracle 10.2.0.3
    os:solaris
    i want rebuilt the some of the indexes (due poor performence of db)
    how to find the unused indexes in oracle 10gr2 database.?
    can any one help me out plz.You can use V$OBJECT_USAGE.
    But how you decide need rebuilding indexes?
    How you decide problem related indexes?
    What is exactly your mean "due poor performence of db"? some queries hang/long running or whole system hang or has poor performance?
    In generally do not need rebuilding index(unless specially cases),first give we above questions`s answers.

  • How to find the Variable in the form

    I am having in which it is populating one forms "Display Variable"........but I don't know from where it is getting populated......Since Because there are lots of procedures and Trigger written and there are around 150 items on the forms...............i feel it litle inpractical to search for each and every item in the form..................
    Please help me in searching .......how to find where that item is getting popultaed from?

    I am having in which it is populating one forms "Display Variable"I could not understand this sentence...please make it clear...
    but I don't know from where it is getting populated.And also this one. when it is getting populated. At the time of query or when you are opening form?
    Anyway if you want to search for specific item in you code then go to Edit>Find in SQL / PL SQL and enter the field name which you want to search in your code. It will show you all the triggers where you mentioned that item in your code.
    By the way hi ;)
    -Ammad

  • How to find the Variable

    Hi,
    I searched in google i could not get proper anser.
    my question is
    how to find the varient is created are not. and also i am intrested to learn how to creat the variant...
    Thanks and regards,
    Kesava.

    hi ,
    i am intrested to learn how to creat the variant...
    For creating varient just run ur program,
    And enter the values into the inpur parameters or select-options.
    then press the save button,
    after it will display another screen which will ask about the varient name and its discription, fill it and save it,
    your varient will created.
    Same way u can create another varient also
    how to find the varient is created are not
    please refer below blogs:
    [Blog1|Create variants through ABAP;
    [Blog2|How to set up standard variant in ABAP report;
    thanks,

  • How to Find unused programs / T-codes for the past three months

    How to find the unused programs / transaction codes for the past three months,
    I tried with the ST03 Transaction but it gives only the Tcodes, program used in last one monthu2026
    Regards,
    Purshoth

    This depends on the data retention time (in days) maintained in your system. In ST03, on the right hand side, check "Collector" tab, under that "Performance Database" and then "Reorganization" which will give you the details retention times  (in days).
    Also please check the link http://inet.tamko.com:8081/saphelp/helpdata/EN/c4/3a68d5505211d189550000e829fbbd/frameset.htm for more details.
    Thank You.

  • How to Find System Variables

    Hi All
    I need to Find the Hidden Variable i.e., System Variable in a Document like A/R Invoice,A/P Invoice etc
    how can we know the variable no.
    Thanks in Advance

    Hi madhu,
    Usually, the variable number is the only thing you do know. You can go about in two way to find out to what field it relates to
    1. Use the System Variables .xls file to know the field description(not the name). Then open PLD, in a report that uses the same table, and browse through the fields until you find a field with the same description. That field list also indicates the field´s name.
    2. Query the table in question and browse through the columns till you find the desired field.
    If there is a more direct way, I also would like to find out.
    Regards,
    Vítor Vieira

  • How to find unused memory amount, OS x 10.6.8?

    How do I find remaining memory capacity on Imac 10.6.8

    Hi cpq24tr0,
    You can find your memory utilization under "Activity Monitor", there is a memory tab that will detail its usage.
    Good luck,
    Dr. C.

  • How to find repairs done ( through access key)  in SAP ECC 6.0 system

    Hi Experts,
    I have to find the Repairs ( ie standard code is edited with access key ) done in my SAP ECC 6.0 system. I want to find out the repairs which was done my some developer using the access key and also want to segregate the ones which were done through the OSS notes and support packages. Is there any table or report i can use in the sytem to view this details. Please let know at the earliest.
    Thanks,
    Murali.

    Access Key Tables - ADIRACCESS
    OSS Notes - TCODE SNOTE.

  • How to find unused ABAP custom code?

    Hi,
    how can I identify the unused ABAP custom code  outside of  the SAP Solution Manager?
    Thanks in advance.
    Nora

    Like a Google for ABAP, the Salt Code Ferret app provides incredibly fast searching of custom ABAP programs or modified standard SAP programs across all your SAP systems. Sniffing out specific pieces of code, Code Ferret is a huge timesaver in locating multiple instances of potentially conflicting code, code errors, or code that developers want to access or replicate. www.saltapps.com
    Try Salt free for 90 days – it’s a suite of eight virtual appliances running on VMware or Hyper-V for understanding what’s happening in SAP systems and across SAP landscapes.

Maybe you are looking for

  • ZL_BT115H_S_DETAILS_CN00 does not exists after EEWB enhancements

    Hi Gurus, I have enhanced the component view BT115H_SLSO/details initially, after some days, I have added two Zfields to BTADMINH using EEWB. while opening the Context node BTADMINH in the view BT115H_SLSO, the following error message is being displa

  • Can't get Logic to work on my new Macbook.

    I just bought a macbook pro (8,3 OS 10.7.5), and used migration assistant to move over from my old macbook (also running 10.7.5).  When I try to launch Logic (legit paid-for copy, 9.1.7) I get the following:      Logic Pro cannot be opened because of

  • How to remove the limitation on no. of rows

    Hi, In Quoting, when you choose Add Services after selecting a line and click on Go, it would take you to a page that lists the services that could be added to the quote. In 11.5.9, we used to get > 700 rows, but in R12 the no. stays at 200, regardle

  • A video I have watched in the past plays randomly, invisibly and sporadically in the background when browsing with FF10.

    I'm having a small but annoying issue with FF10. In the past, I have watched a video on a website that I visited to get information on a diet for a family member. I have not visited that site since obtaining the information on the diet, but now, some

  • Touch pad problem

    Hello all, I have an HP 6730b laptop. I purchased it used. I runs Win 7 @ 64bit. All was well, until I had to do a restore to an earlier time, due to a bad program download.  Now, my problem is: the "Synaptics touch pad" used to have a listing in the