Input Data

Other discussions about CSPro
Forum rules
New release: CSPro 8.0
Post Reply
YFT_CBSD
Posts: 47
Joined: January 3rd, 2023, 12:36 am

Input Data

Post 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
Gregory Martin
Posts: 1777
Joined: December 5th, 2011, 11:27 pm
Location: Washington, DC

Re: Input Data

Post by Gregory Martin »

Can you just add the filename to your error message?
errmsg("Something wrong in %s", filename(DICT_NAME));
YFT_CBSD
Posts: 47
Joined: January 3rd, 2023, 12:36 am

Re: Input Data

Post by YFT_CBSD »

Thanks, how about the caseid itself?
Gregory Martin
Posts: 1777
Joined: December 5th, 2011, 11:27 pm
Location: Washington, DC

Re: Input Data

Post by Gregory Martin »

You can use the key function:
errmsg("Something wrong in case %s in file %s", key(DICT_NAME), filename(DICT_NAME));
Post Reply