RPGspIsMainProg Function


Determines if an RPGsp program is the first program in the call stack.


Syntax

RPGspIsMainProg(program name)

Part Description
program name Required. Character expression representing the program name associated with the dynamic RPGsp page.


Remarks

The function is used by the Green-Screen to Web conversion process. The first program in the call stack is the controlling program listed in the URL.

Example

The following example demonstrates the use of RPGspIsMainProg at the end of a converted program. If the program is not the first program in the call stack, it returns to its caller. Otherwise, the user is prompted to close the browser window using a JavaScript call to window.close().


See Also

RPGspNeedOutput


Profound Logic Software, Inc.
www.ProfoundLogic.com
(937) 439-7925