× 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.



-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Scott Klement
Sent: Tuesday, July 01, 2008 6:50 PM
To: RPG programming on the AS400 / iSeries
Subject: Re: Using Subdur

Adam West wrote:
Also the dates in my file are YYMMDD. I would use the UDATE which is
MMDDYY..

Unless your code needs to be S/36 compatible, don't use UDATE. There
are many, many better ways to do things.

a) Do you really want the job date instead of the system date? The job
date reports the date that your job started (i.e. the date that you
signed on, or the date that a batch job was submitted). The system
date, by contrast, is the current date.


Actually, based on parts of Adam's original post, the job date (UDATE) may be exactly what he wants/needs. The job is submitted on Sunday, but he didn't say what time, but, at any rate, it *may* run past midnight. At which point using the system date would yield incorrect results.

Jerry C. Adams
IBM System i Programmer/Analyst
B&W Wholesale
office: 615-995-7024
email: jerry@xxxxxxxxxxxxxxx

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.