Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Best way to change synonym for a whole group of reports.

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Best way to change synonym for a whole group of reports.
 Login/Join
 
Platinum Member
posted
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

 
Posts: 133 | Location: Orlando, FL | Registered: August 04, 2005Report This Post
Guru
posted Hide Post
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


WebFOCUS 8.1.05M Unix Self-Service/MRE/Report Caster - Outputs Excel, PDF, HTML, Flat Files
 
Posts: 320 | Location: Memphis, TN | Registered: February 12, 2008Report This Post
Platinum Member
posted Hide Post
Current ACX

 SEGNAME=ELAPSED_TIME_CSV, DELIMITER=',', ENCLOSURE=", HEADER=NO,
CONNECTION=&&FL_CONNECTION, 
DIRECTORY=&&FL_DIRECTORY, NAME=&&FL_NAME, 
EXTENSION=&&FL_EXTENSION, DATA_ORIGIN=FILE, $
 


Currrent MAS:
 FILENAME=ELAPSED_TIME_CSV, SUFFIX=DFIX ,$
VARIABLE NAME=&&FL_DIRECTORY, DEFAULT='\\NAS5\Psoftdev\TCD\Inbound', $
VARIABLE NAME=&&FL_NAME,  DEFAULT='elapsed_time*', $
VARIABLE NAME=&&FL_EXTENSION, DEFAULT='csv', $
VARIABLE NAME=&&FL_CONNECTION,  $
  SEGMENT=ELAPSED_TIME_CSV, SEGTYPE=S0, $
    FIELDNAME=F1, ALIAS=F1, USAGE=A255V, ACTUAL=A255V,
      MISSING=ON, $
    FIELDNAME=F2, ALIAS=F2, USAGE=A255V, ACTUAL=A255V,
      MISSING=ON, $
    FIELDNAME=F3, ALIAS=F3, USAGE=A255V, 

[COLOR:RED]AND SO ON[/COLOR]

    FIELDNAME=F25, ALIAS=F25, USAGE=A255V, ACTUAL=A255V,
      MISSING=ON, $
DEFINE ALPHAF5/A10=SUBSTV(255,F5, 1, 10,ALPHAF5);$
DEFINE DATE1/A8YYMD=EDIT(ALPHAF5,'9999$99$99');$
DEFINE F5/YYMD=DATE1;$ 


prod: WF 7.7.03 platform IIS on Windows 2007, databases: Oracle, , MSSQL

 
Posts: 133 | Location: Orlando, FL | Registered: August 04, 2005Report This Post
Platinum Member
posted Hide Post
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

 
Posts: 133 | Location: Orlando, FL | Registered: August 04, 2005Report This Post
Master
posted Hide Post
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.

-PROMPT &ENV.(<Development,DEV_>,<User Acceptance Test,UAT_>,<Production,PRD_>).Choose Reporting Environment:.;

-SET &CAR =  &ENV | 'CAR';

-TYPE &|ENV = &ENV
-TYPE &|CAR = &CAR

TABLE FILE &CAR
PRINT
*
END


There are other ways to solve this issue as well, but this is a good place to start.

- ABT


------------------------------------
WF Environment:
------------------------------------
Server/Client, ReportCaster, Dev Studio: 7.6.11
Resource Analyzer, Resource Governor, Library, Maintain, InfoAssist
OS: Windows Server 2003
Application/Web Server: Tomcat 5.5.25
Java: JDK 1.6.0_03
Authentication: LDAP, MRREALM Driver
Output: PDF, EXL2K, HTM

------------------------------------
Databases:
------------------------------------
Oracle 10g
DB2 (AS/400)
MSSQL Server 2005
Access/FoxPro
 
Posts: 561 | Registered: February 03, 2010Report This Post
Guru
posted Hide Post
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.
  
-PROMPT &ENV.(<Development,DEV>,<User Acceptance Test,UAT>,<Production,PRD>).Choose Reporting Environment:.;

-SET &&FL_CONNECTION = DECODE &ENV ('DEV' 'DEV_ADAPTER_NAME' 'UAT' 'UAT_ADAPTER_NAME' 'PRD' 'PRD_ADAPTER_NAME');
-SET &&FL_DIRECTORY = DECODE &ENV ('DEV' '\\NAS5\Psoftdev\TCD\Inbound' 'UAT' '\\NAS5\Psoftuat\TCD\Inbound' 'PRD' '\\NAS5\Psoftprod\TCD\Inbound');

TABLE FILE ELAPSED_TIME_CSV
PRINT *
END

This message has been edited. Last edited by: Mighty Max,


WebFOCUS 8.1.05M Unix Self-Service/MRE/Report Caster - Outputs Excel, PDF, HTML, Flat Files
 
Posts: 320 | Location: Memphis, TN | Registered: February 12, 2008Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Best way to change synonym for a whole group of reports.

Copyright © 1996-2020 Information Builders