You specified a command that cannot be used with the issued global command (g, v, G, or V).
Check the description of ed in z/OS UNIX System Services Command Reference for a list of commands that cannot be used with the various global commands.