|
You can't pass a date data-type from the command line via the CALL opcode. You would need to write a command definition object and point it at your program. Then the parms would go over just fine. -Bob Cozzi www.RPGxTools.com If everything is under control, you are going too slow. - Mario Andretti -----Original Message----- From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Tyler, Matt Sent: Friday, July 15, 2005 4:38 PM To: 'RPG programming on the AS400 / iSeries' Subject: RE: Error "Domain Violation Occured" Douglas, Call from the command line PGMA ('07/15/2005') (if the date is in *USA format, the passed value and the pgm field must be the same format). It gets translated just fine. D DATE s d C *ENTRY PLIST C PARM DATE C DATE DSPLY C EVAL *INLR = *ON C RETURN Thank you, Matt Tyler WinCo Foods, LLC mattt@xxxxxxxxxxxxxx -----Original Message----- From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Douglas W. Palme Sent: Friday, July 15, 2005 3:24 PM To: RPG programming on the AS400 / iSeries Subject: Re: Error "Domain Violation Occured" I was trying to pass it from the command line.... On Fri, 15 Jul 2005 16:44:25 -0400, Paul Morgan wrote > Doug, > > Are you trying to pass the dates in from a CL program or the command > line? You can't pass a date data type from those sources into your > program. Your program is trying to display those dates and they > aren't in the right internal format for a date. The data isn't in > the date 'domain' - not a real date. > > Paul > > -- > Paul Morgan > Senior Programmer Analyst - Retail > J. Jill Group > 100 Birch Pond Drive, PO Box 2009 > Tilton, NH 03276-2009 > Phone: (603) 266-2117 > Fax: (603) 266-2333 > > Douglas wrote > > > One of my programs requires an incoming parameter, actually three of them. > > > > I have the parameter names declared as standalones: one with a length of 2 > > alpha and the other two as dates with a datfmt of *USA > > > > DDENDDATE S D DATFMT(*USA) > > DDSTARTDATE S D DATFMT(*USA) > > DALPHPARM S 2 > > > > I am using an *entry statement as follows: > > > > C *ENTRY PLIST > > C PARM ALPHPARM > > C PARM DSTARTDATE > > C PARM DENDDATE > > > > I have ran this in debug mode, in order to check and make sure that I am > > passing the parms correctly, however when I F11 on the dstartdate and > > denddate parms I get the above error message: "Domain Violation Occured" > > > > Does anyone have any clue what the heck this is about? > > > > Douglas > > -- > 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. If you bought, it was hauled by a truck - somewhere, sometime.
As an Amazon Associate we earn from qualifying purchases.
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.