I'm trying to execute a batch file in a folder on my C drive fom a CL program on our iSeries.
The batch file contains this statement: -s:download.txt which is the text file that contains my FTP commands.
The path to the .bat file is C:/crap/latest/download.bat and is what is contained in the passed parameter &DATA in the code example below.
my code is:
I'm getting a message stating that there was an error opening the download.txt file. That's it, no other explanation or information.
Any ideas what could be causing this error?
Red.
The batch file contains this statement: -s:download.txt which is the text file that contains my FTP commands.
The path to the .bat file is C:/crap/latest/download.bat and is what is contained in the passed parameter &DATA in the code example below.
my code is:
Code:
** Beginning of data *********************** PGM PARM(&DATA) DCL VAR(&DATA ) TYPE(*CHAR) LEN( 70) STRPCO PCTA(*NO) MONMSG MSGID(IWS4010) STRPCCMD PCCMD(&DATA) PAUSE(*YES) GOTO CMDLBL(END) ENDPGM
Any ideas what could be causing this error?
Red.
Comment