Trying to execute python code in a script with the exec() function. The code executes successfully via python interpreter. But when i try to execute in BODS Script with the exec() function, it doesn’t work.
So the 2 things that come to mind are am I using the correct syntax for exec() and if the python interpreter is installed on the job server. The syntax I am using is exec(‘Z:\ProjectFolder\MyScript.py’, ‘’, 8); The job runs but nothing happens. Is this correct syntax? the next question is to find out if python is installed on the server, I thought that python does get installed with the standard BODS installation, but I could be wrong. Any suggestions on syntax of exec() and python install on job server. Thanks.
Thanks jlynn, was able to execute the python file after deciphering the path to python.exe. The python installed with data services is 2.6 and was under DataQuality folder.
The error handling script also works. However Data Services doesn’t seem to like your return statement i.e. substr($ReturnVar,10,990)); i removed it from the script and it works fine. Thanks once again.
Just out of curiosity do you the output from data services such as excel files, csv files or tables and utilize Pandas for data analysis or machine learning with SciKit Learn?