Yes, but you'll need to do this in a couple of steps. First, build a string that concatenates the Global Variable into the CL Command where you need it (include any pertinent quotes), then pass the entire string to QCMDEXC.
Call QSys2.QCmdExc(xCLCmd);
Herb.
Herbert Rea | Mason Associates, Inc. | Falmouth, Maine | 207.347.3557
________________________________
From: Justin Taylor <jtaylor.0ab@xxxxxxxxx>
Sent: Monday, October 6, 2025 11:51 AM
To: MIDRANGE-L <midrange-l@xxxxxxxxxxxxxxxxxx>
Subject: Use global variable in RSS CL?
I want to use a SQL global variable in a Run SQL Scripts CL: command. Is
that possible? If so, how?
Thanks
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit:
https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.midrange.com%2Fmailman%2Flistinfo%2Fmidrange-l&data=05%7C02%7Cherbr%40masonassociates.com%7C6568e49918a840459dd008de04f03550%7C93f29ae1ee21447692c5e2f250e4284e%7C0%7C0%7C638953626911016192%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C4000%7C%7C%7C&sdata=Ed3bSic8F43Wua07HWxeUbzdTsAd5YLQXqjbj65%2BBG0%3D&reserved=0<
https://lists.midrange.com/mailman/listinfo/midrange-l>
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at
https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Farchive.midrange.com%2Fmidrange-l&data=05%7C02%7Cherbr%40masonassociates.com%7C6568e49918a840459dd008de04f03550%7C93f29ae1ee21447692c5e2f250e4284e%7C0%7C0%7C638953626911067798%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C4000%7C%7C%7C&sdata=I9tzBS6TTiQYSGvWpnX3Nj6QHEst6aFycTO4Ruk8tVY%3D&reserved=0<
https://archive.midrange.com/midrange-l>.
Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related questions.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.