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.
This should be fairly easy to solve. Do you have an APP FI in the program to point to the data? If you don't have an APP FI in the fex, does the master have a DATASET parameter in it? Does your master file description for your text file actually match the data? Where is the MFD in relation to the location of your fex?
Please give us the answers to these questions. If the answers are not sufficiently enlightening, we might need to see the fex, master, and a bit of data but I don't think we need that right now.
FILEDEF PPINFEX2 DISK "C:\DOCUMENTS AND SETTINGS\DMOYER\DESKTOP\PPINFEXT.DAT" TABLE FILE PPINFEX2 PRINT Compname Policynmbr ON TABLE SET PAGE-NUM OFF ON TABLE NOTOTAL
Are you running this locally, i.e on your PC with your reporting server on your PC? You say you are on the mainframe. If that is so, then your file needs to be on the mainframe.
Do a CHECK FILE PPINFEX2 and make sure that the number of bytes returned matches the record length of each row.
Do a ? FILEDEF to make sure that it is pointing to the right place.
This is a flat file and I am working with it in windows. I have also tried placing the file in my developer studio project area. The file matches the record length in the masterThis message has been edited. Last edited by: moyer1dl,
Lname Device Lrecl Recfm Append Filename ============================================================ TEXTDOC DISK 0 V C:\Documents and Settings\userid\Desktop\textdoc.dat
Output of report:
PAGE 1
TEXTLINE Sample Text File
It bothers me that you have nothing coming back from the ? FILEDEF. I think that is where you need to focus your efforts. Try making the filename mixed/lower case. If that doesn't work, move the file to approot and try it from there, changing the filedef to correspond.
You didn't mention whether you ran the CHECK FILE and what the results were. But your primary concern at this point in the filedef. That is why you are not getting any rows. Even if the master was off-column, you'd get data but it would look finny.
If you are using Developer Studio to access local data, then both the Project area and the Data Servers area point to the same place on your hard drive, drive:\ibi\apps\dirname.
I don't think that is your problem though since I was able to get it to work by putting the file in the same place you did.
Gosh, I wish I could see what you are doing. This should be so simple. We are missing something really tiny.
Try throwing in a -RUN after the FILEDEF command. If that doesn't do it, try adding a DATASET declaration in your master file to specify the location of your data. Seems to be finding the master file OK. Ginny is right - it's got to be something easy that's missing.
Regards,
Darin
In FOCUS since 1991 WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex WF Client: 77 on Linux w/Tomcat
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007
Originally posted by moyer1dl: I made a test fex. Here it is:
-* File uwreven.fex
FILEDEF PPINFEX2 DISK "C:\DOCUMENTS AND SETTINGS\DMOYER\DESKTOP\PPINFEXT.DAT" TABLE FILE PPINFEX2 PRINT Compname Policynmbr ON TABLE SET PAGE-NUM OFF ON TABLE NOTOTAL
Your master file and data file names(PPINFEXT.DAT, PPINFEX2.mas) are different , they should be the same so webfocus engine can find the datafile from specified location in filedef.
-Yogesh Patel ------------------------------------------------------------------------ PROD: WF 764 on Linux Apache tomcat v5.5 DEV: WF 768 on Linux
Posts: 42 | Location: Edison, New Jersey | Registered: January 30, 2007
I moved this project to the localhost environment and it worked and picked up the file on my computer.
The only thing is how can I run this from my project area on the EDA server? I would like it to be available to more poeple than just me. Do I need to put the file somewhere else?
You need to move the file to the reporting server platform. That is the only way EDASERVE will be able to find it.
This is what I suspected all along, re this previous comment:
quote:
Are you running this locally, i.e on your PC with your reporting server on your PC? You say you are on the mainframe. If that is so, then your file needs to be on the mainframe.
Your master file and data file names(PPINFEXT.DAT, PPINFEX2.mas) are different , they should be the same so webfocus engine can find the datafile from specified location in filedef.
Yogesh the fact that the master and data file have different names is not an issue when using FILEDEF
The whole point of FILEDEF, AP FI and DYNAM ALLOC is to assign a logical name to a physical file.
In the case of relational tables the master does not need to be the same name as the physical table because the physical files db and table/view name are maintained in the access file.
In the case of a FOCUS or XFOCUS database the master name does not have to match the physical database name as the logical name can be assigned with a USE statement.
Originally posted by GinnyJakes: You need to move the file to the reporting server platform. That is the only way EDASERVE will be able to find it.
This is what I suspected all along, re this previous comment:
quote:
Are you running this locally, i.e on your PC with your reporting server on your PC? You say you are on the mainframe. If that is so, then your file needs to be on the mainframe.
When you say the reporting server platform how does that translate geographically from my view in Dev Studio.
I can probably hit this file when it is on the Mainframe, but the file name changes every month and Id rather export it off the mainframe and report off of it in the windows envrinment.
FILEDEF PPINFEX2 DISK "C:\DOCUMENTS AND SETTINGS\DMOYER\DESKTOP\PPINFEXT.DAT"
When running the fex in Dev Studio, it's going to look at the C: drive of the server that Dev Studio is running on.
Either you can move the file into your project or somewhere on the same server as Dev Studio or you can use the APP MAP command to map to another server. (but not the c: drive)
Good Luck!
WebFOCUS 7.6.6/TomCat/Win2k3
Posts: 428 | Location: Springfield, MA | Registered: May 07, 2003