I am using the AS400 Query, we are in version V05R03M00 IBM iseries. I am building a query that I need to get all record 72 hrs prior. I have been trying to set up define results fields for this with no luck. I set up so that HRS72 TODAY - 3 days, but then couldn't select records so that ISADATE GE HRS72. So, I tried again using
TODAY CURRENT(TIMESTAMP)
HRS72 TODAY - 72 HOURS
and it keeps telling me HRS72 needs to be a date. The report will be set up to run at midnight each night and will need all records that ISADATE YYYY-MM-DD shows as being 72 hrs prior til now(or 3 days). There is a time field XX:XX too, which I tried using with timestamp, but don't think I understand enough about it. I also tried doing HRS72 TODAY - 3 DAYS and no records came up when I tried to select records ISADATE GE HRS72, but there are a lot of records. Hoping someone can help me with this, have worked for hours and still come up with nothing!!
TODAY CURRENT(TIMESTAMP)
HRS72 TODAY - 72 HOURS
and it keeps telling me HRS72 needs to be a date. The report will be set up to run at midnight each night and will need all records that ISADATE YYYY-MM-DD shows as being 72 hrs prior til now(or 3 days). There is a time field XX:XX too, which I tried using with timestamp, but don't think I understand enough about it. I also tried doing HRS72 TODAY - 3 DAYS and no records came up when I tried to select records ISADATE GE HRS72, but there are a lot of records. Hoping someone can help me with this, have worked for hours and still come up with nothing!!