× 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.



Hi Vern,

Srinivas - the length parameter has to be the exact length of the command - you are better off using something like %len(%trim(cmd)) in
a prototyped call of QCMDEXC - I think someone gave you what the
prototype and the call look like.

Huh? QCMDEXC doesn't require the length to be the exact length of the command... QCMDEXC will happily ignore trailing spaces. Unless this is some new V6R1 thing?!

Also, %len(%trim(cmd)) is wrong. It should be %len(%trimr(cmd)). You don't want to trim LEADING blanks when calculating the length -- consider the following example:

command='bbbbWRKSPLF' (where b=blank)

If you do a %len(%trim(command)) it'll come up with 7, since it'll trim the 4 leading blanks. When you pass this command to QCMDEXC, the API will only look at the first 7 characters 'bbbbWRK', and therefore give an error on a perfectly valid command.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

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.