|
Unfortunately, according to the manual, get diagnostics can only be used in an embedded program, not interactively:
"This statement can only be embedded in an application program, SQL function,
SQL procedure, or trigger. It cannot be issued interactively. It is an executable
statement that cannot be dynamically prepared."
Tim.
________________________________
From: MIDRANGE-L <midrange-l-bounces@xxxxxxxxxxxxxxxxxx> on behalf of Don Brown via MIDRANGE-L <midrange-l@xxxxxxxxxxxxxxxxxx>
Sent: 18 June 2020 00:27
To: midrange-l@xxxxxxxxxxxxxxxxxx <midrange-l@xxxxxxxxxxxxxxxxxx>
Cc: Don Brown <DBrown@xxxxxxxxxx>
Subject: ACS Run SQL Scripts - define a variable
In a post from Jon Paris on a different thread Jon suggested using
exec sql GET DIAGNOSTICS :Rows = ROW_COUNT ; to get the number of rows
returned by the previous select.
Is it possible to do this in the ACS run SQL Scrips - How can I define a
variable to receive the row count into ?
Thanks
Don
______________________________________________________________________
This email has been scanned for computer viruses. Although MSD has taken reasonable precautions to ensure no viruses are present in this email, MSD cannot accept responsibility for any loss or damage arising from the use of this email or attachments.
______________________________________________________________________
--
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://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.midrange.com%2Fmailman%2Flistinfo%2Fmidrange-l&data=02%7C01%7C%7Cf7c0e1818e6046bbf3f708d8130d9e81%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637280296493560955&sdata=7bPjVk1LBoor4sWP4RflzIaslZKx2QV%2B4YXVOAaK%2Fbk%3D&reserved=0
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Farchive.midrange.com%2Fmidrange-l&data=02%7C01%7C%7Cf7c0e1818e6046bbf3f708d8130d9e81%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637280296493560955&sdata=pgU2%2Bit6uIHLc86bv6A9a2%2Ftz%2Bofr0SzZFO4hMdf6TQ%3D&reserved=0.
Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related questions.
Help support midrange.com by shopping at amazon.com with our affiliate link: https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Famazon.midrange.com%2F&data=02%7C01%7C%7Cf7c0e1818e6046bbf3f708d8130d9e81%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637280296493560955&sdata=ablakW424k5Kvsibq5FGPZ%2FJFPqyRwLHkOG%2BeHHxQQE%3D&reserved=0
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.