I have desinged a REXX tool which manipulates COBOL code. It needs to be executed on an open COBOL program.
The tool works perfect when i open this module in View mode but does not while i go in Edit mode. The code that i have used is given below:
I am getting a return code of 28 for the Find Command. Kindly suggest me if i am missing some basic functionality in here.
UNNUM = UNNUMMAC()
FNDPRNAM = FINDPROG()
The FINDPROG Routine:
"F ALL '" || PROGID ||".' 8"
Please note that in the Macro Unnummac, i have an Address ISREDIT Macro statement. The Routine FINDPROG does not have such a statement.
Also, FINDPROG works fine when i put an ISREDIT macro statement and run it as a macro on any open cobol module.