Hi just came up with this
Create procedure Customer.SelectCustomers
LANGUAGE SQL READS SQL DATA
SELECT * from Customer.Customers;
It says
A syntax error was detected at token SQL. Token SQL is not a valid token. A partial list of valid tokens is C CL COBOL COBOLLE FORTRAN PLI RPG RPGLE JAVA. This list assumes that the statement is correct up to the token. The error may be earlier in the statement, but the syntax of the statement appears to be valid up to this point.
Is a trigger necessary ? Following tutorial from here
iSeries Information Center
Update---
tried this one as well
Create procedure Customer.SelectCustomers()
LANGUAGE SQL
READS SQL DATA
main:BEGIN
SELECT * from Customer.Customers;
END main
Thanks, Mike.