ClearBlock command in an HBR

I have the following calc script, which validates. I want to move it to an HBR (enhanced calc script) so I can add prompts, but I get a syntax error on "ClearBlock Empty" command. The error is "Encountered Empty, was expecting, All, Dynamic..." Looking at HBR documentation, it appears that the ClearBlock in HBR's is different then in Calc Scripts. We are using 9.3.1.1.
What the calc is trying to do is first clear any blocks that I created using the "Assessment Block Creation" account, and then clear any other empty blocks that users might have created.
I know that I shouldn't be creating extra blocks to start with, but the nature of the data (allocations based on the cummulative results of other allocations) and number of intersections make the method of creating extra blocks and then going back and cleaning up the fastest way.
Any ideas on how to use the "ClearBlock Empty" in an HBR?
Thanks in advance.
SET UPDATECALC OFF;
SET CALCPARALLEL 4;
SET AGGMISSG ON;
FIX("Local", "HSP_InputValue", @IDescendants("ENTITY",0), @Relative("RCVG DEPT", 0), @RELATIVE ("Tot_Snd_Pool", 0),
@Relative("Tot_Rec_Pool",0) ,@IDESCENDANTS("TOTAL_CC"), "Assessment Block Creation")
ClearBlock All;
ENDFIX;
CLEARBLOCK EMPTY;

Does it just fail to validate or does it fail to run?
I do not believe HBR validates on execution it just sends it right to Essbase after it has performed it's variable updates.
I have seen other commands that were valid in Essbase that HBR syntax checking didn't like.
Regards,
-John
Edited by: Jbooth on Apr 1, 2009 1:36 PM

