1 CREATE 2 %RoutineType 3 RoutineName ( 4 %ParameterList 5 ) 6? %Rückgabetyp 7? %Sprache 8? %Ergebnis 9 %Routinehauptteil RoutineType 1 FUNCTION 1 PROCEDURE Parameterliste 1+ , 1 %Parameter Parameter 1 IN 1 OUT (1) 1 INOUT 2 Parametername 3.0? CONSTANT 3.1 DataType 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 Ganzzahl Routinehauptteil 1 Anweisung 1 EXTERNAL NAME ExternalRoutineName