Skip to main content

PREPARE before DECLARE not allowed

  • Feb 15, 2013 11:01 PM UTC
  • 0 replies
  • 3 views

Dominique Sacre
Forum|alt.badge.img+2

Problem:

COBSQ0141E is issued, if a dynamic SQL statement is prepared before it is declared.

This is possible in mainframe DB2, but not in XDB.

Resolution:

use directive XDB(SQLDS)

Old KB# 6623

#MFDS
#EnterpriseDeveloper