× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Venu (et al),

In a message dated 97-05-08 16:50:25 EDT, you write:

> >If you pass the character variable as one character larger than it needs
to
> >be with the last character non-blank, you can receive the variable with
the
> >correct length and you will not have any problems.
>  
>  It is really confusing. What is the purpose of passing a variable of
length
>  41 and in the called pgm receiving it as a parameter of length 40? What is
>  the theory behind this? Is there any specifica cause for IBM to make it
>  work like this? Some years back, a similar problem I have seen. If we try
>  to send message to work station using SNDPGMMSG and the message length is
>  more than 32, we get some jumbled message. Is this anyway related to the
>  same CMD parm problem? Why I am asking is in both the cases the length of
>  the parameter is restricted for 32 and if it crosses, we face problems or
>  we have to use some other logic.
>  
>  Can anybody explain me what is the purpose of defining it for a maximum
>  length of 32? Thanx in advance for any help / suggestions.

I don't understand it either!  Parameters on the /400 don't seem to work well
at all unless you adjust them for each case.  RPG-CL numeric variables need a
length (even calling QCMDEXC) of 15.5 -- what's up with that?  It is SO
annoying to submit an RPG program (don't know if the other languages are like
this) from a CL using data structures, and have the second structure "cave
in" on top of the first if the first isn't completely populated!!!  The BPCS
"submit job" API populates the last character of the first variable with an
"X" if it is blank to prevent the latter, but why does it happen in the first
place??!!!

Annoyed,

Dean Asmussen
Enterprise Systems Consulting, Inc.
Fuquay-Varina, NC  USA
E-Mail:  DAsmussen@AOL.COM

"A study of economics usually reveals that the best time to buy anything is
last year." -- Marty Allen
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* This is the Midrange System Mailing List!  To submit a new message,   *
* send your mail to "MIDRANGE-L@midrange.com".  To unsubscribe from     *
* this list send email to MAJORDOMO@midrange.com and specify            *
* 'unsubscribe MIDRANGE-L' in the body of your message.  Questions      *
* should be directed to the list owner / operator: david@midrange.com   *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *


As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.