Similar Messages

  • How to clean up of empty blocks in a Essbase database.

    Is there a way or a script that I can write to get a list of all empty block in a calced block storage application? For example I would like to find out which generation 3 blocks are empty (after aggregating) in a given dimension, extract this list onto a text file so I can delete these from the outline using a parent child dim build.<BR><BR>If you know of an alternate way to achieve the same result your assistance would be greatly appreciated.<BR><BR>Cheers.

    The simplest way to clean up empty blocks is to defrag the database by doing a level 0 export, clear the database, then reload and reconsolidate. You can automate this process with MaxL and schedule it run during off hours.<BR><BR>As far as a way to run a report that will show you data blocks at different sparse combinations with no data in them, Essbase does not have that functionality built in. Perhaps you could write something custom if you really wanted to get into it, but I think the effort would be great for something of little value. To get a report showing empty blocks so you could then write a calc script to fix on them and use a CLEARBLOCK command to get rid of them would take a lot of time. The defrag process I described above is pretty quick on most databases.<BR><BR>The one thing to watch out for with the method I described above is if you are inputing data to upper level blocks and not using calc scripts to allocate the values to base level members. Many would consider this bad practice, including me, and would say you should not do it. But if you are and you don't want to change, then make sure you are doing full database exports and not just level 0.<BR><BR>HTH

  • Clearing data

    Hi
    I am
    using cleardata commond ,clearing the data values for the previous years
    what is the use of clearblock command , where can i use that?
    what is the benfit of doing it .

    Clearblock:
    - Will remove blocks as long as you are not fixed on dense members
    - Is somewhat less flexible to use based on syntax
    Cleardata:
    - Will never remove blocks (on it's own)
    - Is somewhat more flexible
    In practice, there are few situations where your first thought will be to use the clearblock method. Instead, you will be thinking about clearing data and hence only switch over to clearblock if you think it will net you something (and it can, but usually doesn't do much for you).
    Of course, on those occasions where it does do something for you, it's fairly obvious. One example is to clear the upper level blocks so you can do a more efficient consolidation calc.
    Edited by: DougWare on Sep 24, 2008 6:53 PM

  • DATACOPY with partitioned data source

    Hello,
    I am actually working on the Hyperion Essbase EPM 11.1.2
    I am trying to perform a Datacopy command in a HBR.
    Data source are partitioned with a transparent partition.
    This datacopy do not work. The HBR is really fast but when I retrieve data no data are copied.
    I am wondering if this is possible to perform a datacopy command, in a HBR with partitioned data source.
    I have managed to perform this datacopy throw a HBR using the command:
    SET CREATEBLOCKONEQ
    Target = Source;
    But this method is really long.
    Thanks for your answer,
    Arthur.

    Hi
    Make sure that you have relevant Role & Authorization at Quality/PRS.
    You have to Transport the Source Cube first and then Create a Generate Export Data Source in QAS. Then, replicate data sources for BW QAS Soruce System. Make sure this replicated Data Source in QAS. Only then can transport new update rules for second cube.
    Hope it helps and clear

  • HBR : Specify the Currency Type in a CCONV command

    Hi everybody,
    I am working on an Essbase/Planning application with a currency database.
    I am trying to set a currency conversion in a HBR.
    The problem is that the CCONV command doest not work if I specify the Currency type. (In my example ACT2009)
    DATACOPY "Entity Currency" TO "Conso Euro";
    FIX("Conso Euro")
    CCONV "ACT2009"->"EUR";
    ENDFIX
    If I don’t specify the Currency type, this is working using the Default currency type member. (Set in the Cube Properties, sheet Currency)
    Does anybody knows, how I could solve this problem and specify in the HBR the Currency type I want to use??
    Thanks.

    Are you somehow using the Essbase currency conversion option?
    I'm not aware of that working with Planning, unless it's somehow gone into 11.1.2 which I am pretty sure it has not.
    Planning has it's own, not so fantastic currency conversion functionality. I personally roll my own with something that looks very similar to Essbase's currency partition.
    I have never tried (you know, I don't know why) to use Essbase's native currency conversion approach -- perhaps I have been overlooking a fantastic approach?
    If it doesn't work with Planning (I can think of a bunch of reasons why not, all focusing on the Database->Refresh menu), you cannot use CCONV. But please, prove me wrong, as the more I think about it, the more I kick myself for never trying it.
    Regards,
    Cameron Lackpour

  • Security on HBR using Command Line

    Is it possible to setup and remove HBR security using command line? There is a command line utility to launch HBRs, Is there a similar way to update security programmatically, rather than manually changing it.

    Unfortunately you can't set the security by command line, in V11 you can use LCM to export/import business rules which contain provisioning but this a is a full rule and it is not so clever at overwriting if the rule already exists.
    If you are on V11 and using calc manager then you can use a utility to import the security.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Maxl command for HBR

    Hi
    Is there any Maxl command which helps assigning access rights to Business Rule?
    Thanks
    Shyam

    Maxl does not interact with business rules,unfortunately there is no command line functionality for setting access permissions with classic business rules.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Use of EXCLUDE in HBR

    Hi All,
    I was wondering if anyone knows if the EXCLUDE command has definitively been left out of HBR. We are using v11.1.1.3.
    Thanks,
    Brian

    Unfortunately, it doesn't work for me either. I too have an 11.1.1.3 instance. I dunno about 11.1.2.
    You can (pretty much) get around EXCLUDE with a FIX and @REMOVE. Yes, it's not the same thing and it really ought to be there, but it's close.
    If it's any consolation, EXCLUDE appears to syntax check in Calculation Manager. If your need for EXCLUDE is great, perhaps that's an alternative?
    Regards,
    Cameron Lackpour

  • Calling Java API from HBR

    Hi guys,
    I’m trying to use Java API to update ASO cube from Planning forms. So there are several steps:
    1.     Planning form passes variables to HBR
    2.     HBR passes variables and calls Java CDF
    3.     CDF performs some operations and uses JAPI classes to update ASO cube.
    When I run CDF as runtime command or from JDeveloper/Netbeans if works fine. When I run CDF from HBR but do not use JAVA API methods it works too. But when I call CDF from HBR AND use JAPI methods it doesn’t execute JAPI methods. I do not receive any error; methods that use JAPI methods are simply not executed.
    Any ideas why it happens?
    Thanks,
    Dmitry

    Hi,
    Have you tried running it from an essbase calc script first and run the essbase server in the foreground (not as a service if you are on windows) then if you have any System.out.prints on errors or in your code they should be outputted to the window.
    It usually easier to get it running from a calc script first because you sometimes get better messaging than business rules.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • ClearBlock All

    It appears that clearing all data using an Essbase calc script with "ClearBlock All" causes a problem. Running a later "Calc All" never finishes and the database page file never diminishes in size after running the "ClearBlock All".Yet, manually selecting "Clear Data", "All" from Application Manager, DOES remove all blocks. The later "Calc All" calc scripts completes fine (In under 30 minutes), and, the page file indeed diminishes. (I believe is actually removed.)Has anyone run into this issue before?Essbase version 6.5.1 on NT 5.00

    Clearblock all will not reduce the page or index file sizes as Essbase appears to just flag the blocks as deleted without actually reducing the size of the page and index files. If you do a dense dimension restructure after the clearblock all, the page and index files will shrink as expected.The problem with your calc all may be that after doing the clearblock all, the database is very fragmented, so calcs take a long time to run. Defragmenting can be done via a dense restructure or export / clear / re-import as mentioned in other threads here.ESSCMD has a command which clears all the data: RESETDB (equivalent to the App Manager command you mentioned), but I don't know a calc script command to clearblocks and actually shrink the page and index files.

  • Clearblock All within a fix

    We running a fairly complex cube for a mid size US company and have experienced that the Clearblock All command only clears some blocks from the database when using it inside a sparse fix (we are using it to clear data and blocks before a reload of data). <BR><BR>Now, I've read a few topics on this board about this, but none has really had a satisfying answer. I can understand if it doesn't clear all blocks if it is within a dense fix, but a sparse? And how come it only clears certain blocks? <BR><BR>Does anyone have an idea on what might be causing this and how to work around it?<BR><BR>Thanks in advance.

    Steve,<BR><BR>I think that it is very good practice to clear the data before you do the re-load for the following reasons:<BR><BR><BR>1. Loading using the Replace command works fine PROVIDED that all the data that was previously loaded is included in the new load. If, for any reason, there is a change of a member (e.g. due to an error), tthen teh data won't be removed by the re-load..<BR><BR>LOAD1<BR><BR>Company A, Account A, Market A Value 10<BR>Company A, Account A, Market B Value 10<BR>Company A, Account A, Market C Value 10<BR><BR><BR>so total is 30<BR><BR>LOAD 2<BR><BR>Company A, Account A, Market A Value 10<BR>Company A, Account A, Market B Value 10<BR>Company A, Account A, Market D Value 10<BR><BR>Total here would be 40, because the third line from LOAD1 would not be overwritten.<BR><BR>2. Loading using ADD is better, because it covers any instance that may occur where there are 2 or more lines that are identical (with different monetary values) and are VALID.<BR><BR>Whilst it may take more time, I believe that Clearing the blocks, and then re-loading provides me with a degree of insurance that is very useful to have, and is worth teh extra time involved in running the Clear block process.<BR><BR>HTH<BR><BR>

  • Logical command in ABAP.....Urgent

    Hi,
      i am pretty new using ABAP program so i neeed help urgently. i am trying to move a file on the application server from one directory to the other and i was using the open dataset function to do that. but the file i am trying to move is pretty big and because i am using internal table to store, it is causing problems with the space.
      i have consulted the basis guys and they have managed to create a logical file for copying from one directory to the other on the application server. to help you furthter. i am enclosing the mail sent to me.
    I have created a logical command which should copy the file from one location to the other but you need to pass it the source dir and file name and the destination dir and file name.
    The logical command is ZCOPY and uses cmd /c copy
    Copies one or more files to another location.
    COPY [/V] [/N] [/Y | /-Y] [/Z] [/A | /B ] source [/A | /B]
         [+ source [/A | /B] [+ ...]] [destination [/A | /B]]
      source       Specifies the file or files to be copied.
      /A           Indicates an ASCII text file.
      /B           Indicates a binary file.
      destination  Specifies the directory and/or filename for the new file(s).
      /V           Verifies that new files are written correctly.
      /N           Uses short filename, if available, when copying a file with a
                   non-8dot3 name.
      /Y           Suppresses prompting to confirm you want to overwrite an
                   existing destination file.
      /-Y          Causes prompting to confirm you want to overwrite an
                   existing destination file.
      /Z           Copies networked files in restartable mode.
    The switch /Y may be preset in the COPYCMD environment variable.
    This may be overridden with /-Y on the command line.  Default is
    to prompt on overwrites unless COPY command is being executed from
    within a batch script.
    the problem now is i have no idea about how to use the logical command. can any one help me.
    Thank you,
    Ravi.

    If memory is not an issue, then there should be no reason why this should not work.
    report zrich_0001.
    parameters: d1 type localfile default '/usr/sap/TST/SYS/Data1.txt',
                d2 type localfile default '/usr/sap/TST/SYS/Data2.txt'.
    data: itab type table of string with header line.
    start-of-selection.
    * Read old file
      open dataset d1 for input in text mode.
      if sy-subrc = 0.
        do.
          read dataset d1 into itab.
          if sy-subrc <> 0.
            exit.
          endif.
          append itab.
        enddo.
      endif.
      close dataset d1.
    * Write to new file
      open dataset d2 for output in text mode.
      loop at itab.
        transfer itab to d2.
      endloop.
      close dataset d2.
    * Delete the old file
      delete dataset d1.
    Regards,
    Rich Heilman

  • Shell commands in applescript noob

    Hi all this is my first post in these forums and I come seeking help with a certain script I'm writing for my current college job. The purpose of the script is to install creative cloud from a server and this is as far as I've got. First I can get as far as setting the correct directory in the server by doing:
    do script "cd /Volumes/applications/Mac/'Adobe Creative Cloud'/'Enterprise - enduser'/Build"
    now when I press run the terminal screen pops up just fine with no errors in the right directory. However I've been reading up that to do other commands in the same shell I must do do shell script. When doing this however terminal doesn't do...anything. The reason why I was trying this is because my next command would be initiating the install which is the command:
    "installer -verbose -pkg 'enterprise_Install.pkg' -target /" with adminitrator privilages
    Now my question is how would formulate this within applescript? Thanks.

    do shell script "cd /Volumes/applications/Mac/'Adobe Creative Cloud'/'Enterprise - enduser'/Build ;  installer -verbose -pkg 'enterprise_Install.pkg' -target / with administrator privilages"
    You got the double quote in the wrong place.
    do shell script "cd /Volumes/applications/Mac/'Adobe Creative Cloud'/'Enterprise - enduser'/Build ;  installer -verbose -pkg 'enterprise_Install.pkg' -target / " with administrator privilages
    It is easier to diagnose problems with debug information. I suggest adding log statements to your script to see what is going on.  Here is an example.
        Author: rccharles
        For testing, run in the Script Editor.
          1) Click on the Event Log tab to see the output from the log statement
          2) Click on Run
        For running shell commands see:
        http://developer.apple.com/mac/library/technotes/tn2002/tn2065.html
    on run
        -- Write a message into the event log.
        log "  --- Starting on " & ((current date) as string) & " --- "
        --  debug lines
        set unixDesktopPath to POSIX path of "/System/Library/User Template/"
        log "unixDesktopPath = " & unixDesktopPath
        set quotedUnixDesktopPath to quoted form of unixDesktopPath
        log "quoted form is " & quotedUnixDesktopPath
        try
            set fromUnix to do shell script "sudo ls -l  " & quotedUnixDesktopPath with administrator privileges
            display dialog "ls -l of " & quotedUnixDesktopPath & return & fromUnix
        on error errMsg
            log "ls -l error..." & errMsg
        end try
    end run

  • Issue to write/execute AT-commands for a 3G modem

    Dear community,
    For the past month, I'm searching for some help on this topic without success, "you are my last hope"
    After modification of the PPP parameters under network preferences (according the clear archive from apple support on this topic), the terminal windows is poping up without any problem.
    Then... I can't write anything on this terminal !!! The only actions I'm able to perform is cancel or continue button. I also press the Return key as apple support mentioned (issue for 10.2 or earlier), nothing.
    The test was done on a early 2010 macbook 13 and the same on a mid 2010 macbook 15, the same issue.
    - Am I doing something wrong or mac os restricted this com protocol?
    - Is there a way to command the modem trough the main computer terminal (which is working properly)?
    Thank you in advance!

    You've probably solved this problem long ago, but I came across this thread a couple weeks ago when trying to do the same and thought I post this .vi for future users.  This code is for a multitech MT5656ZDXV modem, but I think the AT commands are generic enough to be used with any voice modem. Hardware configuration requires and audio cable running from the PC speaker to the modem mic port.  Also, I had to use a Konnex Office Konnector telephone line A/D which required me to manually pick up a handset; the software prompts the user to do this.  Fancier A/Ds should eliminate the need for this and I have one on order.  If you have an analog phone line then there should be no need to use an A/D or manually pick up the phone.
    Attachments:
    modem_speakerphone.vi ‏21 KB
    Sound Player.vi ‏17 KB

  • Manage-bde command is not generating recovery key on network location

    Hi,
    I am trying to save the recovery key to the network share location and start up key in the USB drive while enabling bit locker.When the OS drive gets encrypted, the default folder for recovery password shows that it contains 1 file but not getting anything
    inside it when i checked the properties of the folder.
    i have already changed the group policy as "choose default folder for recovery password".
    I am using the command to enable the bit-locker as "manage-bde.exe -on C: -rk
    <network location to save recovery key> -sk <location of the USB drive>
    -rp to enable the bit-locker. It is generating the start up key in the USB but not the recovery key on network share.
    Can anyone suggest what i am missing or what else i should do to generate the recovery key on network share.
    Does manage-bde process be able to save the recovery key on network share or it hand over to some other process to perform this task.
    Thanks
    Gaurav Ranjan

    I got you Manoj, but I want to ask you one think that what if i lost the startup  key or my USB stick. I have my recovery key on the network share.  In order to log-in my machine I need the recovery password. From where i will get the recovery
    password(48 digit). Surely from the recovery key on the network share. So how can i get the recovery password if only we have the recovery key.
    I know both are different in context. Both are two different thing. I have lost my USB stick along with the recovery password and I have to log-in my machine. How can i do that i want to know that. Do there is any method to get recovery password from the
    recovery key on network share. I have retrieved the recovery password when the recovery key in AD. But this time it is on network share.
    Also one think which I need to solve is that the manage-bde -protectors -add command creates a new .bek file along with the older one. So the .bek file which get shown at the time of the start up of the machine is different from that stored in the network.
    So i am getting confused as which .bek file is for which machine and hard to retrieve the password.
    Is there any method to store recovery key on network without the -protectors -add command line so that both the .bek file should be matched and can easily be known for indiviual machine in an OU. As if both the .bek files will be different it would be difficult
    to to retrieve the recovery password for the machines.
    Please do inform if you need some more information about the scenario if i missed something.
    Thanks
    Gaurav Ranjan

Maybe you are looking for