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



Is this an actual RPG400 aka RPG III program?

Or is this RPG IV?

if RPGIII, the date column will be defined as a fixed length character
field. You'll need to use CVTOPT(*DATETIME) on the CRTRPGPGM command.

IIRC, the format of the data passed between your program and the DB is
dependent on the DATFMT() keyword used in the DDS source for the file.
You'll need to format the data to be compliant when writing to the file.

FYI: it's a lot simple to use RPG IV witch has native support of date,
time, and timestamp fields.

Charles

On Tue, Jan 20, 2015 at 6:35 AM, Mustapha Alhiane <malhiane1@xxxxxxxxx>
wrote:

Hello,

Can you tell me how we can affect a value in RPG400 to PF field with a type
L (Date)?

Sincerlly,
Stéphane.
--
This is the RPG programming on the IBM i (AS/400 and 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 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.