我正在尝试将文件从unix ftp转换为as400并在脚本中执行iseries命令。 ftp工作正常,我在jobd命令中收到错误
HOST=KCBNSXDD.svr.us.bank.net
USER=test
PASS=1234 #This is the password for the FTP user.
ftp -env $HOST << EOF
# Call 2. Here the login credentials are supplied by calling the variables.
user $USER $PASS
# Call 3. Here you will change to the directory where you want to put or get
cd "\$QARCVBEN"
# Call4. Here you will tell FTP to put or get the file.
#Ebcdic
#Mode b
quote site crtccsid *user
quote site crtccsid *sysval
put prod.txt
quote rcmd sbmjob cmd(call pgm(pmtiprcc0) parm('prod' 'DEV')) job(\$pmtiprcc) jobd(orderbatch)
550-Error occurred on command SBMJOB cmd(call pgm(pmtiprcc0)) job($pmtiprcc) jobd(orderbatch). 550 Errors occurred on SBMJOB command.. 221 QUIT subcommand received.
答案 0 :(得分:0)
自从访问link以来,我不禁想到你可能会错过这个......
QUOTE RCMD OS/400 CL command | program [parameter1, parameter2, . . .parameterx] (Remote Command)
您的FTP命令脚本应该是......
quote os/400 cl sbmjob cmd(call pgm(pmtiprcc0) parm('prod' 'DEV')) job(\$pmtiprcc) jobd(orderbatch)