|
Take small bites. First are you sure it's 10,0 and not 8,0? Second break your result field down. Do not combine functions. Display each work field to see where you go wrong. Third use DATE to convert something into a date. Use CHAR to convert something from a date. oludare@ix.netcom.com on 04/13/2000 04:36:09 PM Please respond to RPG400-L@midrange.com@Internet To: MIDRANGE-L@midrange.com@Internet cc: RPG400-L@midrange.com@Internet Fax to: Subject: Date function within QUERY definition... Hi guys, This is a QUERY question. I have a numeric field with date value, in ccyymmdd format (10,0). In my query, I redefined this numeric field as an *ISO date using CHAR function then subtract it from system date in *ISO format, using DAYS function. The result fields display +++++++++++++++ everywhere the numeric field is used, either in calculation or straight display. How do I display the value or what I'm I doing wrong? Thanks, Oludare
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META content="text/html; charset=iso-8859-1" http-equiv=Content-Type> <META content="MSHTML 5.00.2919.6307" name=GENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=#ffffff> <DIV><FONT size=2>Hi guys,</FONT></DIV> <DIV> </DIV> <DIV><FONT size=2>This is a QUERY question. I have a numeric field with date value, in ccyymmdd format (10,0). In my query, I redefined this numeric field as an *ISO date using CHAR function then subtract it from system date in *ISO format, using DAYS function. The result fields display +++++++++++++++ everywhere the numeric field is used, either in calculation or straight display.</FONT></DIV> <DIV> </DIV> <DIV> </DIV> <DIV><FONT size=2>How do I display the value or what I'm I doing wrong?</FONT></DIV> <DIV> </DIV> <DIV><FONT size=2>Thanks,</FONT></DIV> <DIV> </DIV> <DIV><FONT size=2>Oludare</FONT></DIV></BODY></HTML>
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.