Page 1 of 1
Concatenate with Deleted Case ID
Posted: August 29th, 2025, 6:09 am
by YFT_CBSD
Hi all,
how can i do the sample below:
So i have 6 csdbe files, 1 csdbe file = 1 case inside
001.csdbe
002.csdbe
003.csdbe
004.csdbe
005.csdbe
006.csdbe the case is deleted it has a X mark in the data viewer.
So when concatenating it should flag in the .lst file to say that 006.csdbe has deleted cases, using bch application.
Thanks.
Re: Concatenate with Deleted Case ID
Posted: September 8th, 2025, 8:00 am
by Gregory Martin
If you are interested in knowing if a file has deleted cases (for the purpose of outputting text to the listing file), you can do something like this:
numeric non_deleted_cases = countcases(DICT_NAME); // defaults to CaseStatus.NotDeleted
numeric all_cases = countcases(DICT_NAME(CaseStatus.All));
if non_deleted_cases <> all_cases then
errmsg("%d deleted cases in %s", all_cases - non_deleted_cases, filename(DICT_NAME));
endif;
Re: Concatenate with Deleted Case ID
Posted: September 18th, 2025, 5:58 am
by YFT_CBSD
Thanks, i noticed something for example:
001.csdbe
002.csdbe
006.csdbe (case is deleted)
It flags the deleted cases in
But if the order is :
006.csdbe (case is deleted)
001.csdbe
002.csdbe
It doesnt flag.
Re: Concatenate with Deleted Case ID
Posted: September 22nd, 2025, 8:21 am
by Gregory Martin
What do you mean when you say "it doesn't flag"?
I created a test file and I see the deleted case whether it is the first or a later case.
If you're running a batch application, make sure that you set the CaseStatus to All in the application preproc:
PROC APP_FF
preproc
set access(DICT_NAME, CaseStatus.All);
Re: Concatenate with Deleted Case ID
Posted: September 28th, 2025, 11:43 pm
by YFT_CBSD
It's working if the input file is concatenated, but in my case it is in 1case per csdbe files(multiple csdbe files), please help. Thanks
Re: Concatenate with Deleted Case ID
Posted: September 29th, 2025, 8:23 am
by Gregory Martin
Can you share your batch application so that we can look at what exactly you are trying to do?