Question Running mf.p more than once in the same procedure (QADSE)

kjakubus

New Member
Hello, did anyone run into the issue of running mf.p more than once in the procedure? It seems mf.p does not actually execute the second occurence of mf.p, only the first one, does anyone have a fix/workaround for that?. I'm running into this issue on QADSE, QADEE seems to actually allow you to run mf.p multiple times and the code works properly.

Sample code:

Code:
OUTPUT TO VALUE(CIM1).
  /* CIM 1 */
OUTPUT CLOSE.

/* First CIM - Works */
INPUT FROM VALUE(CIM1).
OUTPUT TO VALUE(OUT1).
DO ON QUIT, LEAVE:
  RUN mf.p.
END.
INPUT CLOSE.
OUTPUT CLOSE.

/* File is created */
OUTPUT TO VALUE(CIM2).
  /* CIM 2 */
OUTPUT CLOSE.

/* Second CIM - Does not work and does not output anything */
INPUT FROM VALUE(CIM2).
OUTPUT TO VALUE(OUT2).
  RUN mf.p.
INPUT CLOSE.
OUTPUT CLOSE.
 
Top