|
I have a source member that I use to try out small snippets of code like
this:
/free
dsply %dech(alph103:10:3);
ts1 = *loval;
dsply %char(ts1);
for dsidx1 = 1 to dsIdx2;
dsply dsidx1;
endfor;
return;
I never have a problem with the program stopping and displaying my output.
Thanks,
Mark
Mark D. Walter
Senior Programmer/Analyst
CCX, Inc.
mwalter@xxxxxxxxxx
http://www.ccxinc.com
<Rick.Chevalier@a
mericredit.com>
Sent by: To
rpg400-l-bounces@ <rpg400-l@xxxxxxxxxxxx>
midrange.com cc
Subject
02/09/2005 02:17 RE: Converting from %date() to
PM numeric
Please respond to
RPG programming
on the AS400 /
iSeries
<rpg400-l@midrang
e.com>
Ron,
You need to ask for a reply. Try this:
d Result S 8S 0
d Reply s 1a
/FREE
Result = %Int(%Char(%Date():*ISO0));
Dsply Result '' Reply;
*Inlr = *On;
/END-FREE
If you display your job log you will see the value that flashed across the
screen.
HTH,
Rick
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx]On Behalf Of RPower@xxxxxxxxxx
Sent: Wednesday, February 09, 2005 12:39 PM
To: RPG programming on the AS400 / iSeries
Subject: Re: Converting from %date() to numeric
Hmm,
Wanting to test this code out, I coded this:
d Result S 8S 0
/FREE
Result = %Int(%Char(%Date():*ISO0));
Dsply Result;
*Inlr = *On;
/END-FREE
but for some reason, the Dsply flashes to the screen and ends. It doesn't
wait like it normally does. Any reason for this?
Ron Power
Programmer
Information Services
City Of St. John's, NL
P.O. Box 908
St. John's, NL
A1C 5M2
Tel: 709-576-8132
Email: rpower@xxxxxxxxxx
Website: http://www.stjohns.ca/
___________________________________________________________________________
Success is going from failure to failure without a loss of enthusiasm. -
Sir Winston Churchill
Privileged and Confidential. This e-mail, and any attachments there to, is
intended only for use by the addressee(s) named herein and may contain
legally privileged or confidential information. If you have received this
e-mail in error, please notify me immediately by a return e-mail and delete
this e-mail. You are hereby notified that any dissemination, distribution
or copying of this e-mail and/or any attachments thereto, is strictly
prohibited.
--
This is the RPG programming on the AS400 / iSeries (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.
This mailing list archive is Copyright 1997-2025 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.