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

My C program has a string arg which works fine when i do
call pgm 'this is the string'

But I made a CMD interface, so I could:
CMD PARM('this is the string')

Of course the string that gets passed is full of junk at the tail end.. I can
overcome this with SBMJOB CMD(CMD PARM('this is text')) but how can I call it
interactively?

BTW I have written a CL wrapper to get/examine the returned arg, and I guess
I could use this to pass the string length or append a \0 at the right
place... but am i overcomplicating this?

NB if this isn't as common as I think it is, my string lengths are 9999 in
the CMD, CL and C...

Thanks,



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.