× 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.



...ah, interesting!

Cheers,

Tim.

________________________________
From: MIDRANGE-L <midrange-l-bounces@xxxxxxxxxxxxxxxxxx> on behalf of Niels Liisberg <nli@xxxxxxxxxxxxxxxxx>
Sent: 18 June 2020 12:56
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxxxxxxxx>
Subject: Re: ACS Run SQL Scripts - define a variable

You can use compound statement in ACS that is stred procdure with out the
parameters and only the begin end:

https://eur06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.ibm.com%2Fsupport%2Fknowledgecenter%2Fssw_ibm_i_73%2Fdb2%2Frbafzcompoundstmt.htm&amp;data=02%7C01%7C%7C3fd93f3a725d400d404808d8137653f1%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637280746212862097&amp;sdata=IEM8NN4dm3mtIA0AMiHVItY9meIJk6GuGoQOMMxNhzk%3D&amp;reserved=0

Like this:

begin

declare rows int;

-- do you stuff
GET DIAGNOSTICS Rows = ROW_COUNT ; --to get the number of rows
end;


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.