|
I also have much better luck with data structures. I have a couple of programs similar to yours and in those I passed one long string containing all 4 values. In the sender I lump all 4 into on char variable and in the receiving program I use %SUBST to get each individual item, if it then needs to be numeric on that side I just use MOVE. Dave Reiher System Analyst Prairie Farms Dairy - Corporate dreiher@xxxxxxxxxxxxxxxx "Booth Martin" <booth@xxxxxxxxxxxx> Sent by: rpg400-l-bounces@xxxxxxxxxxxx 10/27/2005 10:39 AM Please respond to RPG programming on the AS400 / iSeries <rpg400-l@xxxxxxxxxxxx> To "RPG programming on the AS400 / iSeries" <rpg400-l@xxxxxxxxxxxx> cc Subject Re: Passing Parms In situations like this I sometimes change something, anything, to make it break. That sometimes shows me info. Another thing, which I admit is a foible, is that I prefer to pass a data structure and use only one parm. Much easier for maintenance later on. --------------------------------- Booth Martin http://www.martinvt.com --------------------------------- -------Original Message------- From: RPG programming on the AS400 / iSeries Date: 10/27/05 09:12:42 To: RPG programming on the AS400 / iSeries Subject: Re: Passing Parms Actually the four parms are being passed have a field length of 10, 10, 3, 3 and I am passing the following: '02/01/2005' '01/31/2006' 'med' 'air' On Thu, 27 Oct 2005 07:54:49 -0400, Buck wrote > > Odds are one of the parms is defined > > as more than 30 bytes and you're > > passing in less than 30 characters > > from the command line (via "CALL" > > I would guess). > > There's a FAQ that talks about this sort of thing. > http://faq.midrange.com Search on the word garbage. > --buck > -- > 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, it was hauled by a truck - somewhere, sometime. -- 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-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.