Vicki

There's usually an SQLxxxx message sent for any SQLCODE - in a program, you can check SQLCODE.

On a command line, look in the job log - here's the SQL793E message -

SQL793E
Message . . . . : MERGE statement complete.
Cause . . . . . : The MERGE statement completed successfully for table or
view &1 in &2. &3 rows inserted. &4 rows updated. &5 rows deleted.

HTH
Vern

On 3/4/2015 1:29 PM, Vicki Wilson wrote:
Hi all,

I've been using MERGE in RDi using the Database Development perspective.

It's fun - but I'm not getting any information back that tells me how many rows were changed.

I have not yet used MERGE in an RPG program - but if I were doing so I assume I could check SQLCA to get info back.

Is something like this possible when running statements interactively?

When I run a straight select statement I get info on the bottom telling me the total # of records. Would a different editor help?

Can I retrieve information after the statement runs?? I've used GET DIAGNOSTICS in the past - but it can't be run interactively.

Vic




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.