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.
We have a question concerning master files with Excel files. We would like to know if it is possible that the same master file could read from different files with a variable that is set in the parameters of the report caster. I will show you with an example.
The idea would be to use it as follows: " SET &file_number = "parameter from report caster";
SET &table_name = EXCEL_FILE || &file_number;
TABLE FILE &table_name PRINT ..... "
Is there a way that we can do this? Or we have to create a separate master for each excel file. They will all contain the same columns with the same format.
Thank you in advance for your help!
Best regards,This message has been edited. Last edited by: Guilaine,
In schedule in task/parameter : (Name)DATASET1=(Value)'REF_MAKE_PGI00.xlsx'
when I run the schedule report : error message : Schedule ID: Sdf3e863dscd55s4823s8577sc406cd0937d0, Job Description: BOM REF MAKE PGIV2 , Schedule Full Path: IBFS:/WFC/Repository/hswltgqi/std_reports/requatesgo04/BOM_REF_MAKE_PGIV2.sch Completed with errors/warnings (FOC295) A VALUE IS MISSING FOR: &&DATASET1 Task error: IBFSException 6000: Error executing procedure BOM_REF_MAKE_PGIV2.fex No report to distribute.
Then in the reportcaster job set the value of DATASET1 to the appropriate Excel file.
You need to set the variable as stated by Chuck In your schedule go to Tasks then within a task under Parameters tab add &DATASET1 and its value. Since the variable as been defined as a Global variable in the master file (with two ampersand : &&) you need to enter your variable name as : &DATASET1. The second ampersand is added by the scheduler.
WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF In Focus since 2007
Posts: 2409 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013
Thank you for your help. I could not make it work by creating the parameter with the "&" in the schedule like you proposed. It kept saying the following error message: (FOC 295) A VALUE IS MISSING FOR: &DATASET1
I had to create a normal parameter in the schedule and use a set in the code (fex file): -SET &&DATASET1 = &SCH_PARAM;
And then I gave the value REF_MAKE_PGI.xlsx to "SCH_PARAM" in the schedule. Not sure if it is the best way, but it works.
Honestly, I never define global variable in a schedule (two ampersand). Normally GV are defined in a profile as per example since they are set for the whole system not only for a schedule/fex.
But since this is global variable that is defined in the .mas, the way you made it, is ok
Please update your first post then add [SOLVED] at the beginning of the subject
WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF In Focus since 2007
Posts: 2409 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013