I have created a SQL Table that is used only in one program. This table will be populated by the program and then email from the SQLRPGLE program. I do have imbedded within the program to do a CLRPFM for this table. I also have the table defined as USROPN and also use a SQL Cursor. Both of these are closed prior to the *INLR = *ON.
The first time that I process the program, everything works correctly. However, when I try to test the program a second time, I get a CPF3130 file in use error. Is there some other command that I'm missing that I need to use to close this table?
The first time that I process the program, everything works correctly. However, when I try to test the program a second time, I get a CPF3130 file in use error. Is there some other command that I'm missing that I need to use to close this table?
Comment