This content has been marked as final. Show 4 replies
see if this method(http://odiexperts.com/getting-one-or-several-unknown-files-from-a-directory) helps you and also instead of windows command try the ls command and execute1 person found this helpful
Thank you Kshitiz, you and Cezar are doing REALLY GOOD work at ODI Experts.
That's what I am doing, reading the files in a directory (with mask) then using interface to store the list of them into a metatable. But where there are no files (which unfortunately happend now - extracts did not come) this OdiOsCommand failed returning code 2.
om .sunopsis .dwg .function .SnpsFunctionBaseExceptuon: OS command returned 2.
I need to handle error codes from OdiOsCommand when it fails. Is there a list of the error codes?
We are using ODI on Linux.
Hi Kubis,1 person found this helpful
you can create a variable and use the "getprevsteplog" api in the refresh tab to obtain the error code.
After that you can identify if the error is "2" and take no action...
I am calling a shell script from ODI as below inside an ODI procedure P1. The os command below is in 'Command on Target' side.I have defined v_in_param as an 'option' inside procedure P1
OdiOSCommand sample.sh v_in_param
i am getting error as 'OS command returned 1'.
Is it the right syntax to pass an 'option' parameter to an OS call?