How to check if a string exists in varray or not

Hi all

How to check if a string exists in varray or not.

Version Details 


BANNER
----------------------------------------------------------------
Oracle Database 10g Express Edition Release 10.2.0.1.0 - Product
PL/SQL Release 10.2.0.1.0 - Production
CORE    10.2.0.1.0      Production
TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
NLSRTL Version 10.2.0.1.0 - Production
SQL> get test
  1  DECLARE
  2     TYPE dnames_var IS VARRAY(7) OF VARCHAR2(30);
  3     dept_names dnames_var := dnames_var('Shipping','Sales','Finance','Payroll');
  4  BEGIN
  5    if dept_names.exists('Shipping')
  6    then
  7       dbms_output.put_line('Exists ................');
  8    end if ;
  9  /*   DBMS_OUTPUT.PUT_LINE('dept_names has ' || dept_names.COUNT
 10                          || ' elements now');
 11     DBMS_OUTPUT.PUT_LINE('dept_names''s type can hold a maximum of '
 12                           || dept_names.LIMIT || ' elements');
 13     DBMS_OUTPUT.PUT_LINE('The maximum number you can use with '
 14         || 'dept_names.EXTEND() is ' || (dept_names.LIMIT - dept_names.COUNT));
 15  */
 16* END;
 17  
 18  /
DECLARE
*
ERROR at line 1:
ORA-06502: PL/SQL: numeric or value error: character to number conversion error
ORA-06512: at line 5


SQL> 

Any help in this regard is appreciated ...
Thank you
Prakash P

Published by: prakash on April 29, 2012 05:42

EXISTS checks for the existence of an element, not a value. Since you're using VARRAY (btw, it is not recommended), your only choice is a loop through:

SQL> DECLARE
  2       TYPE dnames_var IS VARRAY(7) OF VARCHAR2(30);
  3       dept_names dnames_var := dnames_var('Shipping','Sales','Finance','Payroll');
  4  BEGIN
  5      for i in 1..dept_names.count loop
  6        if dept_names(i) = 'Shipping'
  7          then
  8            dbms_output.put_line('Exists ................');
  9            exit;
 10        end if;
 11      end loop;
 12  END;
 13  /
Exists ................

PL/SQL procedure successfully completed.

SQL>  

If you use the nested table, you can use MEMBER, SUMBULTISET, MULTISET EXCEPT:

SQL> DECLARE
  2       TYPE dnames_var IS TABLE OF VARCHAR2(30);
  3       dept_names dnames_var := dnames_var('Shipping','Sales','Finance','Payroll');
  4  BEGIN
  5      if 'Shipping' member of dept_names
  6      then
  7         dbms_output.put_line('Exists ................');
  8      end if ;
  9  END;
 10  /
Exists ................

PL/SQL procedure successfully completed.

SQL> DECLARE
  2       TYPE dnames_var IS TABLE OF VARCHAR2(30);
  3       dept_names dnames_var := dnames_var('Shipping','Sales','Finance','Payroll');
  4  BEGIN
  5      if dnames_var('Shipping') submultiset dept_names
  6      then
  7         dbms_output.put_line('Exists ................');
  8      end if ;
  9  END;
 10  /
Exists ................

PL/SQL procedure successfully completed.

SQL> DECLARE
  2       TYPE dnames_var IS TABLE OF VARCHAR2(30);
  3       dept_names dnames_var := dnames_var('Shipping','Sales','Finance','Payroll');
  4  BEGIN
  5      if dnames_var('Shipping') multiset except dept_names = dnames_var()
  6      then
  7         dbms_output.put_line('Exists ................');
  8      end if ;
  9  END;
 10  /
Exists ................

PL/SQL procedure successfully completed.

SQL> 

SY.

Tags: Database

