|
There's two ways to skin that cat:
1 - RTM
2 - test it with
values week('12/31/20someyearthatfitsyourcriteria')
Rob Berendt
--
Group Dekko
Dept 1600
Mail to: 2505 Dekko Drive
Garrett, IN 46738
Ship to: Dock 108
6928N 400E
Kendallville, IN 46755
http://www.dekko.com
From: Terrence Enger <tenger@xxxxxxxxxxxxxxxx>
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>
Date: 10/01/2010 04:03 PM
Subject: Re: Get next Tuesday. Or the one after (VALUES)
Sent by: midrange-l-bounces@xxxxxxxxxxxx
On Fri, 2010-10-01 at 13:56 -0400, rob@xxxxxxxxx wrote:
You had a good reply from someone else but let me summarize it:
From STRSQLVALUES WEEK(CURRENT DATE)
From imbedded sql in rpgEXEC SQL VALUES WEEK(CURRENT DATE) INTO :week;
Hmm. How does that work in the year after a year with 53 weeks?
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 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.