OK would like to look into REXX. Can you suggest a place to learn with SIMPLE examples to start?
Thanks
-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of John Yeung
Sent: Friday, March 30, 2012 11:16 AM
To: Midrange Systems Technical Discussion
Subject: Re: Is there a better way to run SQL in a CL pgm?
On Fri, Mar 30, 2012 at 10:44 AM, Dave <dfx1@xxxxxxxxxxxxxx> wrote:
Unfortunately there was an issue with REXX and SQL
after V6R1 in certain conditions.
Well, that doesn't change the fact that REXX has awesome string
handling and awesome integration with CL. So you can still just
compose your SQL string with REXX, and then issue the appropriate CL
command to invoke the SQL-executing tool of choice (in this case, the
OP is happy with RJS's DOCSQL).
Really, using "static" CL commands through REXX is virtually as simple
as using CL itself. (Just wrap your entire CL command in
double-quotes and you are done.) But when you want your CL command to
be dynamically composed, then REXX becomes way, way easier than CL,
because you can just intersperse your literal and variable portions
together (no *TCAT). It's ludicrously easy. And that's not even
touching on REXX's structured programming features and advanced
parsing, etc., etc., etc.
John
As an Amazon Associate we earn from qualifying purchases.