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

I am migrating a couple of CL programs into our service programs. Most of the CL commands I am handling using the C function system(), but in a couple of instances I need access to CL variables that are returned by the commands.

The simplest one, returns the library of a file using RTVMBRD. I have done some looking into the APIs and know I could use QDFRTVFD, but by all accounts it is the most complicated API to manage. I was able to get QUSROBJD to work, so this is handled.

All this experimentation got me wondering of there might be a simpler way to access returned CL variables... Or will we always need to either us a CL program or APIs?

I have looked into just creating CL modules and attaching them to the Service Program, but each CL module would need to be contained in its own source file, right? I like being able to have many procedures in a single module (RPG ILE), if for no other reason than simplicity.

Any suggestions or best practice recommendations?

Thanks,
JD

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.