Hello.
I am using VuGen to connect to a DB2 AIX database and run a query with "lr_db_executeSQLStatement" the results are stored in a dataset "DatasetName=MyDataset", then I disconnect from the DB2 and start extracting the data from the dataset with " lr_db_getvalue" as described next:
lr_db_getvalue("StepName=GetValue",
"DatasetName=MyDataset",
"Column=BIRTH_DT",
"OutParam=MyOutputParam5",
"Row={next}",
LAST );
The problem is, the Birthday informaiton is been printed in log and output file as "dd/mm/YYYY 12:00:00 AM" instead of "YYYY/mm/dd" format and without timestamp, if I run the same query in TOAD, AIX or DataStudio the output is "1960-02-10" but for some reason seems VuGen is changing the format to "2/10/1960 12:00:00 AM".
Action.c(118): Notify: Parameter Substitution: parameter "next" = "1"
Action.c(118): Get db value "GetValue" started
Action.c(118): Notify: Saving Parameter "MyOutputParam5 = 2/10/1960 12:00:00 AM".
Action.c(118): Get db value was successful
How do I instruct in the "lr_db_getvalue" to use the format the birthday is originally stored in the database?
I also printed the whole dataset and is the same result
lr_db_dataset_action("StepName=PrintDataset",
"DatasetName=MyDataset",
"Action=PRINT",
LAST );
NAME LAST_NAME BIRTHDAY
XXXXXXX XXXXXXXXXXX 2/10/1960 12:00:00 AM