java.lang.Object execBlock (Block-Name) |
configuration section. repository. class cobshell as "com.iscobol.cobshell.CobShell" ... working-storage section. 77 joe object reference cobshell. ... procedure division. ... try joe:>execBlock ("showVersion") catch exception display exception-object end-try. |
java.lang.Object execBlock (Block-Name, Arguments) |
configuration section. repository. class cobshell as "com.iscobol.cobshell.CobShell" ... working-storage section. 77 joe object reference cobshell. 77 joe-result pic x any length. 77 w-id pic x any length. ... procedure division. ... try set joe-result to joe:>execBlock ( "checkID", w-id ) display joe-result catch exception display exception-object end-try. |