× 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 Albert,


How do I design parmpath so it can be run from qshell?


Qshell will pass it as a variable-length null-terminated (C-style) string.

So instead of 'Path = ParmPath', you'd want to have Path = %str(%addr(ParmPath)) and instead of PathLen = %len(%trimr(ParmPath)) you'd want to have PathLen = %len(%str(%addr(ParmPath)))

Or simply PathLen = %len(%trim(Path)), and put it after the Path=%str(%addr(ParmPath)) line.

The point is that ParmPath wouldn't be passed as 256A, and wouldn't necessarily be 256 chars long, you'd have to search for the trailing x'00' (which is what the %str() BIF does) and copy it into a regular RPG variable from there.

As an Amazon Associate we earn from qualifying purchases.

This thread ...

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.