×
The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.
This does not have anything to do with RPG, and would be better asked in the
midrange list.
On Apr 19, 2010 5:28 AM, "krunal Asodiya" <krunal02@xxxxxxxxx> wrote:
Dear All,
I want to add duration in date field by using a command in CL program , I
had search on various site and found a command ADDDATE(found below example
as well) , but some how this command is not found in our server , which
version is V5R4.
Example :
DCL VAR(&DATE) TYPE(*Char) Len(6)
RTVSYSVAL SYSVAL(QDATE) RTNVAR(&DATE)
ADDDATE DAYS(10) TOVAR(&DATE) TOVARFMT(*SYSVAL) +
DATEFMT(*SYSVAL)
ENDPGM
I want to know, is ADDDATE command exist in AS/400 or not? ,
And if yes , then which version support this command ?, is their any
alternate way to add duration in a date Field ?
Thanks and regards,
Krunal Asodiya.
--
This is the RPG programming on the IBM i / System i (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at
http://archive.midrange.com/rpg400-l.
As an Amazon Associate we earn from qualifying purchases.