×
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.
Francois,
Sorry, perhaps I wasn't clear. I'm referring to inserting quotes into a
string. I agree with the way you've done it.
My opinion is that I prefer to read code like this:
DCL-C RMTSQL 'CALL &s/QSYS2/QCMDEXC(''&c'',&l)';
I find the above easier to read than this:
DCL-C Q '''';
DCL-C RMTSQL 'CALL &s/QSYS2/QCMDEXC(<Q>&c<Q>,&l)'
Result = %SCANRPL('<Q>': Q: RMTSQL);
Or this:
DCL-C Q '''';
Result = 'CALL &s/QSYS2/QCMDEXC(' + Q + '&c' + Q + ',&l)'
These methods of inserting quotes do not make the code more readable. I
have no problem with inserting command strings via %SCANRPL.
-SK
On 2/18/2021 10:35 AM, Francois Lavoie wrote:
What do you find hard to read in plain command string define like this?
DCL-C RMTSQL 'CALL &s/QSYS2/QCMDEXC(''&c'',&l)';
As an Amazon Associate we earn from qualifying purchases.
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.