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!

Run map with overrides...

Status
Not open for further replies.

new2game

Programmer
Jan 20, 2004
10
US
I have a map, map1, that needs to execute an ftpget map, testftp. map1 will pass the file name to input card 1 which will be used in an ftp rule in output card 1 of the testftp map. map1 should alao override the file name and destination of testftp output card 1.

whats wrong with this rule?

=VALID(RUN("testftp",Echoin(1,package(filename:ftp)) + " " + " -OE1 " + file:path + filename:ftp),
FAIL ( "Failure on RUN - testftp; ReturnCode: (" + TEXT ( LASTERRORCODE ( ) ) + "):" + LASTERRORMSG ( ) ) ))

new2game


 
Its punctuation.... Try something like

=VALID(RUN("testftp",Echoin(1,package(filename:ftp)) +
" -OE1 '" + file:path + filename:ftp + "'"),
FAIL ( "Failure on RUN - testftp; ReturnCode: (" + TEXT ( LASTERRORCODE ( ) ) + "):" + LASTERRORMSG ( ) ) ))

Let me know if that works

eyetry
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top