Create array in DB2 on zOS ends in SQLCODE=-104.

Post a reply


This question is a means of preventing automated form submissions by spambots.
Smilies
:D :) ;) :( :o :shock: :? 8-) :rofl: :x :cry: :P :oops: :!: :twisted: :roll: :evil: :?: :idea: :arrow: :| :good: :mrgreen: :sorry: :unknown: :yes: :lol:

BBCode is ON
[img] is ON
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Create array in DB2 on zOS ends in SQLCODE=-104.

Re: Create array in DB2 on zOS ends in SQLCODE=-104.

by Anuj Dhawan » Sun Feb 21, 2016 9:15 am

Thanks for the feedback. :)

Re: Create array in DB2 on zOS ends in SQLCODE=-104.

by ArrayinDB2 » Sat Feb 20, 2016 9:09 pm

Thanks it was indeed a code page error. Support is helping on this.

Re: Create array in DB2 on zOS ends in SQLCODE=-104.

by enrico-sorichetti » Wed Feb 17, 2016 10:58 pm

You might have a problem with the code pages used
if You are out of luck using a C like character set with [ and ] then use the corresponding trigraph representation
as suggested by the message
SOME SYMBOLS THAT MIGHT BE LEGAL ARE: Ý ??(
where the ??( is the trigraph corresponding to a [

speak to Your support on how to configure Your 3270 session code page

here are the commonly used trigraphs

Code: Select all

| trigraph | replacement 
------------------------ 
| ??-      | ˜            
| ??!      | |           
| ??’      | ˆ           
| ??(      | [           
| ??)      | ]           
| ??/      | \           
| ??<      | {           
| ??=      | #           
| ??>      | }            

Create array in DB2 on zOS ends in SQLCODE=-104.

by ArrayinDB2 » Wed Feb 17, 2016 10:30 pm

I tried to create an array data type in DB2 on z/OS like this:

Code: Select all

  CREATE TYPE user_var as CHAR(255) array[100];
But it ends in SQLCODE=-104

Code: Select all

DSNT408I SQLCODE = -104, ERROR:  ILLEGAL SYMBOL "[". SOME SYMBOLS THAT MIGHT
         BE LEGAL ARE: Ý ??(

DSNT418I SQLSTATE   = 42601 SQLSTATE RETURN CODE
Have some one tried this before? Can anyone please help to resolve this?

Top