Hi,
DB2 document says that the limit of statement variable lengh in DB2 is 18 characters.
But it accepts only 16 characters as such. I think, it internally appends some two characters, which I infer from the below error when I tried for 18 characters :
declare stmtaaaaaaaaaaaaaa statement; // It gave the below error with 18 character
Error :
--------
SQL0060W The "C" precompiler is in progress.
376 SQL0107N The name "STMTAAAAAAAAAAAAAA_2" is too long. The
maximum length is "18".
SQL0095N No bind file was created because of previous
errors.
SQL0092N No package was created because of previous
errors.
SQL0091W Precompilation or binding was ended with "3"
errors and "0" warnings.
But it works fine, if the following statement is given :
declare stmtaaaaaaaaaaaa statement; // with 16 characters
Can anyone tell, what is the exact variable limit for statement variables in DB2 ?
Please advice,
Thanks,
Sam