Skip to content

Add support for excluding SQLCODE values from SELF - #607

Open
SanjulaGanepola wants to merge 4 commits into
mainfrom
feature/self-excludes
Open

SanjulaGanepola wants to merge 4 commits into
mainfrom
feature/self-excludes

Conversation

@SanjulaGanepola

Copy link
Copy Markdown
Member

Changes

SELF - Exclusion list support-> https://www.ibm.com/support/pages/ibm-i-76-tr3-enhancements

SELF on IBM i was recently enhanced to support excluding one or more SQLCODE values using the EXCLUDING keyword which is added directly after one of the special values (*ERROR, *WARN, or *ALL). After the EXCLUDING keyword, a list of up to 32 SQLCODE values separated by blanks or commas can be provided in the string.

-- Capture deetz for all SQL errors, except -204 and -501
SET sysibmadm.selfcodes = '*ERROR EXCLUDING -204,-501';

This PR adds new controls for enabling this:

1. The default used for any new jobs can be set in the settings using Default Job Settings -> SELF and editing the Job SELF Excludes:

image image

2. A specific job can be can be set by right-clicking a job and using Set excludes for SELF

image image

How to test this PR

  1. Set the excludes in the global or job specific setting.
  2. Run an SQL query that would cause that error.
  3. Observe that it is excluded in the SELF view.

Checklist

  • have tested my change

Signed-off-by: Sanjula Ganepola <Sanjula.Ganepola@ibm.com>
Signed-off-by: Sanjula Ganepola <Sanjula.Ganepola@ibm.com>
Signed-off-by: Sanjula Ganepola <Sanjula.Ganepola@ibm.com>
Signed-off-by: Sanjula Ganepola <Sanjula.Ganepola@ibm.com>
@SanjulaGanepola
SanjulaGanepola requested review from a team and forstie December 4, 2026 21:03
@github-actions

github-actions Bot commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

👋 A new build is available for this PR based on b9daaa9.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant