Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using BAT adapter passing variables to batchfile?

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
DatastageTx8.0/windows

I am having problem with the following batch call with arguments.
COrrect me how to pass the batch file arguments in the rule level.

=VALID(
PUT("BAT", "-CMD batchfile.bat -CLI arg1.txt arg2.txt map1.mmc map2.mmc -INLINE -t ","C:\xx\textfile.txt"),
FAIL("<errorcode>" + LASTERRORCODE( ) + "</errorcode><errordescription>" + LASTERRORMSG ( ) + "</errordescription>" ))
 
Don't use PUT, call a RUN map and pass the data to the output card. Then you can test with file output to see what is being passed, then change to BAT when it is what you want. Make sure your batch file has it's own error handling and will return what you expect.



BocaBurger
<===========================||////////////////|0
The pen is mightier than the sword, but the sword hurts more!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top