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] Input file as excel file as source data

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Input file as excel file as source data
 Login/Join
 
Gold member
posted
Hi

I have a excel file in my local drive G:\xyz\source_data.xls,
I want to retrieve the source data excel file in fex file with creating master file,

can anyone help me.

Thanks

This message has been edited. Last edited by: Kerry,


WebFOCUS 7.6
Windows, All Outputs
 
Posts: 51 | Registered: December 01, 2010Report This Post
Virtuoso
posted Hide Post
1. the excel file has to be accessible by the reporting server.
2. a name must be defined in the excel sheet that defines the area (cells) that will be available for reporting.
3. a windows odbc connection must be made for a system dsn which point to the excel sheet and the name defined in the previous step within the sheet.
4. a connection must be defined between the reporting server and the odbc connection created in step 3.
Once these steps are completed, you can create a master file and start reporting from the excel sheet.

Hope this helps to get you going.


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
 
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007Report This Post
Expert
posted Hide Post
Or, use Developer Studio to upload the Excel spreadsheet.

Dev Studio Explorer > Data Servers > Applications > app-name > Master Files. Right Click and select New > Upload Data File. You can upload an Excel spreadsheet, a comma, tab or pipe-delimited file and select other options. This uploads the file and also generates a Master. It works wonderfully for smaller files. If the file is very large, create a smaller version and upload that file using the tool, Afterward, manually upload the real file.


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Gold member
posted Hide Post
quote:
Originally posted by Francis Mariani:
Or, use Developer Studio to upload the Excel spreadsheet.

Dev Studio Explorer > Data Servers > Applications > app-name > Master Files. Right Click and select New > Upload Data File. You can upload an Excel spreadsheet, a comma, tab or pipe-delimited file and select other options. This uploads the file and also generates a Master. It works wonderfully for smaller files. If the file is very large, create a smaller version and upload that file using the tool, Afterward, manually upload the real file.




sorry..
i need to pull the data from excel without creating maseter file

how can i do this ..can help me


WebFOCUS 7.6
Windows, All Outputs
 
Posts: 51 | Registered: December 01, 2010Report This Post
<JG>
posted
quote:
i need to pull the data from excel without creating maseter file

This is 100% not possible.

To read any data source with WebFOCUS you must have a master file.

In the case of Excel, as has been said

you must first assign a data range in the excel.
you must then set it up as an ODBC source.
you must then create the master.
 
Report This Post
Master
posted Hide Post
JG is correct. There will be a master, even if it is generic. Here's another way to do it.

I have a couple of jobs where I have to do this. First I save the data as a tab delimited file. Then I upload the .txt file to the Reporting Server. I have a generic master that looks like this:
FILE=TABTEXT, SUFFIX=FIX, $
SEGNAME=SEG1 ,$
  FIELD=LDATA,,A240,A240, $


Then my program looks like this:
 FILEDEF TABTEXT DISK &TMPDIR..exceldata.txt ( LRECL 240 RECFM V
-*
 DEFINE FILE TABTEXT
   TAB/A1=HEXBYT(9,'A1');
-*
   AROWID/A4=GETTOK(LDATA,240,1,TAB,4,AROWID);
   ROWID/I4S=EDIT(AROWID);
-*
   WCHFN1/A25=GETTOK(LDATA,240,3,TAB,25,'A25');
   CHFNM1/A2=UPCASE(2,EDIT(WCHFN1,'99'),'A2');
-*
   WCHFN2/A25=GETTOK(LDATA,240,4,TAB,25,'A25');
   CHFNM2/A2=UPCASE(2,EDIT(WCHFN2,'99'),'A2');
...
END
TABLEF FILE TABTEXT
 PRINT ROWID CHFNM1 CHFNM2 ...
    ON TABLE HOLD
END


It is a manual effort but it works.


In FOCUS since 1985. Prod WF 8.0.08 (z90/Suse Linux) DB (Oracle 11g), Self Serv, Report Caster, WebServer Intel/Linux.
 
Posts: 975 | Location: Oklahoma City | Registered: October 27, 2006Report 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] Input file as excel file as source data

Copyright © 1996-2020 Information Builders