Hi Dinesh,
there are subtle differences between using hdbsql from the console or from a file input. In your case, your file might be e.g.
$ cat p3.sql
CREATE PROCEDURE proc2() LANGUAGE SQLSCRIPT AS BEGIN SELECT 1 as "A", 22 AS "B" FROM dummy; END//
CALL proc2()
and you would execute it with
hdbsql -c // -I p3.sql
The catch is in ';' being either a command separator for a stored procedure or for the command input.
-- Micha