Problem solve Get help with specific problems with your technologies, process and projects.

What exactly are exit programs?

I've heard a lot about exit programs lately. Can you give me an overview of what they are and how they work? I need to write a couple. Also where can I find some examples? I need to write one for the QIBM_QCA_RTV_COMMAND.

Exit programs are used to trap single transactions when a command or process is used on the system to allow programmatic validation. The Exit point you are asking about is called when an exit point is reached for a command that contains a registered exit program. When a command is processed by OS/400, it calls the syntax-checking program to verify the proper syntax and format. This exit point would be called before any user-defined Command Processing Program, or CPP. I don't have any examples for using this API, but you can find the documentation for it here.


The Best Web Links: tips, tutorials and more.

Ask your systems management questions--or help out your peers by answering them--in our live discussion forums.

Dig Deeper on RPG iSeries programming

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.