View Full Version : Unclear what the keyword EXTPGM does.
01-01-1995, 02:00 AM
Could someone please explain the purpose of EXTPGM and how it is used. I would be very grateful for a quick answer. Regards
06-26-2000, 05:41 AM
What type of exit program are you refering to. In ILE, for the AS/400 servers, for commands?
06-28-2000, 12:42 PM
If you are talking about RPG prototypes, EXTPGM indicates the program to be called. If you're not talking about RPG prototypes, please be more specific. In case it's RPG you're talking about: <pre> D getFileInfo pr extpgm('MYLIB/GETFINF') D ... parms ... C callp getFileInfo ( ... parms ...) </pre> This indicates that when getFileInfo is called, the actual program to be called is MYLIB/GETFINF. If you don't know the name of the program until runtime, you can put a character-variable-name in EXTPGM, and set the variable before you make the call. Barbara Morris
Powered by vBulletin® Version 4.1.5 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.