15 pts.
 Interactive command in CL
How to successfully compile a CL program that has an interactive command such as STRSEU?

Software/Hardware used:
AS/400
ASKED: April 13, 2011  2:13 PM
UPDATED: May 2, 2011  11:44 PM

Answer Wiki:
You compile the program the same way you would compile any program. You would just need to execute it interactively
Last Wiki Answer Submitted:  April 13, 2011  10:39 pm  by  CharlieBrowne   32,855 pts.
All Answer Wiki Contributors:  CharlieBrowne   32,855 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

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.

Tom

 108,055 pts.

 

Thank you Tom.

 15 pts.