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.
Concatenate with Deleted Case ID
-
Gregory Martin
- Posts: 1948
- Joined: December 5th, 2011, 11:27 pm
- Location: Washington, DC
Re: Concatenate with Deleted Case ID
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;
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;
-
YFT_CBSD
- Posts: 65
- Joined: January 3rd, 2023, 12:36 am
Re: Concatenate with Deleted Case ID
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.
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.
-
Gregory Martin
- Posts: 1948
- Joined: December 5th, 2011, 11:27 pm
- Location: Washington, DC
Re: Concatenate with Deleted Case ID
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:
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);
preproc
set access(DICT_NAME, CaseStatus.All);
-
YFT_CBSD
- Posts: 65
- Joined: January 3rd, 2023, 12:36 am
Re: Concatenate with Deleted Case ID
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
-
Gregory Martin
- Posts: 1948
- Joined: December 5th, 2011, 11:27 pm
- Location: Washington, DC
Re: Concatenate with Deleted Case ID
Can you share your batch application so that we can look at what exactly you are trying to do?