Hi All,
I hope someone can help me with this problem. I need to develop a query where I want to compare file information to the current date. However, I want minimal user interaction since I won't be using this query. The AS/400 maintains a system value QDATE which is the current system date. Unfortunately, I can't figure out anyway to use this value in a query using the query system.
I am not an RPG (or any other) programmer and was hoping there'd be a simple solution to this. I am even willing to use a command language routine to write the current system date to a separate file and then link that file to my query (which would work) ... but not really sure how to create a CL routine to do this either.
If anyone can offer some assistance, it would be greatly appreciated.
Regards - M
I hope someone can help me with this problem. I need to develop a query where I want to compare file information to the current date. However, I want minimal user interaction since I won't be using this query. The AS/400 maintains a system value QDATE which is the current system date. Unfortunately, I can't figure out anyway to use this value in a query using the query system.
I am not an RPG (or any other) programmer and was hoping there'd be a simple solution to this. I am even willing to use a command language routine to write the current system date to a separate file and then link that file to my query (which would work) ... but not really sure how to create a CL routine to do this either.
If anyone can offer some assistance, it would be greatly appreciated.
Regards - M