Brian
MUCH appreciated
Sometimes I dismay myself (or words to that effect)
Thanks
Alan Shore
Programmer/Analyst, Direct Response
E:AShore@xxxxxxxx
P:(631) 200-5019
C:(631) 880-8640
"If you're going through Hell, keep going" - Winston Churchill
Brian Johnson
<Brian.Johnson@he
lpsystems.com> To
Sent by: "'RPG programming on the IBM i /
rpg400-l-bounces@ System i'" <rpg400-l@xxxxxxxxxxxx>
midrange.com cc
Subject
05/20/2010 02:19 RE: Creating a time stamp from a
PM command
Please respond to
RPG programming
on the IBM i /
System i
<rpg400-l@midrang
e.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.
________________
--
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.