[CLOSED] Best way to change synonym for a whole group of reports.
I have a group of reports that report against a directory of flatfiles (csv's).
//nasserver/dev/inbound this synonym is called elasped_time_csv.
Now we are ready to go in to production so I need to change these reports to report against flatfiles located in a different location.
//nasserver/prod/inbound.
I have already added the new ODBC adapter for the new location.
Questions:
Can I copy the current synonym then text edit the new location in and rename the copy to prod_elasped_time_csv?
Once I have the new synonym is there a better way to update the reports then going in to the source of each report and adding 'prod_' to every instance of 'elasped_time_csv" ?
I was thinking of just editing the location of the flatfiles in the synonym, to the production location, but I still need a set a reports that report against the development server flatfiles.This message has been edited. Last edited by: Kerry,
prod: WF 7.7.03 platform IIS on Windows 2007, databases: Oracle, , MSSQL
February 07, 2013, 01:27 PM
Mighty Max
Can you post a sample master file and access file?
I'm thinking that you do not need another data adapter. The csv file that is defined in the DATASET of the master file is the default data source. You should be able to overwrite the input csv file using a FILEDEF.
-SET &ENVIRONMENT = 'PROD';
-SET &LOCATION = IF (&ENVIRONMENT EQ 'PROD') THEN '\\nasserver\prod\inbound\elasped_time.csv' ELSE '\\nasserver\dev\inbound\elasped_time.csv';
FILEDEF CSV_FILE DISK &LOCATION
-RUN
TABLE FILE CSV_FILE
PRINT
FIELD1
FIELD2
END
prod: WF 7.7.03 platform IIS on Windows 2007, databases: Oracle, , MSSQL
February 08, 2013, 10:18 AM
Greg
How would I change Max's code above the give the report runner a dropdown menu to choose 'Production' or 'Developement'?
Does this code need to go in to the header of each report? OR can it go in the MAS?
prod: WF 7.7.03 platform IIS on Windows 2007, databases: Oracle, , MSSQL
February 08, 2013, 10:54 AM
ABT
Greg, For Max's suggestion, your FEX could look like this. This example would look for MFDs called DEV_CAR, UAT_CAR and PRD_CAR, so unless those exist, you'll get an error when running.
You are using the new feature of variables in the master file. In this case you will need a data adapter for production. Set the value of &&FL_CONNECTION to the name of the data adapter for production. Set the value &&FL_DIRECTORY to the production folder. You can place the code in a fex and INCLUDE it at the top of the report.