Not be able to create 'Hello World' procedure in Pro

Posted by Admin on 02-Nov-2009 09:14

Hi Everyone,

I tried to create the first procedure in Progress database but I had some compile errors. Anyone see any problem with the most simple procedure we can write?

// My  procedure
CREATE PROCEDURE erp.Test01()
BEGIN

    String message ="Hello World";

END

// Errors

CREATE PROCEDURE erp.Test01()
BEGIN

    String message ="Hello World";
13:01:39  [CREATE - 0 row(s), 0.000 secs]  [Error Code: -210056, SQL State: S1000]  [DataDirect][ODBC Progress OpenEdge Wire Protocol driver][OPENEDGE]Syntax error in SQL statement at or about "  String message ="Hello World"" (10713)
END;
13:01:39  [END - 0 row(s), 0.000 secs]  [Error Code: -210056, SQL State: S1000]  [DataDirect][ODBC Progress OpenEdge Wire Protocol driver][OPENEDGE]Syntax error in SQL statement at or about "END" (10713)
... 2 statement(s) executed, 0 row(s) affected, exec/fetch time: 0.000/0.000 sec  [0 successful, 0 warnings, 2 errors]

regards,

Jdang

All Replies

Posted by Admin on 28-Dec-2010 04:10

I have the same problem. Why can not compile the simplest procedures?

Error:

[DataDirect]OpenEdge JDBC Driver][OpenEdge] Syntax error in SQL statement at or about "END" (10713)

I use OpenEdge Architect.

EDIT:

I have found the following:

http://communities.progress.com/pcom/servlet/JiveServlet/download/10355-3-9823/oe_101c_readme.pdf

-----
When you create a Java trigger in the SQL editor, you must add an additional
space before the carriage return after each semicolon. Otherwise, a syntax error
may be displayed: 'syntax Error in SQL statement at or about "End". (10713)
Note: OE00163095 Type: Behavior Change
Database connections available for import/export only after clicking OK
-----

It describes my problem. But is not the solution. I've tried it, but it did not work. 

You may have another idea?

Posted by egarcia on 28-Dec-2010 12:12

Hello,

The syntax error happens because the SQL editor uses ";" as a separator.

This issue can be resolved by changing the "SQL editor separator" to a different value in the Preferences page (Window/Preferences/Progress DB Navigator). For example, "|" could be used instead.

Posted by Admin on 29-Dec-2010 03:03

Yes, it worked. Thank you!

The error no longer occurs, but others. :(

(see also HERE)

This thread is closed