You specified a command suffix for a command that does not accept suffixes.
Check the description of ed in z/OS UNIX System Services Command Reference for a list of valid commands and their syntaxes.