X401 Statement can't be issued until the stored procedure has been called.

Either a DESCRIBE PROCEDURE or an ASSOCIATE LOCATOR statement has been executed prior to the CALL to the stored procedure.
Restriction: This topic applies to Windows environments only.