1 CREATE 2 %Routinetyp 3 Routinename ( 4 %Parameterliste 5 ) 6? %Rückgabetyp 7? %Sprache 8? %Ergebnis 9 %Routinehauptteil Routinetyp 1 FUNCTION 1 PROCEDURE Parameterliste 1+ , 1 %Parameter Parameter 1 IN 1 OUT (1) 1 INOUT 2 Parametername 3.0? CONSTANT 3.1 Datentyp 3 NAMESPACE (2) 3 NAME Rückgabetyp 1 RETURNS Datentyp Sprache 1 LANGUAGE 2 ESQL 2 DATABASE (3) 2 JAVA Ergebnis 1 DYNAMIC RESULT SETS ganze Zahl Routinehauptteil 1 Anweisung 1 EXTERNAL NAME ExterneRoutineName