Similar Questions

  • How to check the type of memory installed (ECC or not)?

    all!

    I have some servers Dell PowerEdge R420 and I want to upgrade memory, install more...

    How to check the type of memory installed (ECC or not)?

    Dmidecode output here:

    Drive.google.com/.../View

    Hello.

    Unfortunately, we are not able to open the link you have provided. You can display information about your memory on the web iDRAC under hardware and memory interface. You see the type of error correction (ECC or Non ECC) within the information memory page. You can also view the same information on OpenManage Server Administrator and even make use of the memory part number to find out more information.

  • How to check if a table exists in the database or not?

    People,

    Hello. I use the server of Oracle 11 GR 1 material with Oracle Linux 5 database.

    My instance of database is named HRCS90, which the user access Id is MyName, and his identification of user SYS system.

    I have a few questions about user ID to access the PSRECDEL and PSROLEDEFN table in the HRCS90 database as below:

    SQL > select * from PSRECDEL;

    His output under the SYS user: table or view does not exist.

    His output under user myName: no selected lines. This means that the table THAT PSRECDEL exists, and myName user can access.

    SQL > select * from PSROLEDEFN;

    His output under SYS and MyName: table or view does not exist.

    My questions are:

    How to check if a table really exists in the instance of database HRCS90 or not?

    Thanks in advance.


    If a table is present in the database, it must be present in DBA_OBJECTS. If he fell, he would be present in the TRASH. If he fell purged, it is not available in the database, Cant it confirm you this object is not in the database? See a little test here

    SQL > CREATE TABLE TESTTAB (ID);

    Table created.

    SQL >

    SQL > SELECT MASTER, OBJECT_NAME FROM DBA_OBJECTS WHERE OBJECT_NAME = 'TESTTAB.

    OBJECT_NAME OWNER

    ------------------------------ ---------------------------------------------

    SCOTT TESTTAB

    SQL >

    -Drop table (without purging. So now, it will be in the recyclebin)

    SQL > DROP TABLE TESTTAB;

    Deleted table.

    SQL >

    SQL > SELECT * FROM DBA_RECYCLEBIN WHERE ORIGINAL_NAME = "TESTTAB;

    OBJECT_NAME ORIGINAL_NAME OWNER

    ------------------------------ ------------------------------ --------------

    SCOTT BIN$ 8LKloIv3SYWA0WJ33GS + Aw == $0 TESTTAB

    Now see this case when you use PURGE. If it won't move the table to the trash. First of all I am clear the existing dba_recyclebin to the user entries. Then I'm falling table using purge.

    SQL > PURGE TABLESPACE USERS USER SCOTT.

    Purged tablespace.

    SQL >

    SQL > SELECT * FROM DBA_RECYCLEBIN WHERE ORIGINAL_NAME = "TESTTAB;

    no selected line

    SQL > CREATE TABLE TESTTAB (ID);

    Table created.

    SQL >

    SQL > SELECT MASTER, OBJECT_NAME FROM DBA_OBJECTS WHERE OBJECT_NAME = 'TESTTAB;

    OBJECT_NAME OWNER

    ------   ----------

    SYS TESTTAB

    SQL > DROP TABLE TESTTAB PURGE;

    Deleted table.

    SQL > SELECT * FROM DBA_RECYCLEBIN WHERE ORIGINAL_NAME = "TESTTAB;

    no selected line

    SQL > SELECT MASTER, OBJECT_NAME FROM DBA_OBJECTS WHERE OBJECT_NAME = 'TESTTAB;

    no selected line

    Since there is no entry to both DBA_OBJECTS and DBA_RECYCLEBIN. So that means that the particular object is not in the database.

  • How to check if a folder exists

    Hello

    I have a custom filter component:
    public class BarcodeMetadataFilter implements FilterImplementor{
    }
    I check here if the file exists in xCollectionId value, so I have two qustions:

    (1) should what service I call to check if the file exists?
    (2) how to call this service from the filter?

    Kuba

    Call a service such as COLLECTION_GET_INFO. Pass the parameter dCollectionID which must be xCollectionID. If you receive and error, it may mean that the folder does not exist. You should check the error (exception) to ensure what he wants to say to you is that the folder does not exist.

    http://docs.Oracle.com/CD/E23943_01/doc.1111/e11011/c07_folders.htm#i1082467

    The following blog post will show you how to run a service, a filter: http://jonathanhult.com/blog/2012/06/execute-a-service-from-a-java-filter/

    Jonathan
    http://jonathanhult.com

  • How to check if the link exists in the remote site

    Hi all:

    Guys please can you me if there is a way I can check if the link exists in the remote site? for example

    < cfif hyper link to www.mysite.com exists in www.remotesite.com >
    good... We will continue
    < cfelse >
    Please add link to www.mysite.com before continuing
    < / cfif >

    Is this possible... you have to use the spider? If yes how?

    Thanks guys,.
    A

    to develop the excellent suggestion of tclaremont:

    You can use refindnocase() to search the returned by cfhttp filecontent
    call us at:

    http://www.yourwebsite.com">
    method http://www.VisitorsPage' = 'GET' result = 'Foobar '.
    ResolveUrl = "yes" getasbinary = "auto" >

    <>
    foobar. StatusCode is "200 OK" >
    ] * href [^ >] *' & replace (myurl, '. ',' \.',)
    'all') & '[^>]*>(.*?) <\>', Foobar.filecontent) >
    link

    no link...


    ... connection error or the web page you requested does not exist...

    of course, if the www.VisitorsPage site is sneaky and has the link to
    your site code page, but hide it with css/javascript, it's going to
    be difficult to discover using regexp... better just go and watch their
    Web site...

    Azadi Saryev
    SABAI - Dee.com
    http://www.SABAI-Dee.com/

  • How to check if a value exists in a column

    Hello Experts,

    version: 10.1.0.5

    I am a novice in pl/sql programming. I am trying to create a procedure that checks if a value exists in a column and if it is not it inserts. Here's the procedure and errors,

    SQL > CREATE OR REPLACE PACKAGE BODY manr.audit_pkg

    2 PROCEDURE audit_proc (number of p_sessionid, p_username VARCHAR2, date of the p_date) IS

    3 BEGIN

    4 If p_sessionid not in (select manr.audit_history sessionid)

    5. can

    6 INSERT INTO manr.audit_history VALUES (p_sessionid, p_username, p_date);

    7 validation;

    8 end if;

    9 END;

    10 END audit_pkg;

    11.

    WARNING: The body of a Package created with compilation errors.

    SQL > show error

    PACKAGE BODY HÉLÈNE errors. AUDIT_PKG:

    LINE/COL ERROR

    -------- -----------------------------------------------------------------

    4/1 PL/SQL: statement ignored

    4/22 PLS-00405: subquery not allowed in this context

    Could you please tell me where I'm wrong. Thanks for your help.

    Rocky

    Hello

    If p_sessionid not in (select manr.audit_history sessionid)

    Try:

    .....

    Select count (*) in the v_sessionid of manr.audit_history

    where sessionid = p_sessionid;

    If v_sessionid > 0 then

    .....

    on the other

    ....

    end if;

    Ziut

  • How to check if a node exists in the XML file?

    I was asked to program a method to import data from xml files in our Coldfusion 8 Web site, I am new to the use of XML.

    My method worked however I encountered the following error:

    Element NETWORKORDER. SECONDARYADDRESS. CONTACTNAME is undefined in MYDOC.

    Investigation on the node in the XML file was not present.

    Is there a method I can use to resolve this error by checking if a node exists in the xml file, which works with my current code below?

    <!--> reading XML file
    < cffile action = "read" file = "D:\website\XML\#FileName#" variable = "myxml" >
    < cfset mydoc = XmlParse (myxml) >

    <!--> to extract data from the XML of NDS file
    < cfset aPrimaryContactName =(#mydoc.NetworkOrder.PrimaryAddress.ContactName#) >
    < cfset aPrimaryContactNumber =(#mydoc.NetworkOrder.PrimaryAddress.ContactNumber#) >
    < cfset aPrimaryContactNumber = tostring(#mydoc.NetworkOrder.PrimaryAddress.ContactNumber#) >
    < cfset aPrimaryContactAddressLine1 =(#mydoc.NetworkOrder.PrimaryAddress.line1#) >
    < cfset aPrimaryContactAddressLine2 =(#mydoc.NetworkOrder.PrimaryAddress.line2#) >
    < cfset aPrimaryContactAddressLine3 =(#mydoc.NetworkOrder.PrimaryAddress.line3#) >
    < cfset aPrimaryContactAddressLine4 =(#mydoc.NetworkOrder.PrimaryAddress.line4#) >
    < cfset aPrimaryContactAddressLine5 =(#mydoc.NetworkOrder.PrimaryAddress.line5#) >
    < cfset aPrimaryContactCity =(#mydoc.NetworkOrder.PrimaryAddress.City#) >
    < cfset aPrimaryContactPostcode =(#mydoc.NetworkOrder.PrimaryAddress.PostalCode#) >
    < cfset aPrimaryContactCounty =(#mydoc.NetworkOrder.PrimaryAddress.CountrySubdivision#) >
    < cfset aPrimaryContactCountryCode =(#mydoc.NetworkOrder.PrimaryAddress.CountryCode#) >
    < cfset aPrimaryContactCountry =(#mydoc.NetworkOrder.SecondaryAddress.Country#) >
    < cfset aSecondaryContactName =(#mydoc.NetworkOrder.SecondaryAddress.ContactName#) >
    < cfset aSecondaryAttentionOfName =(#mydoc.NetworkOrder.SecondaryAddress.AttentionOfName#) >
    < cfset aSecondaryContactNumber =(#mydoc.NetworkOrder.SecondaryAddress.ContactNumber#) >
    < cfset aSecondaryContactAddressLine1 =(#mydoc.NetworkOrder.SecondaryAddress.line1#) >
    < cfset aSecondaryContactAddressLine2 =(#mydoc.NetworkOrder.SecondaryAddress.line2#) >
    < cfset aSecondaryContactAddressLine3 =(#mydoc.NetworkOrder.SecondaryAddress.line3#) >
    < cfset aSecondaryContactAddressLine4 =(#mydoc.NetworkOrder.SecondaryAddress.line4#) >
    < cfset aSecondaryContactAddressLine5 =(#mydoc.NetworkOrder.SecondaryAddress.line5#) >
    < cfset aSecondaryContactCity =(#mydoc.NetworkOrder.SecondaryAddress.City#) >
    < cfset aSecondaryContactPostcode =(#mydoc.NetworkOrder.SecondaryAddress.PostalCode#) >
    < cfset aSecondaryContactCounty =(#mydoc.NetworkOrder.SecondaryAddress.CountrySubdivision#) >
    < cfset aSecondaryContactCountryCode =(#mydoc.NetworkOrder.SecondaryAddress.CountryCode#) >
    < cfset aSecondaryContactCountry =(#mydoc.NetworkOrder.SecondaryAddress.Country#) >

    Since you already have the XML parsed in a document, the easiest is to use xmlSearch(). Take a look at the doc, it is pretty easy to use. Something as simple as:

    To the most complex as:

    And in both cases:

    Read the doc and google is your friend "coldfusion xmlsearch.

  • How to check if a field exists in an if statement

    Hello

    I have several documents that are made up of a number of different areas of digital signature.

    Drawings may have fields of digital signature of Rev 0 up to 6 Rev.

    The script will move the existing digital signature fields to the right.

    I need to include an if statement to check if a particular field exists on the document, and if so to move the field.

    If the field does not exist then will not, it is the part of the script that I have a problem with.

    Error: b has no properties

    Can someone please help change the part of the script which is If (b! = null) / / check if the field exists - this part of the script does not work

    I like to keep a script and it not crack upinto several scripts, where the if statement to check if a field exists.

    The script is the following:

    Moving fields to the right

    var b = this.getField ("Chk R0");
    If (b! = null) / / check if the field exists

    aRect var = b.rect;
    aRect [0] += 39;
    aRect [2] += 39;
    b.Rect = aRect; Update the original form field

    var c = this.getField ("of the App R0");
    If (c! = null);
    aRect var = c.rect;
    aRect [0] += 39;
    aRect [2] += 39;
    c.Rect = aRect; Update the original form field

    var d = this.getField ("Proj App R0");
    If (d! = null);
    aRect var = d.rect;
    aRect [0] += 39;
    aRect [2] += 39;
    d.Rect = aRect; Update the original form field


    e var = this.getField ("Chk R1");
    If (e! = null);
    aRect var = e.rect;
    aRect [0] += 39;
    aRect [2] += 39;
    e.Rect = aRect; Update the original form field

    var f = this.getField ("Design App R1");
    If (f! = null);
    aRect var = f.rect;
    aRect [0] += 39;
    aRect [2] += 39;
    f.Rect = aRect; Update the original form field

    var g = this.getField ("Proj App R1");
    If (g! = null);
    aRect var = g.rect;
    aRect [0] += 39;
    aRect [2] += 39;
    g.Rect = aRect; Update the original form field


    var h = this.getField ("Chk R2");
    If (h! = null);
    aRect var = h.rect;
    aRect [0] += 39;
    aRect [2] += 39;
    h.Rect = aRect; Update the original form field

    var i = this.getField ("Design App R2");
    If (I! = null);
    aRect var = i.rect;
    aRect [0] += 39;
    aRect [2] += 39;
    i.Rect = aRect; Update the original form field

    var j = this.getField ("Proj App R2");
    If (j! = null);
    aRect var = j.rect;
    aRect [0] += 39;
    aRect [2] += 39;
    j.Rect = aRect; Update the original form field

    var k = this.getField ("Chk R3");
    If (k! = null);
    aRect var = k.rect;
    aRect [0] += 39;
    aRect [2] += 39;
    k.Rect = aRect; Update the original form field

    var l = this.getField ("Design App R3");
    If (l! = null);
    aRect var = l.rect;
    aRect [0] += 39;
    aRect [2] += 39;
    l.Rect = aRect; Update the original form field

    var m = this.getField ("Proj App R3");
    If (m! = null);
    aRect var = m.rect;
    aRect [0] += 39;
    aRect [2] += 39;
    m.Rect = aRect; Update the original form field


    var n = this.getField ("Chk R4");
    If (n! = null);
    aRect var = n.rect;
    aRect [0] += 39;
    aRect [2] += 39;
    n.Rect = aRect; Update the original form field

    var o = this.getField ("Design App R4");
    If (o! = null);
    aRect var = o.rect;
    aRect [0] += 39;
    aRect [2] += 39;
    o.Rect = aRect; Update the original form field

    var p = this.getField ("Proj App R4");
    If (p! = null);
    aRect var = p.rect;
    aRect [0] += 39;
    aRect [2] += 39;
    p.Rect = aRect; Update the original form field
    var q = this.getField ("R5 Chk");
    If (q! = null);
    aRect var = q.rect;
    aRect [0] += 39;
    aRect [2] += 39;
    q.Rect = aRect; Update the original form field

    var r = this.getField ("Design App R5");
    If (r! = null);
    aRect var = r.rect;
    aRect [0] += 39;
    aRect [2] += 39;
    r.Rect = aRect; Update the original form field

    var s = this.getField ("Proj App R5");
    If (s! = null);
    aRect var = s.rect;
    aRect [0] += 39;
    aRect [2] += 39;
    s.Rect = aRect; Update the original form field


    var t = this.getField ("Chk R6");
    If (t! = null);
    aRect var = t.rect;
    aRect [0] += 39;
    aRect [2] += 39;
    t.Rect = aRect; Update the original form field

    var u = this.getField ("Design App R6");
    If (u! = null);
    aRect var = u.rect;
    aRect [0] += 39;
    aRect [2] += 39;
    u.Rect = aRect; Update the original form field

    v var = this.getField ("Proj App R6");
    If (v! = null);
    aRect var = v.rect;
    aRect [0] += 39;
    aRect [2] += 39;
    v.Rect = aRect; Update the original form field

    You must place brackets around each if the block of code:

    If (c! = null) {}

    aRect var = c.rect;

    aRect [0] += 39;

    aRect [2] += 39;

    c.Rect = aRect; Update the original form field

    }

  • How to check if a numeric value is around or not?

    Hello

    A form in LiveCycle Designer ES4, how to check (at the exit of field), if a numeric value is around or not?

    Hello

    You can verify if the rawValue contains a ', 'or'. ' using indexOf

    like the following

    If (NumericField1.rawValue.toString (.indexOf(","))! = - 1 |) NumericField1.rawValue.toString (.indexOf("."))! = -1) {}

    This is not an integer

    }

    Hope this will help you

  • How to check the slider back row contains data or not

    Hi all


    How to check whether or not the cursor returned row contains data in one of its field.


    Thank you and best regards,
    Prakash P

    Use ROWCOUNT %
    Use % NOTFOUND

    example of

    DECLARE
    
       id    number;
       desc varchar2(10);
       CURSOR cursor_one IS
          SELECT
              id, desc
          FROM
              table;
    BEGIN
       OPEN cursor_one;
       LOOP
          FETCH cursor_one INTO id, desc;
          EXIT WHEN cursor_one%ROWCOUNT > 20 OR cursor_one%NOTFOUND;
       ...
       END LOOP;
       CLOSE cursor_one;
    END;
    
  • How to check a timertask calendar is still active or not?

    Hello

    I created the following code:

    class StateTracker extends TimerTask
    {
    Minu private;
            
    public StateTracker()
    {
    Timer = new Timer();
    Timer.Schedule (this, 5000, 150000); begins after 5seconds Repeat task every 150 seconds
    }

    public void run()

    ....

    }

    The code runs allright, unless, in certain circumstances, the task stopped after a few periodic race (I suspect is disconnected network). Y at - there any API I could use to check whether the calendar is still active or not.

    I would like to reschedule the timertask if the original schedule was disrupted.

    timertasks should not be used for the treatment of blocking. I would say to put the actual work load in an own thread.

    as long as the enforcement code is surrounded by exception handling, execution continues. There is no method to check if the timer is running correctly.

  • How to check if a file exists?

    Hi guys.

    I am running javascript in Acrobat .pdf file created in LiveCycle Designer.

    I need to check in silence if an external file outside the open document (C:\something\something\something.pdf) exists or not.

    I understand that I'm only able to do this as a function of confidence within a script to the folder level javascript.  I am familiar with those.   The problem is, I don't know what function I should use and will have a difficult time in the research on it.

    Try to use: doc.exists?

    Try to open the document with a function and catch the error if the file does not exist?

    I'm not so sure that if I just spend my path as a string, say "/ C/Something/something/something.pdf" or if I should first deal with the file as an object like:

    var myFile = new File("/C/Something/something/something.pdf") (which was not in Acrobat... don't try to run it as a function of confidence)

    Please notify.

    Thank you!

    I finished this figure myself.

    XFA/JavaScript in my paper, I call a custom function that I have written and pass a string (or a string variable containing) my file path for that I would like to check:

    if(typeof(MJS_FileExists) == "function") {
        try {
            if(MJS_FileExists("/C/something/somethingelse/filetocheckfor.pdf") == true) {
                xfa.host.messageBox("file is there");
            } else {
                xfa.host.messageBox("file is NOT there");
            }
        }
        catch(e) {
            app.alert("Processing error: "+e)
        }
    }
    

    The function I call is a folder level javascript.   You have to maybe do some Googleing on how and where to install them.   In the my file .js file real javascript level where the function is housed I use:

    var MJS_FileExists = app.trustedFunction(function(filename) {
        app.beginPriv();
        var existingDoc = false;
        try {
             var checkDoc = app.openDoc(filename);
             checkDoc.closeDoc();
         existingDoc = true;
        } catch(e) {
         existingDoc = false;
        }
        return existingDoc;
        app.endPriv();
    });
    

    It took me a lot of trial and error.  It sucks there is not a lot of in on the internet on how to do it via Acrobat / Live Cycle.   Hope this helps someone else.

  • How to check if an element exists

    Hello

    I have a code as shown below. My problem is that I put that if the cursor exists, then allow the user to drag and change the size of the image on that where it clicks. If the cursor is not there, create an If you click on "image".

    The application works if I start it up and click on an image, but if I have mousewheel on the slider and done disappears, even if I click on the image, the cursor does not.

    Could someone give me some ideas about what I've done wrong here?

    Thanks in advance.

    Alice

    Hello

    I found a get autour by checking if the value of the slider is 0 and if she is, recreate the slider, and that seems to work now. If anyone is interested, here is the code:

  • How to check if a file exists on target RT

    Hello

    I wonder y at - there a way to check if there is a file on target RT? Thank you!

    Tom

    You mean from the host? You can use the FTP functions. "FTP Get path Info.vi" returns error code 550 if a file is not but a code of success if he finds. You can also check the output of "path info". The type will tell you unknown if there isn't but the file if it is there.

  • How to check if the member exists in essbase cube using IF cond.

    Hello

    I have a requirement to validate certain accounts and whether or not they exist and use in Calc. We have some list of accounts per cent who have certain amounts of pilot. If the user selects the parent account, it must automatically calc with percentage accounts to generate the values for all of its children.

    The issue is that we have many accounts and many accounts per cent, is not that all accounts have per cent accounts. That's the problem.

    When I fixer to fix a high level of accounts, get this error message that says that the member exists and return the empty member set.

    Formula for [Revcnt] runtime error (line 49): attempt to cross a member function [@X] null

    The same even if I use the Emptymembersets value;

    The script is down,

    Fix (@relative({SelectAccount},0),

    ("Revcnt"
    IF (@ISMBR (@Member (@Concatenate (@Name (@CURRMBR ("Account")), "%"))

    Condition;

    ENDIF);

    ENDFIX

    Y at - it a command to validate if the member exists in the cube or not?

    We use 11.1.2.1 Essbase on Windows 64-bit.

    What error do you get?

    This is an example (I wrote this in basic from the example, create a member 100% 10)

    FIX(@RELATIVE("Product",0),"Actual", "New York","Jan")
    Sales(
    IF(@MATCH("Product",@NAME(@CONCATENATE(@CONCATENATE(@SUBSTRING(@NAME(@CURRMBR("Product")),0,3),"%"),@SUBSTRING(@NAME(@CURRMBR("Product")),4,6))))->"New York" == #Missing)
    1;
    ENDIF
    )
    ENDFIX
    

    I got 1 100% 10-> Jan-> sale-> "New York"-> real

Maybe you are looking for

  • Change of keyboard USB external Apple connected to the Macbook Pro

    Dear ladies and gentlemen, I need your help. I have a MacBook Pro running the last Sierra 17 "MacOS. I bought a 27 "Thunderbolt display and wanted to use a full external keyboard USB Apple (with the help of the digital keys). I have connected to the

  • The most recent update of Skype broke echo cancellation

    Hello I've been using Skype for years now with a webcam, a microphone and speakers. Sometimes during calls the other person would hear themselves (it is to be expected that the mic picks up the sound input of the speakers), but it was still deleted b

  • Equium L20 - no driver for USB and wireless adapter

    I have instaled new Windows XP and that you do not have drivers for my Wireless Network Adapter Atheros AR5005G and my USB 2.0 if someone could help me from where I can download them

  • usb 3.0-10 Windows ThinkPad docking station

    Hello I just upgraded to windows 10 and my docking station seems to have stopped working. Suspected, it could be the driver so envisaged for download version 10 of Windows... which doesn't seem to exist! Can someone help / had the same problem? Thank

  • All the data disappeared after the installation of updates! Help!

    Hoping someone can help with thisLast night I installed updates KB961371, 973346 KB and KB 890830 for Vista Home Premium and they seemed to have been settled... my computer turns off fine. But when I started today and connected to my usual user, I go