ibmcnxscripting icon indicating copy to clipboard operation
ibmcnxscripting copied to clipboard

Find of DB names is not the same for different languages, has to be fixed

Open kbild opened this issue 10 years ago • 5 comments

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

kbild avatar Jul 10 '14 14:07 kbild

I think you must use tokens=4 in german localization.

Output of your question:
db2

stoeps13 avatar Jul 10 '14 14:07 stoeps13

Ok, this means that "tokens=2 delims==" should work for all languages, but you are using tokens=3, does this really work?

kbild avatar Jul 10 '14 15:07 kbild

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.

stoeps13 avatar Jul 10 '14 16:07 stoeps13

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 .

vtoal avatar Jul 10 '14 16:07 vtoal

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

kbild avatar Jul 10 '14 17:07 kbild