PARADATA (CONCAT) keeps files open

Discussions about CSEntry
Post Reply
Harry
Posts: 7
Joined: June 17th, 2021, 7:16 pm
Location: Costa Rica

PARADATA (CONCAT) keeps files open

Post by Harry » June 27th, 2021, 10:45 pm

Dear CSPRO users,

I have an entry application that concats some paradata files, using paradata(concat, ....), but I need to replace the concatenated paradata files with new ones. The issue is that looks like the paradata(concat,...) function keeps open all the files after the concatenation, so I can not replace or delete them. Just to show the problem I wrote this basic program:

PROC GLOBAL
PROC PARADATATEST_DIC_FF
PROC BUTTOM
if $ = 0 then
stop(-1);
endif;
paradata(concat,"paradata3.cslog","paradata1.cslog","paradata2.cslog");
if !filedelete("paradata1.cslog") then
errmsg("paradata1.cslog can not be deleted");
endif;
reenter;




The paradata1.cslog file can not be deleted because the paradata(concat,..) keeps it open. I am attaching this program to replicate the problem.

Kind regards
Harry Hernandez
Attachments
paradatatest.zip
(53.58 KiB) Downloaded 18 times

Gregory Martin
Posts: 1534
Joined: December 5th, 2011, 11:27 pm
Location: Washington, DC

Re: PARADATA (CONCAT) keeps files open

Post by Gregory Martin » June 28th, 2021, 8:25 am

Thank you for reporting this problem and supplying a nice test application. This is indeed a bug, which I just fixed. The fix will be in CSPro 7.6.2, which we hope to release this week.

Post Reply