×
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.
| [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Alan Shore
| Sent: Thursday, May 20, 2010 12:41
| To: rpg400-l@xxxxxxxxxxxx
| Subject: Creating a time stamp from a command
| My problem is that within the RPGILE program to process the
| command, I
| need to take both the From date & time (and the Thru date and
| time) and
| create timestamps and for some reason my mind becomes blank
| I am hoping someone has done this already and can point me in
| the right
| direction
First, read the help for the TYPE() parameter of command PARM. You will learn about the format passed to your program for *DATE and *TIME types.
Once you know the formats, you can code %DATE() and %TIME() build-in functions to convert your inputs to RPG DATE and TIME values, Combine these with %TIMESTAMP() to create a timestamp value.
Brian Johnson
_______________
Confidentiality Notice: This e-mail, including attachments, may include confidential and/or proprietary information, and may be used only by the person or entity to
which it is addressed. If the reader of this e-mail is not the intended recipient or his or her authorized agent, the reader is hereby notified that any dissemination, distribution or copying of this e-mail is prohibited. If you have received this e-mail in error, please notify the sender by replying to this message and delete this e-mail immediately.
________________
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.