I have some spl which looks like the following:
...
DECLARE QCTLSBSD VARCHAR(10);
...
SET QCTLSBSD = null;
...
I am trying the create procedure in Run SQL Scripts. I've debugged the earlier errors and now I'm down to just this one. On the earlier ones Run SQL Scripts flagged right where the error was occuring. On this one I have to find some QSYSPRT on the i and see
...
CASE QCTLSBSD
WHEN NULL THEN
...
Record *...+... 1
512 = NULL ;
MSG ID SEV RECORD TEXT
SQL0128 30 512 Position 4 Use of NULL or UNKNOWN is not valid.
If I try changing
SET QCTLSBSD = null;
to
SET QCTLSBSD is null;
Then Run SQL Scripts stops it with
Message: [SQL0199] Keyword IS not expected. Valid tokens: =.
------------------------------
Robert Berendt IBMChampion
Business Systems Analyst, Lead
Dekko
Fort Wayne
260-599-3160
------------------------------
#SQL