That's a massive limitation. If you need to retrieve data then process it,
you'll have to create a new table (usually QTEMP) use select into, or select
create, etc. to load that file, then process that. No cursors........
--
Jim Oberholtzer
Agile Technology Architects
-----Original Message-----
From: MIDRANGE-L <midrange-l-bounces@xxxxxxxxxxxx> On Behalf Of Rob Berendt
Sent: Friday, January 04, 2019 1:12 PM
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>
Subject: RE: DSPFD *USRLIBL Broken?
But I bet the DB2 command plays hell trying to process a cursor.
Rob Berendt
--
IBM Certified System Administrator - IBM i 6.1 Group Dekko Dept 1600 Mail
to: 2505 Dekko Drive
Garrett, IN 46738
Ship to: Dock 108
6928N 400E
Kendallville, IN 46755
http://www.dekko.com
From: "Jim Oberholtzer" <midrangel@xxxxxxxxxxxxxxxxx>
To: "'Midrange Systems Technical Discussion'"
<midrange-l@xxxxxxxxxxxx>
Date: 01/04/2019 02:09 PM
Subject: RE: DSPFD *USRLIBL Broken?
Sent by: "MIDRANGE-L" <midrange-l-bounces@xxxxxxxxxxxx>
I use the DB2 command from PASE to run SQL in CL all the time. I think
there are newer methods available now but the DB2 command just does the
job
without too much falderal to set it up. Plus, it's the same interface
that
can be used in other languages as well. I don't think that qualifies as
the CLI but it's dang close.
--
Jim Oberholtzer
Agile Technology Architects
-----Original Message-----
From: MIDRANGE-L <midrange-l-bounces@xxxxxxxxxxxx> On Behalf Of Rob
Berendt
Sent: Friday, January 04, 2019 1:04 PM
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>
Subject: Re: DSPFD *USRLIBL Broken?
Has anyone used SQL-CLI within CL?
The old redbook "Who Knew You Could Do That With RPGIV..." had examples of
SQL-CLI within RPG as an alternative to imbedded SQL.
Then again, using SQL-CLI in a program which is trying to be an example of
using UIM in CL might be a little intimidating.
Rob Berendt
As an Amazon Associate we earn from qualifying purchases.