on 06-26-2017 11:19 PM
I am trying to run a batch script in SAP BI 4.2.I followed below steps to run btach script as program object
https://blogs.sap.com/2013/04/30/business-objects-program-object-what-we-can-do/
But when i try running this script from CMC,it is running for a long time without any status change.
Do i need modify or check anything before running .bat file in BO,let me know if i am missing anything.
Thanks,
Vikram
Does the script which you are running as program object is executable standalone? Does that user who runs BusinessObjects can execute the script without any access issues? If you can share the script, then we should be able to help you from ourside.
Thanks
Mani
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mani,
I tried logging in to BO server and execute the .exe file from command prompt,it is working fine and i got the expected output .txt file to home directory of .exe file
When i am running the same .exe as program object from CMC,the instance is getting success but when i check the output FRS the .txt file (procprogram_output) it is zero kb.
May i know what causes this issue and do i need to define any destination path for program objects ?
Thanks
why are you looking in output FRS ??
if your executable creates the file - the file it creates will not be in FRS, it will be in location your executable specifies or in same location as executable.
BOE here is only running the exe you specify, its not storing its output or controls where it goes.
Does the script which you are running as program object is executable standalone? Does that user who runs BusinessObjects can execute the script without any access issues? If you can share the script, then we should be able to help you from ourside.
Thanks
Mani
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you all ,The issue is solved.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Things to try:
Log in to the BOE server as the user account that BO runs as, then execute the batch file and see if it completes successfully.
If so, I would add some debugging steps throughout the script, ex:
echo Starting step 5 >> c:\temp\batch.log
This should at least give you an indication about the source of the problem.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I tried logging in to BO server and execute the .exe file from command prompt,it is working fine and i got the expected output .txt file to home directory of .exe file
When i am running the same .exe as program object from CMC,the instance is getting success but when i check the output FRS the .txt file (procprogram_output) it is zero kb.
May i know what causes this issue and do i need to define any destination path for program objects ?
Thanks
Regarding whether changes are required in the program -- it depends on how it is referencing the output file. I suspect it's just writing to the current working directory, which is why I suggesting setting the Working Directory in the program object settings.
You can use Windows Scheduler instead.
User | Count |
---|---|
84 | |
25 | |
12 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.