Call via the FDM script batch file
Hi all
Here is the FDM script written to call the command via the Script FDM in import file, test the operation of the script by creating a vbscript file (* .vbs) to call the batch file and worked like charm. Please see the excerpt from the sciprt
SubMonth = "Mar".
SubYear = "FY15.
ARG = trim (SubYear) & "" & trim (SubMonth)
Set objWshShell = CreateObject ("Wscript.Shell")
strCmd = "E:\hyperionfiles\batch\CalcActNew.bat" & Arg
Line 53 objWshShell.Run 'strCmd', 0, True
The error returned is
Thank you
Hi, no double quotes are needed to join strCmd it's a variable
objWshShell.Run strCmd, 0, True
Tags: Business Intelligence
Similar Questions
-
Passage of the maxl script batch file value.
Hi gurus,
I want the user to select the scenario he wants to clear the data for a specific intersection in a cube of ASO for running batch file. Files and newspapers is as below
Batch file:
ECHO please select a scenario:
ECHO A. actuals
B. Budget echo
choice/m C:AB '-> > enter a letter for the scenario you want to delete: "%1 '"
IF ERRORLEVEL is 1 Set ScenarioName = law
IF ERRORLEVEL == 2 Set ScenarioName = bud
E:\Oracle\Middleware\user_projects\epmsystem3\EssbaseServer\essbaseserver1\bin\startMaxl.bat "C:\Users\TCleardata2.mxl" % ScenarioName %
MaxL file:
spool to 'C:\Users\Cleardatalog.txt ';
/ * Value Variables * /.
Set vScenarioName = $1;
Echo script: "$vScenarioName";
connection username pwd on "IP:1423 Server";
/ * Erase data * /.
ALTER database abc.abc clear data in the region ' {("$1", Final, FY15, P2, ACC_1011640)}' physical;
echo * clear full *;
disconnection;
spool off;
Log file:
Scenario: law
MAXL > connection username pwd on "IP:1423 Server";
OK/INFO - 1051034 - user [username@pqr] connection.
OK/INFO - 1241001 - connected to Essbase.
*****************************************************************************
MAXL > alter database abc.abc clear data in the region ' {("$1", Final, FY15, P2, ACC_1011640)}' physical;
ERROR - 1260052 - syntax error in a MDX query on line 1 to token entry ' "$1".
*****************************************************************************
Full Claire *.
MAXL > disconnect;
Username is disconnected
___________________________________________________________________________________-
in the MAXL if I write: law instead of ' $1 ' it works fine, but I can't take the user input, it is question of syntax?
Below the command works fine:
ALTER database abc.abc clear data in the region '{(law, Final, FY15, P2, ACC_1011640)}' physical;Can someone please let me know what I'm doing wrong here?
Thank you
RN
I don't think that (alone) allows in this case - the problem is that the single quotes around the specification of the whole region removes extension variable (see Variables).
Double quotes lose about $1, but also replace the single quotes around the specification of the entire region with quotes, i.e.:
ALTER database abc.abc clear data in the region '{($1, Final, FY15, ACC_1011640, P2)}' physical;
-
How to enable and disable, copy or rename the rules via the groovy script?
A client, we received this question:
How to enable and disable, copy or rename the rules via the groovy script?
Foglight 5.7.5
Hello
There is this example of support KB
support.Software.Dell.com/.../99059
and there is also documentation of Service layer of the administration on the RuleService console.
Best regards
Golan
-
Is there a a way to "Consolidate all" using the FDM parallel batch Script?
Hello
When you run the BatchStdParallel script in FDM, the lngProcessLevel will take place in the consolidation, but it's only "consolidate" in HFM. I would like to know if there is a way instead "consolidate all With Data. Does anyone know if there is a way to do this?
Here is the part of the script. Any help would be greatly appreciated,
Dim BATCHENG
Set BATCHENG = CreateObject ("upsWBatchLoaderDM.clsBatchLoader")
BATCHENG.mInitialize API, SCRIPTENG
' Initialize variables Variables
lngProcessLevel = 10 ' top consolidate
strDelimiter = "_" ' delimiter in file name
blnAutoMapCorrect = True ' automatic Correction of the card is on
lngParallelProcessCount = 2 ' the number of parallel processes (must equal the number of processors)
strLoadBalanceServerName = "MCK120" "server load for a parallel balanceCheck your settings for integration. The strengthening method is not specified by the batch script.
-
Make the file readable but not removable via cmd or a batch file
Hello
I am a windows user and I write little programs in windows using the language of batch processing. So I have a lot of work to do and set up different programs. But I am unable to set the attribute for a file that is accessible or executable but not removable. I mean I have a program and I want to set the attribute for this program unalterable, not removable. I've tried to set attribute with-s option as the attribute value of a file system and warns the user when deleting. But after you click Yes, the file is gone.
So my question is that is it possible to set the attribute to one or more files to readable but not removable via the batch command prompt?
Any help would be appreciated so much.
Thanks in advance,
Hello stephane,
Thanks for posting your query in Microsoft Community.
As a developer, I suggest that you re - ask your question in the MSDN forum rather than on this forum. MSDN is watched by other developers who would more than likely be able to help.
http://social.msdn.Microsoft.com/forums/en-us/windowsgeneraldevelopmentissuesHope this information is useful.
-
Bypass the load with Batch file utility
Gurus,
I'm trying to create a batch file to run the load of contour utility, so I need the comments about her.
The goal is that the OLU run when we run a single script.
So I created this .bat file containing the following lines
START cmd /K cd /D D:\oracle\Middleware\user_projects\epmsystem1\Planning\planning1
The first line opens the command prompt and takes me in the directory (planning of the depenses1) where we have the edge load the utility.
But it stops there. It does not the second line - the outlineload.cmd.
Should I add?
Did I miss something?
Suggestions will be highly appreciated.
Thank you
Published by: beginning of hyperion on 9 April 2013 13:10You can say call D:\oracle\Middleware\user_projects\epmsystem1\Planning\planning1\OutlineLoad.cmd A:pabudget U:bprosvc /I:E:\xansa\OutlineLoad\OB_HAL_PROPERTY.txt /D:Property /X:E:\xansa\OutlineLoad\property.err /L:E:\xansa\OutlineLoad\propertyimport.log
Concerning
Celvin
http://www.orahyplabs.com
Please check the answers as useful/correct as appropriate
-
Export of the metadata of Essbase via the Calc Scripts
Hi guys,.
Here's my problem,
We try to export essbase cube intersections in a flat file (so that it can be used by SUN)
)
We have developed a calc script to export an intersection to a flat file, but the flatfile is written only to the location of the essbase server.
But we need this flat file to immerse in an another server (SUN Server), so what would you suggest is the best way to do this on a regular basis (monthly) and huge amounts of data.
PS: Someone suggested me to use a windows batch file to move the flatfile, but I have no idea how to do that.
Any help would be really appreciated...
Thanks in advance
ArunMetadata? You mean, right? DATAEXPORT is only going to write the numbers, not of dimensionality.
I did deal with this issue, so - DATAEXPORT wrote only the box to Essbase. You can try pointing to mapped drives, but it has not worked for me.
Why not put together a script MaxL who runs the calc script (standard stuff so far) and then either the caller script in cmd OS either copy it to another location (if on Windows, see COPY) or use the MaxL shell command to launch a shell of the operating system and make the copy?
Another solution would be to set up a routine watcher file FTP'd the file off the drive, then did a deletion of the exported file. You may have to wait five minutes, but that shouldn't be a big problem in Informatica. In fact, I bet that informatica can do 99% of it.
Finally, another approach would be to write that all at a table and just picking up here.<--This is="" probably="" the="" easiest="" and="" if="" you="" think="" about="" it,="" what="" informatica="" was="" meant="" for;="" no="" more="" messy="" files="" to="" worry="" about="" and="" it's="" sql="" all="" the="" way.="" i="" would="" do="" a="" truncate="" after="" it="" read="" the="" table="" as="" dataexport="" has="" a="" habit="" of="" concatenating="">--This>
Kind regards
Cameron Lackpour
-
How to operate the system Exec (Batch file) as an administrator
Hello
I have a batch file that I need to run. But it should work with administrator access.
How can I run a command line by using the Exec.vi system as an administrator?
I was able to "solve" this problem with a work around.
I installed the 64 bit version of LabVIEW that calls the appropriate 64-bit shell to execute the TFTP call.
I do not understand the lack of functionality in the 32-bit version and the 64-bit version seems to work.
-
Change in the type of batch files
I had a text editor that has saved many small text without any extension files.
They are listed as 'file' without extension in my list of documents.
I got another text editor that records correctly my new files with the .txt extension.
I want to change large groups of text files that have no extension to the type .txt. I have hundreds of them in several files.
I can't associate a file with my new text editor type such that there is no extension to associate.
Hello
In Windows Explorer, select the 1 file in a folder - then pressing SHIFT while scrolling down
at the end of these files - when a group is highlighted right-click - Rename - enter *.txt
and everyone should have this extension added.How to rename batches of files in Windows: 4 ways to rename multiple files
http://www.howtogeek.com/111859/how-to-batch-rename-files-in-Windows-4-ways-to-rename-multiple-files/Batch files
http://commandwindows.com/batch.htmYou can use an IF Errorlevel to check to determine if the conditions are met to loop
return or stop the process. Use labels.ERRORLEVELs
http://www.robvanderwoude.com/errorlevel.phpThere is a lot of help for commands using BING or Google files.
I hope this helps.
If statements
http://www.robvanderwoude.com/if.phpConnection with IF statements.
http://commandwindows.com/batchfiles-branching.htmWildcard characters:
* = all places
? = a single place
Ren 'xyz123_*.wav '. WAV
Rename the files xyz123_*.wav for the FIRST five places of the original file name. However
It would only deal with the first file as all others would be end upward with duplicate names.===========================================================
PowerShell script is another option;
Windows PowerShell
http://TechNet.Microsoft.com/en-us/library/bb978526.aspxScriptiing with Windows PowerShell
http://TechNet.Microsoft.com/en-us/scriptcenter/dd742419PowerShell - Introduction
http://commandwindows.com/PowerShell.htmWindows PowerShell
http://msdn.Microsoft.com/en-us/library/aa973757 (vs.85) .aspxThe Windows PowerShell user manual
http://TechNet.Microsoft.com/en-us/library/ee221100.aspxWriting scripts with Windows PowerShell & download link
http://TechNet.Microsoft.com/en-us/scriptcenter/PowerShell.aspxHow Do i: Windows PowerShell 2.0?
http://TechNet.Microsoft.com/en-us/Windows/dd320288.aspxWindows PowerShell
http://en.Wikipedia.org/wiki/Windows_PowerShellWindows management framework (Windows PowerShell 2.0, WinRM 2.0, and BITS 4.0)http://support.microsoft.com/kb/968929
How to open Windows PowerShell in Windows 7
http://www.SevenForums.com/tutorials/27758-Windows-PowerShell.htmlI hope this helps.
--------------------------------------------------------------------------------------------
Rob Brown - Microsoft MVP<- profile="" -="" windows="" experience :="" bicycle="" -="" mark="" twain="" said="" it="">-> -
Automated ' Save as ' Option for the treatment of batch files?
Hi all
I use a batch process to watermark all my images coming out on my site Web etc and social networks.
I ran this process in PS CS6 and this would automatically save the files with predefined file (save as .jpg) as planned options. I would not intervene at all, just let it run in the background. However after the 2015.5 of CC PS, it is prompting me to "save under" after that each individual picture is a watermark. Is not really viable as I can sometimes be the treatment of hundreds of photos at once. I save the picture watermark to a new location and do not want to use the names of existing files, I do not know I do something wrong, but I don't particularly want to do a new action to save to a new location for each specific set of photo, I'll take. Any suggestions?
-Roger
Simply record the action for the watermark in your image with no. save step. Then use the Image or the Image Processor plugin Pro processor script. Set the script to save as many image files and file types that you need size and save where you want and have the script includes your action processing of image files from source to watermark your images...
-
BASH command via the console script
All,
I had to run a a series of BASH commands via the Script Console to a subset of servers. Is there a script for this that I can take a look? Or direct me to the controls, I might need.
You need to encapsulate in a script on the remote host to do.
actSvc = server["ActionService"]params = [:]params.put("COMMAND_LINE","/home/foglight/testBashScript.sh")params.put("HostName","centosvm1")actSvc.invoke("RemoteCommandAction",params)
This will run the script shell on the host remote centosvm1
the bash script contains the statement echo inside.
-rwxr-xr-x 1 foglight dba 99 Jan 17, 12:09 testBashScript.sh [foglight@centosvm1 ~] $ testBashScript.sh more
#! / bin/bash
echo 'Test Action of Bash Script remote command execution' > /tmp/ForumOutput.txt
[foglight@centosvm1 ~] $
-rw - r - 1 foglight dba 56 Jan 17, 12:12 ForumOutput.txt [foglight@centosvm1 ~] $ /tmp/ForumOutput.txt more
Run the test of the Action of the remote Script Bash command
[foglight@centosvm1 ~] $
I have tried a few iterations to try to echo the commands directly in a command param file but did not
Hope this helps
-
Encryption of password for the FDM script
I am currently on Hyperion 11.1.2.1 which runs on Windows 2008 Server SP1 and uses Oracle Database 10 G as a backend.
Currently, I have a script within the application of FDM which pulls data from database and load in the table of the application of the FDM.
It works all fine and does the job as expected.
But the only problem with this script, it's that the passwords are in a readable format that is specified in the parameters of connection as below
Code snippet:
Dim connectionString
' * Create the connection
Sun connection: connection = CreateObject ("ADODB. Connection")
Dim lines: set lines = CreateObject ("ADODB. Recordset')
connectionString = "Provider = msdaora; Data Source = TestRdbms; User Id = Testuser; Password = password567; »
' * Open connection
ConnectionString Connection.Open
Is there a way to make sure that this password is encrypted or not read by the user/admin.?
Please give your suggestions on this.To use the udl from inside your script just to replace your line
connectionString = "Provider = msdaora; Data Source = TestRdbms; User Id = Testuser; Password = password567; »
with
connectionString = "File Name=C:\Path\To\Your\SourceDB.UDL";
-
External authentication via the PHP script failed
I'm not a PHP genius - in fact I'm not a backend coder so I'm kinda struggeling with the sample scripts - I still hope for a sample of CF....
I'm trying to run and connect to the CAA via the command line (Terminal). I'm not sure what I'm doing wrong - this is what I'm passing:
PHP f /Applications/MAMP/htdocs/afcs.php args - debug - host = my_pass, http://connectnow.acrobat.com, fcguru, my_login
The username and password I spend are correct. However, I get this response:
Error: message exception 'AFCSError' with ' < State response 'error' = >
< error code = "AUTH_FAILED" >
< msg > failed authorization < / msg >
< / error >
< / answer >
' in /Applications/MAMP/htdocs/afcs.php:86
Really struggeling with this. Once again I get this working from the command line, I don't know how to call it from a script instead. I use CF on the backend, no PHP.
Kind regards
Stefan
Thank you, this is very useful. It seems that I can now connect from the Terminal so that's a good start. Also, I did not see external authentication in PHP for example - I must have been blind.
I'll see how far I get with that. What I'm trying to do is spawn new rooms based on a template on the fly, and I have some doubts, I'll be able to understand this myself. -
Deployment of the OMB via the TCL script
I need to deploy all of the mappings in a module in a new target database. I want the configuration settings for
(1) default operating mode = "DΘfinir base" and for
(2) default audit level = 'NONE '.
on all maps.
It seems that the default repository for these parameters (and I can't find where these default values can be managed) are
(1) default operating mode = "Line in function from set failover" and
(2) level of auditing by default = "ERROR DETAILS" on all the mappings.
While when I deploy via the script all mappings have these settings (which we do not want) as it appears that OMB orders use these repository/user settings. Card via interface OWB deployment allows you to change the settings of configuration as requires it, but it's the long answer.
These configuration settings can be overridden in the TCL script via OMBDEPLOY or OMBALTER or any other command OMB parameter so all mappings are deployed/configured as
(1) default operating mode = "DΘfinir base" and for
(2) level of auditing by default = 'NONE' on all the mappings.
Thank you
Dave.Hi Dave
Yes, you can set the code generation and the non-use of the properties of mode from a script...
OMBALTER MAPPING "$map" DEFINED the VALUES of PROPERTIES (GENERATION_MODE, DEFAULT_OPERATING_MODE) ("SET_BASED", "SET_BASED")So that you can loop around all the cards and do these things, there are also a few experts on the Exchange utility, allowing you to block of updates quickly
http://www.Oracle.com/technology/products/warehouse/htdocs/experts/multi_config.zipThe model is available from scripts, for example to a PLSQL mapping batch you can query the properties as follows:
OMBDESCRIBE CLASS_DEFINITION 'BATCH_MAPPING' GET PROPERTY_DEFINITIONSSee you soon
David -
Any command to change the coarse user batch file?
I would like to know about any command to switch users using the batch file.
Does anyone have any suggestions?
Thanks in advance for your suggestionsHello
Thanks for posting your query on the Microsoft Community.
We have a support forum dedicated to systems on these issues, I suggest you to post your query on the Microsoft Developer Community for that matter. You can get more effective suggestions and adapted by experts familiar with this topic.
Please visit the link below to find a community that will support what ask you:
Microsoft Developer Network
Hope this information is helpful and let us know if you need more assistance. We will be happy to help.
Thank you
Maybe you are looking for
-
I did experiment with the Panel before auto logging feature, I have no bad to save data to a file in a vi and recover, BUT I can't seem to be able to delete the log file of the top-level vi. I get the message file that is already open, but I don't s
-
How/where can I get or Downgrqade for XP with IE7
I'm building a new PC and for my applications, I use XP with IE7. Where can I buy XP with IE7? Or is it possible to buy WIndows 7 to downgrade to XP and IE7? Thank you
-
Moving an Installation of Vista Hi guys (and girls). I'm looking for the best way to transfer my computer drive "workaholic" into another machine... it's a Vista Home Premium x 86 OEM installation, but the motherboard has serious problems, so I'll pu
-
flight of the Internet through bluetooth and any outher wave device
gDay the names mick / questiom. I have ileagaly of people using my internet connection using blue toth and whatever the use of piggy of my connection back and increase my account downloads how to find them and how can I stop them or I can do anything
-
Questions for office and open its files
I have a laptop Dell Latitude (about a year) running Win7, Service Pack 1. Never had a problem with it. However, something strange has happened lately I've ever seen on any computer. As you know, on the lower right corner, I can click on "Show Deskt