Dennis

The example I gave is a CALL from a command line - if one uses it, even against Scott's sage counsel (and I do agree that there are risks) - then build a prototype as you need - the order of the parameters is not material, other than it needs to reflect the order as given in the documentation for the QShell function - I think they could all be character parameters - in fact, they have to be - think of the MAIN in C - argc and argv - the former being how many arguments and the latter being an array of pointers to chars.

No return value, unless it'd be an integer - hmmm - interesting - that would not be surprising.

There's no overhead here - it is a simple call to a program in a library.

But YMMV - widely perhaps

Vern

Dennis Lovelady wrote:
Every command in QShell is a symbolic link to a program - those
programs
handle parameters the way a C program does - in my experience. There is
a MV command in QShell, and its program is QSHELL/MV. This is an
example
of using it that does just what you want -

call QSHELL/MV ('/home/vern/aab.txt' '/home/aab.txt')

>From which language is the CALL done, Vern? If from QSHELL, then this just
introduces unnecessary overhead (we could just use "mv" directly). If RPG,
what does the prototype look like? Is there a return value?

Dennis Lovelady
http://www.linkedin.com/in/dennislovelady
--
This house is owned and operated solely for the comfort and convenience of
the cats.


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.