Using environmental variables in dataexport calc

I'm using 11.1.2.1, and I thought I'd try this fancy new feature of using environmental variables in a DATAEXPORT calc script.
I've played around quite a bit, and believe the following is true.
The environmental variables must be the full path (including file name), that the export will write to.
Assume the following:
$DATAPATH = C:\data
$FILEPATH = C:\data\export.txt
If you try to export to $DATAPATH, it will error because there is no file name associated with that path.
If you try to export to $FILEPATH, it will work just fine.
Doesn't this kind of defeat the purpose of using environmental variables if you need a different variable for each file name?
My hope was that it worked like this:
Assume the following:
$DATAPATH = C:\data
In our export calc, you could append values that are specific to that calc/app.
e.g.
For an App 1 Export:
DATAEXPORT "File" "|" $DATAPATH/App1/filename.txt;
For an App 2 Export:
DATAEXPORT "File" "|" $DATAPATH/App2/filename.txt;
Am I missing something here? Any input both confirming/denying the above is welcome.

The dataexport command is very fussy about the file path as you have found out it only works you place the full path/filename in a variable.
It is also possible to use substitution variables but once again I think you need to use the full path/filename - Re: MaxL with DATAEXPORT and passed parameters
Cheers
John
http://john-goodwin.blogspot.com/

