|
Matt, I'm not sure what errors you were running into that made you think you have to use Like() defines for MODS subfields, but I was able to define the subfields with explicit definitions. Kurt Anderson Application Developer Highsmith Inc -----Original Message----- From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Tyler, Matt Sent: Friday, July 15, 2005 4:07 PM To: 'RPG programming on the AS400 / iSeries' Subject: RE: Embedded SQL - fetching a date Kurt, Here is what I seem to understand. It looks like you NEED to make sure the date formats from SQL and your program are the same. I kept getting date, time, timestamp errors if they were not. (So, I will be changing the SET OPTION DATFMT = *ISO since I apparently have not used date fields only timestamp fields.) Another thing concerns the host structure. If you are going to use MODS, then you MUST like() define the subfields. I tried many times to explicitly define each sub field, only to have the pre-compiler bark about the host structure. If you host structure is not a MODS then its okay to explicitly define them. Thank you, Matt Tyler WinCo Foods, LLC mattt@xxxxxxxxxxxxxx -- 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.