Page 1 of 1

Input Data

Posted: May 24th, 2023, 11:56 pm
by YFT_CBSD
Hi,

Is there a function to call what Input Data has Errors?

For example, I have 5 csdb files. I run my batch editing application and select all csdb files in the input data. Then, it can display in the lst file which csdb file names have met the condition. This determination is made on a per csdb file basis, rather than based on the case ID. Since the case IDs are mixed up among the 5 csdb files, I need to identify them by their csdb file names.

Thanks

Re: Input Data

Posted: May 25th, 2023, 11:04 am
by Gregory Martin
Can you just add the filename to your error message?
errmsg("Something wrong in %s", filename(DICT_NAME));

Re: Input Data

Posted: May 29th, 2023, 2:27 am
by YFT_CBSD
Thanks, how about the caseid itself?

Re: Input Data

Posted: May 30th, 2023, 8:18 am
by Gregory Martin
You can use the key function:
errmsg("Something wrong in case %s in file %s", key(DICT_NAME), filename(DICT_NAME));