Programatiicaly determine if a subsequence exists

How do I determine if a named sequence exists in a sequence file (not the current sequence file) and if present, execute it? The file in which the sequence resides may or may not be loaded.
I would like to do this within a TestStand sequence (presumably using the TestStand API). I'm using TS 3.0. I know how to dynamically call the sequence, I just need to determine if it exists before calling it.
Now is the right time to use %^<%Y-%m-%dT%H:%M:%S%3uZ>T
If you don't hate time zones, you're not a real programmer.
"You are what you don't automate"
Inplaceness is synonymous with insidiousness

Hi,
Get a reference to the SequenceFile then you can use the API SequenceFile.SequenceNameExists(sequenceNameParam) and this returns a Boolean.
Regards
Ray Farmer
Regards
Ray Farmer

Similar Messages

  • How can i determine if a directory exist using plsql

    i want to determine if a directory exist
    e.g
    directory in variable dir_source:= 'xc/folderName/SubFolder'
    i want find how to determine if the above exist on my server using plsql
    Edited by: kama021 on Jun 24, 2009 2:21 AM
    i don't want to create a direcotry if it exist already so how do i do this
    if the below directory exist then don't create how do this
    'xc/folderName/SubFolder'
    Edited by: kama021 on Jun 24, 2009 3:26 AM

    What OS? The trick is to use a known special file that always exists in every folder. On Windows an example of this is NUL. It's the equivalent of /dev/null but exists in every directory automagically. That means you can do this:
    SQL> create directory temp as 'C:\TEMP';
    Directory created.
    SQL> select dbms_lob.fileexists(bfilename('TEMP', 'NUL')) from dual;
    DBMS_LOB.FILEEXISTS(BFILENAME('TEMP','NUL'))
                                               1
    1 row selected.
    SQL> create directory test as 'C:\NOTREAL';
    Directory created.
    SQL> select dbms_lob.fileexists(bfilename('TEST', 'NUL')) from dual;
    DBMS_LOB.FILEEXISTS(BFILENAME('TEST','NUL'))
                                               0
    1 row selected.

  • Determining data type of existing column in table

    Hi
    I've done some googling on this, and I know I've done it before, but i cant find/remember how to determine the data type of a column in an existing table..... i tried select dump(column_name) from table but it didnt work.
    any suggestions?
    Thanks in advance

    Hi try this
    SQL> select data_type from user_tab_columns
      2  where COLUMN_NAME='EMPNO'
      3  and table_name='EMP';
    DATA_TYPE
    NUMBER

  • How do I determine if a file exists or not on my PC?

    I thought this would be an easy one and maybe I am just making it harder than what it has to be. I simply want to search in a given directory to see if a file exists on not on my hard drive. Are there any ideas as to how to do this without causing an error if the file does not exist?

    Hi:
    In those situations what I've done till now is opening  the file
    and  close it inmediatly, if I find out and error while opening it
    I guess it doesn't exist. I know this is not the best way since there
    may be other reasons for the Open File Function to fail, but it has
    worked for me. Does somebody know a better way to do it?
    Regards
    Robst - CLD
    Using LabVIEW since version 7.0

  • How to determine process template for existing team project ?

    Hello,
    I have existing team project ( TFS 2013 ) but I don't have information about which process template have been used.
    Is there any way to figure out which process template has been configured in existing team project ?
    Thank you in advance !
    Kind Regards,
    Dipti Chhatrapati

    You could also check the Process Template version If you have integrated TFS with SharePoint 
    Here are the steps:
    Team Explorer->Click on Documents -> Expand Process Guidance ->Click on ProcessGuidance.aspx 
    Based on the process template you have used, it will redirect you the guidance page.
    Example: You are being redirected to the guidance for the following process template: Microsoft Visual Studio Scrum 2013.4... (Here i have created a new project on TFS13.4 server with Scrum template)
    Thanks, BHSR

  • I am running an Applescript to determine if an application exists and receiving an error related to sandboxing - why

    I am attempting to write a script to do some file conversion when I import files into Aperture using Aperutre's importAcrtionFromVersions event.  Right now I am simply trying to have the script make sure the conversion application exists and I am finding in the Console that I am getting an error saying that a "sandboxed application with pid 27399 attempted to lookup app: Finder but was denied due to sandboxing".  (FYI pid 27399 is Aperture)
    When I run this script on it's own I have no problems. The code being used is
    set theApp to item "Adobe DNG Converter" of folder "Applications" of startup disk
    I have also tried
    if exists file "Adobe DNG Converter" of folder "Applications" of startup disk then
    which also works on its own but doesn't when running from Aperture again because of sandboxing.
    I am not sure if this should be in the Aperture discussion community or somewhere else. I thought because the problem is the result of sandboxing, which is an OS issue that it is more appropriate to be in the OSX community.
    I am running an iMac with OSX 10.8.2 and Aperture version 3.4.3.  Any ideas or resources would be appreciated.

    It looks like your script is targeting the Finder - if Aperture is what is running the script, it will need the proper entitlements to control stuff outside its sandbox.  You might try using the bundle identifier, which is usually the way to go since it can be trapped by a try statement, for example
    try -- test for an application
      application id "com.apple.Safari"
    on error errmess -- doesn't exist
      log errmess
      # whatever
    end try

  • Determine if hidden layers exist

    I am building a script to cleanse photoshop documents, and one of the options I am including is to remove all hidden layers. There is no direct command to do so (or none that I have seen), so I used a chunk of code from ScriptListener to perform the 'Delete hidden layers' command.
    I only want to enable this option if there are layers that are hidden, so I'm wondering if there is a simple way to determine if any layers are hidden in the document (aside from looping through all of the layers). Or, if there's a way to determine if the 'Delete hidden layers' command is enabled or not, since that is only enabled when there are hidden layers.

    I would just bung the code between a try catch block (but I'm lazy )
    If you did want to check this should be fast...
    alert(hasHiddenLayers());
    function hasHiddenLayers(){
       var ref = new ActionReference();
       ref.putEnumerated( charIDToTypeID('Dcmn'), charIDToTypeID('Ordn'), charIDToTypeID('Trgt') );
       var count = executeActionGet(ref).getInteger(charIDToTypeID('NmbL')) +1;
    try{
        activeDocument.backgroundLayer;
    var i = 0; }catch(e){ var i = 1; };
       for(i;i<count;i++){
           if(i == 0) continue;
            ref = new ActionReference();
            ref.putIndex( charIDToTypeID( 'Lyr ' ), i );
            var desc = executeActionGet(ref);
            var layerName = desc.getString(charIDToTypeID( 'Nm  ' ));
            var Id = desc.getInteger(stringIDToTypeID( 'layerID' ));
            if(layerName.match(/^<\/Layer group/) ) continue;
            if(!desc.getBoolean(charIDToTypeID( "Vsbl" ))) return true;
    return false;

  • Determine a excel file exists or not by active x

    I w a n t t o a d d t h e d i f f e r e n t d a t a a b o u t a s p e c i f i e d U U T t o d i f f e r n t w o r k s h e e t o f a s p e c i f i e d w o r k b o o k s . I f t h i s w o r k b o o k d o e s ' t e x i s t , t h e n c r e a t i t a n d s t o r e t h e d a t a . I f t h i s w o r k b o o k a l r e a d y e x i s t , t h e n o p e n i t a n d s t o r e t h e d a t e i n a n e w w o r k s h e e t . B u t h o w c a n t h e p r o g r a m k n o w w h e t h e r t h e e x c e l 9 7 f i l e e x i s t a u t o m a t i c a l l y ? T h e q u e s t i o n a b o v e i s b a s e d o n l a b
    v i e w 5 . 1 a c t i v e x a n d e x c e l 9 7 .

    Use Workbooks.Open(...) method which takes the XLS file path
    to open. It returns a reference to the Workbook object if succeeded.
    Otherwise this action raises a COM exception. Sorry but I don't
    know how to handle COM exceptions in a general way. (I think
    the Error Out control may report an error if failed.)
    Makoto
    "east" wrote in message
    news:[email protected]..
    > I w a n t t o a d d t h e d i f f e r e n t d a t a a b
    > o u t a s p e c i f i e d U U T t o d i f f e r n t w
    > o r k s h e e t o f a s p e c i f i e d w o r k b o o k s . I
    > f t h i s w o r k b o o k d o e s ' t e x i s t , t h e n c
    > r e a t i t a n d s t o r e t h e d a t a . I f t h i s
    > w o r k
    b o o k a l r e a d y e x i s t , t h e n o p e n i t
    > a n d s t o r e t h e d a t e i n a n e w w o r k s h e
    > e t . B u t h o w c a n t h e p r o g r a m k n o w w h e
    > t h e r t h e e x c e l 9 7 f i l e e x i s t a u t o m a t
    > i c a l l y ? T h e q u e s t i o n a b o v e i s b a s e d
    > o n l a b v i e w 5 . 1 a c t i v e x a n d e x c e l 9 7

  • At runtime, can it be determined if multiple overlapping objects/layers exist beneath a mouse click?

    Hi folks - total nube here. I am trying to find out whether I can determine if multiple objects exist beneath a usr's mouse click coordinates. The objects will be either shaded areas under a LineSeries in a chart or possibly overlayed images representing such areas (not sure which approach would be better). I know that I can probably determine alebraically whether the coordinates selected b a mouse click belong under one series or another or multiple and if this is the best option, then I will proceed with it. But possibly, there is a way for me to determine whether a shaded area under a series or a grpahical element exists under those coordinates. Any hints? Thanks in advance.

    Yes, export it for your reference first. make it delete and create new one.
    hope it should work fine.
    thx
    Deep

  • How to Determine Whether Columns Exist in a Table

    Greetings,
    Because of customizations to our product, certain database table structures vary between different client installations. Hence, in the code, I need to determine whether two columns exist in a certain table, in order to apply some business logic.
    Please suggest a way for me to determine whether two named columns appear in a specific table. In other words, for example, I need to discover whether both columns SAL_GRADE and BONUS appear in the EMP table, or not. Only if both columns are defined, can I apply my business logic.
    Thanks,
    Avi.

    Avi,
    Like this ?
    SQL> declare
      2    l_count number;
      3  begin
      4    select count(*)
      5      into l_count
      6      from user_tab_columns
      7     where table_name = 'EMP'
      8       and column_name in ('SALGRADE','BONUS')
      9    ;
    10    if l_count = 2
    11    then
    12      dbms_output.put_line('Both columns exist, so apply business logic');
    13    else
    14      dbms_output.put_line('One or both columns are missing, so don''t apply business logic');
    15    end if;
    16  end;
    17  /
    One or both columns are missing, so don't apply business logic
    PL/SQL-procedure is geslaagd.Regards,
    Rob.

  • Determine if database exists?

    Is is possible, through Java, to determine if a database exists on a particular database server? We have an application that will either create or migrate a database, and I need to add a check in the installer to ensure that the given database name exists before continuing. I'm looking for something that works with both SQL Server and Oracle (but SQL would be fine atm). Any help is greatly appreciated and thanks in advance.

    As far as I know, you have to connect to the database and you are quite correct, it will only verify if you have rights to read from that database. If are wondering what to do if you don't have appropriate system rights in the database or ability to connect to the database, then you will have to go the registry route for Oracle and see if the database you are looking for has been registered--I will assume SQL does something similar, but I do not know. This assumes you will have rights enough on the server to search the registry.
    Aside from the previous suggestions, you can literally search the server directory structures looking for the database you seek. This way you also have to have appropriate rights into the server.
    Any way you look at it, you are going to have to have a login account and appropriate rights to find what you are looking for--however you choose to do the searching.

  • How to determine existing firmware version installed?

    Hi - before I brave messing around with firmware upgrades, I want to know if it's necessary! How can I determine what firmware already exists on my WRT54G (v8.2)?  I couldn't find reference to this in any of the help forums or tech support. BTW, I'm using Windows XP Profession OS. Thanks!

    If you have a computer directly connected on the router, launch a browser and type in http://192.68.1.1 leave the username blank and type admin on the password, you can use your password if you have one... then after that, you'll be on the setup screen..you can see the information there
    "The war between heaven and hell depends on the choices we make, and those choices require sacrifice. That's the test"

  • Checking to see if files exist not working as expected.

    Hey, so I've set up a script that determines the artist playing on iTunes and sets the background image to a preselected picture of them. I want to expand this to allow different pictures of the artists, and after a few attempts, decided to use a time based system. However, some artists have 2 images (named Artist1.jpg and Artist2.jpg), whilst others only have one (Artist.jpg). I can get the scripting right for if all artists have 2 images, yet am having problems with the system determining if certain files exist.
    who is the artist playing, and myNum is either 1 or 2, and changes based on the time, both set earlier in the script and verified to work.
    set MultiWall to ("/Users/ethan/Pictures/Music Wallpaper/" & who & myNum & ".jpg")
    set SingleWall to ("/Users/ethan/Pictures/Music Wallpaper/" & who & ".jpg")
    tell application "System Events"
                       if not (exists MultiWall) then
                                                           tell application "Finder"
                                                                          set desktop picture to file SingleWall
                                                           end tell
                       else
                                                           tell application "Finder"
                                                                          set desktop picture to file MultiWall
                                  end tell
                                            end if
    end tell
    I've tried many variations of this, from less variables to more, restructuring it and whatnot and it just isn't working for me. Thanks all.

    If you are still having difficulties you may like to try this method:
    set myPath to "/Users/neville/Desktop/test" & ".png"
    if (do shell script "/bin/test -e '" & myPath & "'; echo $?") is "0" then
      tell application "Safari" to open myPath
    end if
    It should work if you copy and paste it.
    Please note the combined single and double quotes. Don't put a space between them. You may not need the single quotes if you have control over the path. Most people would opt for 'quoted form of' but I prefer concise code.

  • Cannot check if user already exists in Shared Service (9.3.1)

    Hi,
    I wrote some code based on the sample from 9.3.1 CSS documentation for adding users for shared services.
    Thing is that I need this script to determine if a user exists or not so it won't go through the creation code again.
    So, from the code:
    public class UserFunctionsSample extends Sample {
    public CSSNativeUserIF createUser() throws CSSException
              CSSNativeUserIF user = null;
              HashMap context = new HashMap();
         user = cssDMAPI.getNativeUserInstance(context, principal);
         user.setLoginName("testuser" );
         user.setDescription("Created for test");
         user.setFirstName("First");
         user.setLastName("Last");
         cssDMAPI.addNativeUser(context, principal, user);
         cssDMAPI.setPassword(context, principal, user.getIdentity(),"testuser" );
         return user;
    public static void main (String [] args) throws CSSException{
                   /* Create a native user */
                   UserFunctionsSample cu = new UserFunctionsSample();
                   CSSNativeUserIF user = cu.createUser();
    I have Sample.java and ApplicationContract.java set up.
    What I tried to do is to use the following code (also taken from the same sample) just before calling createUser()
    CSSNativeUserIF user = cu.createUser();
    to determine if user exist.
    /*lookup the user just created by identity */
    CSSNativeUserIF u = cu.lookupUser(user.getIdentity());
    cu.dumpUsers(System.out, "Found user", new CSSNativeUserIF[]);
    For some hidden reason, I keep getting:
    Exception in thread "main"
    Error Code: 4
    com.hyperion.css.CSSInvalidUserException: User not found with identity: native://DN=cn=32687d765b75fb16:13778f33:12684aee8f5:-8000,ou=People,dc=css,dc=hyperion,dc=com?USER     Error Code: 4
         at com.hyperion.css.spi.impl.nv.NativeProviderDirMgmt.getNativeUserByIdentity(Unknown Source)
         at UserFunctionsSample.lookupUser(UserFunctionsSample.java:101)
         at UserFunctionsSample.main(UserFunctionsSample.java:123)
    User was created successfully at the previous run. Why can't I find it now? What am I missing here?
    Thanks, Assaf

    Hmm, tried that and now have more build errors in the finally section.
    init:
    deps-jar:
    Compiling 1 source file to C:\resin-2.1.11\doc\examples\basic\WEB-INF\classes\JavaLibrary1\build\classes
    C:\resin-2.1.11\doc\examples\basic\WEB-INF\classes\JavaLibrary1\test\FormBean.java:57: cannot resolve symbol
    symbol  : variable rst
    location: class foo.FormBean
                if (rst != null) rst.close();
    C:\resin-2.1.11\doc\examples\basic\WEB-INF\classes\JavaLibrary1\test\FormBean.java:57: cannot resolve symbol
    symbol  : variable rst
    location: class foo.FormBean
                if (rst != null) rst.close();
    C:\resin-2.1.11\doc\examples\basic\WEB-INF\classes\JavaLibrary1\test\FormBean.java:58: cannot resolve symbol
    symbol  : variable stat
    location: class foo.FormBean
                if (stat != null) stat.close();
    C:\resin-2.1.11\doc\examples\basic\WEB-INF\classes\JavaLibrary1\test\FormBean.java:58: cannot resolve symbol
    symbol  : variable stat
    location: class foo.FormBean
                if (stat != null) stat.close();
    C:\resin-2.1.11\doc\examples\basic\WEB-INF\classes\JavaLibrary1\test\FormBean.java:59: cannot resolve symbol
    symbol  : variable conn
    location: class foo.FormBean
                if (conn != null)  conn.close();
    C:\resin-2.1.11\doc\examples\basic\WEB-INF\classes\JavaLibrary1\test\FormBean.java:59: cannot resolve symbol
    symbol  : variable conn
    location: class foo.FormBean
                if (con != null)  conn.close();
    6 errors
    BUILD FAILED (total time: 1 second)Just for a quick test, I deleted the sql exception and finally code and replaced it with a regular exception just to see what happened and got no build errors, however when I run the form I am getting an sql exception from the prepared statement, parameter out of range (1 > 0). I tried reading into prepared statements, and although I now understand their basics, I still have no idea why I'm getting this error?

  • Show-stopper How can I determine tab hierachy from ids in wwpob_page$

    I have application components published as portlets that depending on the particular page/tab combination perform various functions.
    I am able to get the page_url from my report components published as portlets through p_page_url.
    The URL obviously keeps track of which particular tab was last active
    page?_pageid=54,93,62,68,86,98
    I know the table wwpob_page$ contains these id values.
    I need to be able to determine how the tab hierachy is determined.
    Such that how one can determine which tabs can exist under a parent tab and so on based on the id.
    10 20 30 40 50
    55 58 44 48 64 68
    99 105 111 72 76
    I know I could "hard-code" id values to determine which particular tab I am currently on.
    I want to be able to use tab "friendly" names.
    select p.id, p.name, s.text
    from wwpob_page$ p, wwlns_strings$ s
    where p.title_id = s.id
    order by p.id asc
    My code needs to be robust enough so that if new tabs are added, I can still decipher the URL!!!
    Can someone also tell me how the URL is built and what determines the order of tab_ids?
    This is urgent and a show-stopper!
    kind regards,
    Matt.

    It's my fault, I lost you there.
    See I wrote the steps as they were in  "Adobe Help" so please forget about the last comment.
    I chose the "advanced mode" because I have more than one menu to filter (shape and color) 
    lets say I want the comments on my website to be displayed conditionaly, and I have two lists one for colors (blue and pink) and other for shapes (square and circle), 
    So I'm going to have four pages each page has its own recordset, let's say now I want to filter the recordset for (Blue Circle) page 
    I don't know how to do it but by following the steps in Dreamweaver help: 
    -Select name, and click the Select button. 
    -Select content, and click the Select button. 
    -Select shape, and click the Where button. 
    -Select section, and click the Where button. 
    -Select time, and click the Order By button. 
    this is how the SQL statement look likes:
    SELECT mytable.name, mytable.contents
    FROM mytable
    WHERE mytable.shape='circle' AND mytable.`section`='blue'
    ORDER BY mytable.hdw_serverTime 
    then to Define the variables 'circle' and 'blue' :
    by clicking the Plus (+) button in the Variables area and entering the following values in the Name, Default Value, and Run-Time Value columns:
    circle,square,Request("circle")
    blue,blue,Request("blue") 
    Also I understand that I have to define a parameter but which (URL or Form) and how?  I don't know 

Maybe you are looking for