CallFunc(function:sub-function)
Function = name of a function in SSAPD001P
Sub-function = name of a subfunction in SSAPD001P (optional)
SOA = If this is set to ‘SOA’, it any changes to function/subfunction names, are reset to “before the callfuncXML was executed

Return type:
Error indicator

Description:
This is a function is used when building applications that utilize the full potential if iSeries2web. Instead of calling a program “hardcoded” you call a function. The name of the function and an optional sub-function will still be hardcoded, but you can now use the iSeries2web fileSSAPD001P to setup which program you call, depending on system, user, function and subfunction.

This way you get a very flexible deployment system for new applications and the ability to setup many functions that call the same program or same function that call different programs

Example:

If callfunc(‘order’:’edit’)
dspmsg(‘error_occoured’:error)
Endif

Notes and Restrictions:
Function and sub functions are case sensitive.