15 pts.
 Edit codes using 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?

Software/Hardware used:
ASKED: October 14, 2008  4:51 PM
UPDATED: August 26, 2010  2:27 PM

Answer Wiki:
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
Last Wiki Answer Submitted:  August 26, 2010  2:27 pm  by  TomLiotta   107,845 pts.
All Answer Wiki Contributors:  TomLiotta   107,845 pts. , Tpinky   4,165 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _