Edit codes using Strqmqry

15 pts.
Tags:
Query
STRQMQRY
I am passing a date field to a query via strqmqry command. However, my numeric edit codes are not what I defined them in the query definition. Seems a default code for numerics is used. What am I doing wrong?
ASKED: October 14, 2008  4:51 PM
UPDATED: August 26, 2010  2:27 PM

Answer Wiki

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

Hello…

When using INSERT processing without SELECT, the date format is taken from the user’s profile. When using INSERT processing with SELECT, SQL assumes the value is for output and provides it to Query Management in the SAA format (ddmmyyyy).

See the <a href=”http://publib.boulder.ibm.com/iseries/v5r1/ic2924/index.htm?info/qmp/rbaromst288.htm”>iSeries website</a> for further information…

Hope this helps…

================================================================

Edit codes are not part of SQL column definitions. QM queries are SQL processes. Edit codes associated with file fields are not even seen.

In short, your edit codes have no connection to what you’re doing. If you need editing, specify it in the column edit in the QM form used for the query.

Tom

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