|
Jim, If the program will *always* be called from the command line, it might be worthwhile just recoding the parameters as 15,5 and EVALing them to the appropriate variables within the program. Mind you, the command interface is probably the most appropriate if you want validation etc. ____________ Paul Cunnane The Learning Company ______________________________ Reply Separator _________________________________ Subject: Re: Entry Parameters Author: Jim Langston <jlangston@conexfreight.com> at InterNet Date: 1/20/00 8:10 AM Hmm... Okay, it was my assumption that when passing variables to an RPGLE program from the command line with parameters, that the system checked the data types of the parameters to make sure they were the same, I guess not. Which is good in this case. And, yes, I understand why it works, but didn't think to try it given my experience with parameter types in other things. Yes, negative numbers could be a pain, but I actually have the list written down as to what symbol is what negative number. It is actually not that hard to remember. } is 0, J is 1 and it goes to R is 9. Capital J and Capital R. Okay, this is doable, although I could not expect my users to know how to put in a negative number, in this case it doesn't matter since there will never be a negative number for the parameters. Er, or there should never be a negative number <g> Hmm... this being the case, it seems that any number passed as a parameter to an RPG program will always have to be passed as a character? I attempted to do a CMD for the program, but it failed with same error, but at that point it is possible that I had the variables defined differently that 15P 2. +--- | This is the RPG/400 Mailing List! | To submit a new message, send your mail to RPG400-L@midrange.com. | To subscribe to this list send email to RPG400-L-SUB@midrange.com. | To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.com +---
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.