Hi Folks,
I am finding the documentation on environment variables a little disorganized and incomplete - at least in the current releases. I would love to see a single spot where all environment variables are declared - perhaps the Config guide as in older releases. Background: I am running a Meta-Update script on two different Windows machines; both English but one with "Regional Settings" set to German and the other with "Regional Settings" set to English UK. The difference in dates seems to be that Germany uses dd.mm.yyyy and UK the same but with slashes. I gather that in the case of a slash a minus is equivalent. However with ARDATE that equivalence goes away. I have a running process (ie have done the ARInitialize() and done some "real calls") and then I set the environment variable ARDATE in my running process (with putenv()). This seems to have no effect implying that the API reads the environment once and only once. If I set the environment variable before I launch my process then the effect seems to work as expected (that ARLoadARQualifierStruct does not return a 1590). This is an acceptable work-around but I am trying to get to the bottom of this and generalise the facility. ARDATE is documented to affect only the server but it clearly does affect clients as my testing has proven: I am always providing a single format (now) of yyyy-mm-dd hh:mm:ss to a query - ARDATE: %Y/%m/%d %H:%M:%S fails with a 1590 (ARS expected slashes which are no longer equivalent to minuses) - ARDATE: %Y-%m-%d %H:%M:%S Succeeds - ARDATE: not set; Regional Settings UK (dd/mm/yyyy ..) succeeds with "-" supplied as a date separator (31-03-2011) - ARDATE: not set; Regional Settings Germany (yyyy.mm.dd ..) Fails with a minus as a separator I am not setting the locale value in ARControl.localeInfo (at this point). The questions I have are: 1) Where is the value of ARControl.localeInfo.customDateFormat described (32 bytes) ie is it mm/dd/yyyy etc or %Y/%m etc 2) Is it true that ARLoadARQualifierStruct does NOT read the environment when called but uses whatever is set at ARInitialization time? So that setting environment variable in the running process has no effect? Finally, is there a document / white paper describing client and server environment variables? (for example any options on ARAPILOGGING values)? Thanks Ben Chernys Senior Software Architect Software Tool House Inc. Canada / Deutschland / Germany Mobile: +49 171 380 2329 GMT + 1 + [ DST ] Email: <mailto:ben.cher...@softwaretoolhouse.com> Ben.Chernys _AT_ softwaretoolhouse.com Web: <http://www.softwaretoolhouse.com> www.softwaretoolhouse.com Check out Software Tool House's free Diary Editor. Meta-Update, our premium ARS Data tool, lets you automate your imports, migrations, in no time at all, without programming, without staging forms, without merge workflow. <http://www.softwaretoolhouse.com/> http://www.softwaretoolhouse.com/ _______________________________________________________________________________ UNSUBSCRIBE or access ARSlist Archives at www.arslist.org attend wwrug11 www.wwrug.com ARSList: "Where the Answers Are"