COGNOiSe.com - The IBM Cognos Community

ETL, App Development and other tools => COGNOS DecisionStream/Data Manager => Topic started by: Sonnfan on 27 Sep 2013 06:37:14 AM

Title: Run batch file within job stream
Post by: Sonnfan on 27 Sep 2013 06:37:14 AM
Hi community,

I need to start a .bat-File from a job stream. I know it should be possible with the procedure node, but whats the syntax to call a batch-File? I just can't find something like that in the documentation so any help would be much appreciated!

Best regards,
Sonnfan
Title: Re: Run batch file within job stream
Post by: terry_stjean on 27 Sep 2013 09:43:13 AM
In the Procedure node, use the system function to execute things like running batch files, copying or deleting files etc.

System( 'c:\runme.bat' )

Title: Re: Run batch file within job stream
Post by: Sonnfan on 07 Oct 2013 03:43:10 AM
Better late then never: Thank you, works like a charm!  :D