Bonjour,
STRQSH CMD problème d'écriture
Je voudrai utiliser la commande STRQSH dans un rpgle.
Si j'ouvre STRQSH et que je saisie
arsdoc update -h GBTEST -i "where Cheptel='25001001 ' and DatRep='0001-01-01'" -G CPB_ENG -n DatRep='30-08-2018' -f CPB -v
Cela fonctionne.
Si je fais STRQSH CMD('arsdoc update -h GBTEST -i "where Cheptel='25001001 ' and DatRep='0001-01-01'" -G CPB_ENG -n DatRep='30-08-2018' -f CPB -v')
J'ai les messages
Caractère '2' incorrect à la suite de la chaîne ''arsdoc up'.
Caractère '0' incorrect à la suite de la chaîne '' and DatR'.
Je pense qu'il manque une info, mais laquelle ?
Je vous remercie d'avance pour votre aide.
Pb STRQSH
Pb STRQSH
Si quelqu'un rencontre le même problème, voici la solution :
When executing the ARSxxxxxx programs from an IBM® i command line, the i QSH command is used. When embedded single quotes exist within the program parameter, they must be doubled. For example:.QSH CMD('arsdoc get ...... "-i WHERE Account#=''1234567'' "....-u testadmin -p ondemand')
STRQSH CMD('arsdoc update -h GBTEST -i "where Cheptel=''25001001 '' and DatRep=''0001-01-01''" -G CPB_ENG -n DatRep=''30-08-2018'' -f CPB -v')
When executing the ARSxxxxxx programs from an IBM® i command line, the i QSH command is used. When embedded single quotes exist within the program parameter, they must be doubled. For example:.QSH CMD('arsdoc get ...... "-i WHERE Account#=''1234567'' "....-u testadmin -p ondemand')
STRQSH CMD('arsdoc update -h GBTEST -i "where Cheptel=''25001001 '' and DatRep=''0001-01-01''" -G CPB_ENG -n DatRep=''30-08-2018'' -f CPB -v')