Hi All:
This runs from a command line:
This does not:
This does not run from CL:
but this does:
What's up with that? I need to move the quote after the "RM" when running in CL but before the "RM" when running interactively?
Again I ask.....WHAT'S UP WITH THAT?
Thanks for any input
GLS
This runs from a command line:
Code:
strqsh cmd('rm //qntc/fred/common/ftphome/travelers/travbill/myfile')
Code:
strqsh cmd(rm '//qntc/fred/common/ftphome/travelers/travbill/myfile')
Code:
pgm DCL VAR(&qshrm) TYPE(*CHAR) LEN(150) dcl var(&qt) type(*char) len(1) value('''') chgvar &qshrm value(&qt + *cat 'rm //qntc/fred/common/ftphome/travelers/travbill/myfile' + *tcat &qt) STRQSH CMD(&qshrm) endpgm
Code:
pgm DCL VAR(&qshrm) TYPE(*CHAR) LEN(150) dcl var(&qt) type(*char) len(1) value('''') chgvar &qshrm value(+ 'rm' *bcat &qt *tcat '//qntc/fred/common/ftphome/travelers/travbill/myfile' + *tcat &qt) STRQSH CMD(&qshrm) endpgm
Again I ask.....WHAT'S UP WITH THAT?
Thanks for any input
GLS
Comment