The STRSEU command is not distributed with the attributes needed for compilation in a CL program. That command builds temporary objects to hold its workspace, and it should be run in a program that ensures that the SEU workspace won’t be interfered with.
You can change the command with the CHGCMD command to change the “Where allowed to run (ALLOW)” attribute to include *IPGM if you need it compiled into a program.
You could also simply pass the command string that you want to the QCMDEXC API to run the command without compiling it. That’s probably much better than changing the command definition. The same considerations should be made for avoiding the workspace objects.
Thank you Tom.