Page 1 of 1

rename item function in batch program

Posted: January 21st, 2021, 2:09 pm
by Yass
Hi Cspro Team,

I have an old data that i will like to reformat , some item names in the old dictionary have change in the new dictionary but the old name can be can be mapped to the new name. Is it a way to introduce rename function in a batch program like rename oldItem to newitem.
In my case after reformat the items , the old data is lost. I try SQL syntax to alter the table (section/record) , column (item) but after , i cant open the .csdb file. Is it a better way to fix it or a rename function in batch application would have resolve my issue.


Thanks

Re: rename item function in batch program

Posted: January 21st, 2021, 2:16 pm
by josh
There isn't a simple way to do this right now. You can convert the data file to text, rename the items in the dictionary and then convert back to csdb using the modified dictionary.

Re: rename item function in batch program

Posted: January 21st, 2021, 2:18 pm
by Yass
Thanks and hope it become part of the parking alot. Thnaks