Similar Messages

  • Conditional suppression using substitution variable in Hyperion financial r

    Hi all,
    Is there a way that I can suppress a column using substitution variable in hyperion financial reporting?
    For eg, i want to suppress the column if the value of the substitution variable curr_mnth = jun.
    Is there a way to do this? In conditional suprression dialog box, I dont find this option.
    Please suggest.
    Your response is appreciated.
    Thanks,
    Sirisha.

    Hi Sirisha
    In my earlier reply I think I may have mislead you as I thought that you could set the member name equal to that in a row/column and I've managed to get into a HFR studio session this morning and realised that the conditional suppression only allows you to suppress where member name = 'XXX' (specific text) so that doesn;t meet your requirement.
    Different people will have different ways of achieving what you want and everyones requirements are different. If it helps my preferred way of conditionally suppressing periodic data (for Planning/Essbase) is to add a dynamic calc account member called 'TP-Index' into the database, set up a formula so that each period returns a numeric value from 1 to 12 to match the fiscal/calendar year as required.
    Then in reporting bring the account and period dimensions into rows/columns so that you are able to retrieve data for the TP-Index account and the period as defined in your substitution variable. You can then choose how the suppression works based on a numeric value, commonly you may want to suppress if greater than, e.g. you have a multi-period report where your actual data is to June so you want to suppress everything from July onwards.
    I'm sure that a similar thing could be achieved in HFM as well if that is your underlying system instead of Essbase.
    Does that help?
    Stuart

  • SSIS Environmental Variables not working in BPC 7.5(MS) Data Manager

    Hi,
    We have an SSIS 2008 package that is retrieving variable values from Environmental Variables.  The package runs successfully when executed from DTExec, but fails when executing from a BPC 7.5(MS) Data Manager package.  Looking through logs we've been able to pinpoint the issue.  The issue is that the SSIS package is unable to retrieve variable values from Environmental Variables when running from Data Manager packages.  We tried using XML Configuration files to store variable values, but this did not work either when running the SSIS package from Data Manager.  Has anyone seen this before?  If so, what was the solution to resolving the issue?
    Thanks,
    Glenn Van Der Werff

    Hi Glenn,
    Can you set package variables in Data Manager script as a workaround?
    For example, here is how we set connection string:
    GLOBAL(DRILL_CN_STRING,Data Source=%SQLSERVER%;Initial Catalog=%DRILL_DB%;Provider=SQLOLEDB.1;Integrated Security=SSPI;Application Name=SSIS-BPC_Incremental_Oracle;Auto Translate=False;)
    DRILL_CN_STRING is a variable in our package and %<Parameter Name>% are parameters for that connection string.
    Regarding Env Variables and XML... there could be security related and/or Package ProtectionLevel issue when BPC system account.
    Hope that helps,
    Akim

  • Environmental variables as command line args

    Hello, all,
    I would like to pass an environmental variable as a command line argument for a java program.
    Example:
    java MyClass $MY_VARIABLE
    However, it actually passes "$MY_VARIABLE", and not the value of MY_VARIABLE. I know that I can use java -D(MY_VARIABLE=SOMETHING) and get it using System.getProperty ("MY_VARIABLE");
    However, I would prefer it the first way, actually passing the variable inside command line. Is there a way to do this?
    Thank you,
    Elana

    Nevermind... Error in my code... It works
    Thank you

  • Possible to use local variables in Calculation Manager

    Hi,
    I'm using calculation manager in EPMA for the first time. Have not found any function for using "local variables", i.e. variables that can be used for fixing on the current members a user has selected in a form. Do someone know if it is possible to use that functionality in calculation manager? And in that case, how do I find it?
    Thanks!
    Regards
    Mats

    Hi,
    I guess you are referring to local variables in Essbase Administration Console. When you are in calculation manager (System View), you can go to Tools->Variables. There you can create variables at application, database (global) or business rule level (local variable). You can use these in Business rules by placing the name in curly bracket {...}.
    The usage of the variables in the forms is the same as before.
    If however, what you meant to say by local variables is substitution variables, yes you can use them in Calc manager the same way you use in calc script.
    Cheers,
    Alp

  • Terminal issues with environmental variables

    I am having an issue with persisting environmental variables during a session. I am running an app that requires the sequential running of 3 scripts setenv.sh, build.sh, run.sh.
    The first script sets variables that are being used by the other scripts. The script just contains lines like
    "export ADVISOR_HOME=/Applications/Blaze/Advisor65;"
    if i add echo the variables name in the script they are set, but immediately after or with env they are gone.
    From my understanding (not much) these should persist as long as the window is open. Is there any setting that is being set in OS X that is sandboxing scripts? It would seem to be security-minded but is causing problems.
    Also is there any way to temporarily disable the requirement to prefix a command call with ./ in os x. Many of the included scripts are calling methods in the same directory and I am having to alter a lot of scripts to include ./
    Thanks in advance,
    walter

    walter deane wrote:
    I am having an issue with persisting environmental variables during a session. I am running an app that requires the sequential running of 3 scripts setenv.sh, build.sh, run.sh.
    The first script sets variables that are being used by the other scripts. The script just contains lines like
    "export ADVISOR_HOME=/Applications/Blaze/Advisor65;"
    if i add echo the variables name in the script they are set, but immediately after or with env they are gone.
    Do you mean you echo them from within the script and then they are gone after the script ends? That would be normal. If you want them to persist through the other scripts, you could combine the scripts. The problem is that you're setting them in one process and expecting them to persist in another process. Unless the second is a child of the first, that won't work. I think it would work if you executed the second two scripts from within the first script because they would then be children of the first process. Does that make sense? I'm not sure of the correct terminology here and I can't draw a tree which is what I want to do! Another option might be to source setenv.sh rather than running it (i.e. wouldn't need to be executable) - the same way the shell does when starting up, I think.
    From my understanding (not much) these should persist as long as the window is open.
    I don't think it has anything to do with windows. It is just when the process exits. If you set such variables at the command line, they'll persist until the window closes because they'll persist until the process exits which is usually when the window closes. At least, in the simplest cases. But it isn't the window staying open or not that's important. It's that everything else done in the window happens to inherit the environment from the parent process. In truth, this often isn't the case anyway, but I expect that's the source of the misunderstanding.
    Is there any setting that is being set in OS X that is sandboxing scripts? It would seem to be security-minded but is causing problems.
    Nothing special that I know of. There is stuff for something like this in Leopard but you'd have to enable it and I'm not sure it applies here.
    Also is there any way to temporarily disable the requirement to prefix a command call with ./ in os x. Many of the included scripts are calling methods in the same directory and I am having to alter a lot of scripts to include ./
    You can do this but it is extremely insecure. Essentially, you can add the current directory to PATH. (PATH=$PATH:./; export PATH) It would be much, much better - much, much safer - to edit the scripts. Can you not use sed to edit them? If there is some sort of pattern, there's no need to do it by hand.
    If this is an application you plan to share, you should certainly not consider changing PATH in this way unless you are aiming to produce an application with maximum destructive potential! If you don't plan to share, of course, it is your call!
    - cfr

  • Please please give the neat way to set environmental variables for tomcat

    Please forgive me to create a new post for this topic which have been created by many. i have configured tomcat and set enviromental variables in xp before, when i formatted my system everything washed out.
    i configured tomcat with the help of post in this community which have been clearly explained but i could nt trace that post nw.
    so do tell me how many environmental variables i should set with eg, earlier i have created four. i am badly needs to work in tomcat.
    note : i dont want to set using command prompt

    Mahesh_yeswecan wrote:
    i configured tomcat with the help of post in this community which have been clearly explained but i could nt trace that post nw. Your posting history is here

  • Environmental variables

    I'm having a problem i believe in my environmental variables. I have installed java1.4.2 version and am using the windows xp. I am able to run programs that i have compiled else where but am unable to compile my own programs that i have written on my pc. any help is greatly appreciated

    Did you add the Java's binary path on your Path system environment?
    For example,
    My computer -> right click -> properties -> details -> environment variables -> system environment variables -> Path -> edit
    add ;(semicolon) and something likeC:/jdk14.2/bin at the end of the line.
    Then check javac on the command prompt.
    Even though mine is Win2K, but I think it would be similar on WinXP.
    Hope this would help you.

  • Environmental variables Problems..

    We have installed REDHAT 32 bit LINUX 5.0 Enterprise Edition on a 32 Bit System,
    When we try to set environment variables for SAP via terminal window using export command the variable set once but when we reopen the terminal we didn't find the environmental variable set by us.
    please provide the solution to set environmental variables in REDHAT LINUX 5.0 Enterprise Edition.
    Which version of JAVA should be installed in REHAT LINUX 5.0.
    and how we will check that java is installed.
    Thanks & Regards
    himanshu.

    Hello,
    I agree with Markus, most SAP environment variables wonu2019t require manual configuration.  If you need to set other variables (such as JAVA_HOME, PATH, DISPLAY, etc.), then the process is going to vary depending on the shell of your user.  Ditto on the 32-bit warningu2026the memory limitations are going to cause you major frustrations.
    My system users use bash (sh).  The users created by SAP use c shell (csh).  Many distributions (including RHEL and clones) have a u2018/etc/profile.du2019 directory containing files loaded by various shells.  If you want to set an environmental variable for all users of a particular shell, use this directory.
    sh example:
    /etc/profile.d/java.sh
    export JAVA_HOME=/opt/java
    export PATH=$JAVA_HOME/bin:$PATH
    csh example:
    /etc/profile.d/java.csh
    setenv JAVA_HOME /opt/java
    setenv PATH $JAVA_HOME/bin:$PATH
    Tips:
    No need to add the normal first line of the shell script.
    I create the environment files in this directory segmented on application.
    All of the files in my profile.d directory are executable.
    Hope this helps,
    Zach

  • How to set environmental variable

    Hi,
    How to set environmental varibale oracle_sid=orcl
    I tried on the command prompt once, set oracle_sid=orcl and it was just temperory. Next time again it prompts me that the environmental variable is not set, before I run "emctl status".
    Thanks,

    HI
    in HPUX u can use
    export ORACLE_SID=SID
    you can also put export ORACLE_SID=SID in the .profile file from your oracle user then the environment variable is set.
    Regards

  • DataExport   Calc Script

    Can we use Substitutional variables or Global variables in Business rule to specify the file export path, instead of hard coding it.
    Edited by: 974347 on Nov 30, 2012 4:36 PM

    This does work as a substitution variable is just a simple text replacement within a calc script. I have not tried to use a run time prompt for any other purpose than a member name substitution in a business rule, so I am unsure that you could do this. Give it a try and let us know if this works out. Thanks,
    --Scott Danesi                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • What the need of environmental variables

    when we are writing shell scripts which contains sql relative statements
    why we need to have these environmental variables
    ORACLE_HOME=........; export ORACLE_HOME
    LD_LIBRARY_PATH=$ORACLE_HOME/lib;
    export LD_LIBRARY_PATH
    PATH=$ORACLE_HOME/bin:$PATH;
    export PATH
    unset ORA_NLS33
    export NLS_NUMERIC_CHARACTERS=,
    please tell me
    if possible each one in detail and any link contains these things

    As already mentioned, they are pointers which allow the script to find programs and files. For example, if you set ORACLE_HOME=/app/oracle/product/10.2.0 and then PATH=$ORACLE_HOME/bin:$PATH then when you call sqlplus, the operating system can find the sqplus program because it searches down the $PATH directory structure. Some of the Oracle code itself relies on these being set - try not having ORACLE_HOME or PATH set and then executing sqlplus from the oracle installation bin directory - you get an error stating a message file cannot be accessed - this is becuse the internal code it using the ORACLE_HOME and PATH environment variables.
    Also, setting the variables makes your scripts much easier to maintain - if you move your script to another server where the filesystem is different or you upgrade Oracle so that the $ORACLE_HOME changes, you only need to change these lines, rather than trawl your whole script. It's basically good coding practice to do this.
    Cheers,
    James

  • Using a variable in communication channel

    Hi,
    I have a lot of Communication Channels looking for files in the same directory. This directory's path will be changed soon and so I assume I'll have to change all my Communication Channels.
    I was wondering whether there was a means of using a variable for the Source Directory in order to just have to change its value where it is defined and not every where it is used...
    Regards
    Yann

    Hi,
    Is this a sender file adapter? or a receiver file adapter?
    You can make a change / make the receiver file adapter's directory dynamic by setting the value during runtime in the mapping.
    Use  this blog and the code in the blog to acheive this,
    /people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
    Sender File adapter, I dont think this is possible.
    Regards,
    Bhavesh

  • Error in using System Variable

    Dear all,
             I want to use System Variable 225 ( VAT percent (per VAT code) ) which is used in one of document i.e. "VAT Only Invoice".
    When I used it in my Invoice document the following error occurs:
    Printing Error : Invalid Variable number (RPT -6300)(Field:F_XXX) Variable 'XXX'
    Please help me to use this System Variable in my Invoice.
    Note: I have already read "How To Use the PLD Variables File in Release 2007 A" .pdf file.
    can any one tell the meaning of folowing which is in the sheet "vars utilisation" of PLD_Vars_march2007 xls file
    " it means that this variable can be used only under certain repetitive area exclusive numbers (109, 126, 132, 135, 139, 148, 149, 309, 316, 427, 502, 509, 686)
    Regards,
    Ghazanfar
    Edited by: Ghazanfar Ahmed on Jun 18, 2009 12:16 PM

    Hi,
    It is a special variable available for the VAT summary part, not to be used in the rows but in a separate repetitive area.
    To display the respective VAT rates in each row, create a database field instead: Tax Definition - Rate%. It will populate the VAT percentage for you.
    Regards,
    Nat

  • Error in using a variable in filter condition in an Interface

    Hi All,
    I am using a variable in my interface in a filter condition. I have an EMP table of scott schema and want to pull all the records wiht hiredate date lying between 2 dates, incremental pull.For this I have created 2 variables and using them in the filter condition. I am getting an error inthe interface when I run in a package after declaring and refresing the variables.
    com.sunopsis.sql.SnpsMissingParametersException: Missing parameter
         at com.sunopsis.sql.SnpsQuery.completeHostVariable(SnpsQuery.java)
         at com.sunopsis.sql.SnpsQuery.updateExecStatement(SnpsQuery.java)
         at com.sunopsis.sql.SnpsQuery.executeUpdate(SnpsQuery.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execStdOrders(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSqlI.treatTaskTrt(SnpSessTaskSqlI.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java)
         at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandSession.treatCommand(DwgCommandSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
         at com.sunopsis.dwg.cmd.e.i(e.java)
         at com.sunopsis.dwg.cmd.g.y(g.java)
         at com.sunopsis.dwg.cmd.e.run(e.java)
         at java.lang.Thread.run(Unknown Source)
    Regards,
    Krishna

    Hi Krishna,
    What is the datatype of the Variable lastupdate ?
    In my case
    Variable
    Name : LastUpdateDate
    Datatype : Alphanumeric
    Action : Historize
    Query : select to_char(to_date(sysdate,'DD-MON-YY'),'DD-MON-YY') from sys.dual
    Then in filter I used
    EMP.HIREDATE>to_date('#LastUpdateDate','DD-MON-YY')
    Thanks
    Sutirtha

Maybe you are looking for

  • Double-click on photo in blog to enlarge?

    Is it possible to enable my blog so that viewers can double-click on a photo to enlarge it?

  • Import Spreadsheet App not working

    I am trying use the Import Spreadsheet App in Sharepoint 2013 and always get the same error: "Could not lead an object because it is not available on this machine" This was working on a previous install of SharePoint 2013 I had. Is something not inst

  • Alpha channel video issue with After Effects

    For some reason, a perfect mask in After Effects produces a thin gray border around the mask in flash when converting to FLV. Has anyone had this problem? Tried everything. Thanks.

  • Total weight in delivery document

    Hi gurus,   1. how total weight in delivery document is determined when i am doing multiple orders in single delivery.   2. My requirement is to delete a delivery documnet but it was not deleting, i analised that " total weight in delivery document "

  • WebGUI error in context menu

    Hello! I am using the SAP GUI for HTML for some transactions (e.g. pz02). If I am opening the context menu (right click in the window) and select "Help", a short dump appears: Runtime Errors: ITS_EXPRESSION_NOT_NUM Template "templates/webgui/dm/gener