|
Peter, That makes sense. I was still viewing it from the perspective of not using variable length fields which is where I started with this. The variable lengths was the last attempt to resolve the situation. I created a command to use instead of calling the program directly and it seems to be working fine. Still a couple more tests to go. Rick
-----Original Message----- From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Peter Levy Sent: Wednesday, October 25, 2006 2:17 PM To: RPG programming on the AS400 / iSeries Subject: Re: Parameters passed not what is received It actually isn't being combined. It just looks that way. Parameters are like variables based on pointers. The dump program probably mistook the varying size as 50135, so it was trying to print out everything in the field. Your string is actually 32 bytes, but it cut off the first two so that reduces it to 30. In addition the CALL command allocates storage for the parameters and they're usually right next to each other (with a space or two in between). So your parameter says it's "40 bytes varying", the size says it's 50135 and there's only 30 bytes of data in the field, so when the dump program outputs the data in storage it looks like it's simply outputting 40 bytes of storage from the starting point of that parameter, which overruns into the next parameter's data. Rick.Chevalier@xxxxxxxxxxxxxxx wrote:Peter, I think I understand what you're saying, that's why I included the message written to the job log. The parms look like they are being passed correctly so why are the values being combined? Itlooks to melike a parameter mismatch but if it is I'm not seeing it. Maybe something isn't honoring the end of parameter marker?
Privileged and Confidential. This e-mail, and any attachments there to, is intended only for use by the addressee(s) named herein and may contain privileged or confidential information. If you have received this e-mail in error, please notify me immediately by a return e-mail and delete this e-mail. You are hereby notified that any dissemination, distribution or copying of this e-mail and/or any attachments thereto, is strictly prohibited.
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.