ibmcnxscripting
ibmcnxscripting copied to clipboard
Find of DB names is not the same for different languages, has to be fixed
I've got a german DB2 installation and "tokens=3 delims==" does not work there -> please list the result for DB2CMD.EXE -c -w -i DB2 list DATABASE DIRECTORY ^| findstr /i "Alias" on an english install
I think you must use tokens=4 in german localization.
Output of your question:
Ok, this means that "tokens=2 delims==" should work for all languages, but you are using tokens=3, does this really work?
Not sure, i can't test in the moment, but one annotation, that's your code snippet!
Oh sorry, i see i changed from tokens=5 to tokens=3 delims== i'm sure i tested it on english versions, but had problems with a german one too.
Ha - SMACKDOWN! ;)
I will give it a try tonight as well, if I get to it .... I will be putting the code on an US Army server this week, and on the US MArines next week (still building that one) will likely also go to the Airforce and Navy with it ... your code is getting around!
V.
Victor Toal Chief Solutions Architect ToalSystems Consulting [email protected]
Tel: +1 (203) 364-4122
Proud to be from Newtown, CT - We are Newtown Strong!
On Thu, Jul 10, 2014 at 12:11 PM, Christoph Stoettner < [email protected]> wrote:
Not sure, i can't test in the moment, but one annotation, that's your code snippet!
— Reply to this email directly or view it on GitHub https://github.com/stoeps13/ibmcnxscripting/issues/4#issuecomment-48626614 .
If I look of your result "tokens=2 delims==" should definitely work. It builds 2 tokens, one in front of the "=" and one after with the DB names, so we need tokens=2