can strqmqry be run as remote command

Tags:
Application development
AS/400
Backup and Recovery
CLP
Data analysis
IBM DB2
PC/Windows Connectivity
Printing
I am trying to run strqmqry via a dos/cmd ftp session. command: QUOTE RCMD STRQMQRY QMQRY(lib/qry) ... where ... are other options I followed various instructions posted here and on as400 tech sites on how to create the query. I was able to do all of that via a dos/cmd ftp session (except for editing the sql which I did via iseries navigator). here is snippet of my log file showing errors: ftp> ftp> QUOTE RCMD STRQMQRY QMQRY(SEIFEBR/BSTMSP1) QMFORM(SEIFEBR/BSTMSP1) SETVAR((FRMDT 1061030)) 550-Error occurred on command STRQMQRY QMQRY(SEIFEBR/BSTMSP1) QMFORM(SEIFEBR/BSTMSP1) SETVAR((FRMDT. 550 Cause code is QWM2701; message text not available. ftp> Invalid command. --or-- QUOTE RCMD STRQMQRY QMQRY(SEIFEBR/BSTMSP1) OUTPUT(*OUTFILE) OUTFILE(CENUSRQRY/BSINTMSsHP) OUTMBR(*FIRST *REPLACE) SETVAR(FRMDT 1061030) 550-Error occurred on command STRQMQRY QMQRY(SEIFEBR/BSTMSP1) OUTPUT(*OUTFILE) OUTFILE(CENUSRQRY/BSI. 550 Error found on STRQMQRY command.. Help! and Thanks!

Answer Wiki

Thanks. We'll let you know when a new response is added.

I got it! Yes, it can be done this way. I finally decided to step through the proc again and my issue was when executing the command I was not properly quoting the variable. My initial presumption based on my research was that I did not need it… but I did. The example below required three sets of single quotes.
Anyways, thanks!

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following