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.
I'm trying to read a Text file (CSV format) which is kept in my domain. I used below code to read the text file but it throwing below error. Note - I havent created any MDF for employee.txt file.
APP PATH EMPLYCONNECT FILEDEF EMPL DISK EMPLOY/employee.txt TABLE FILE EMPL PRINT * END
Error message with i run the procdure (FOC205) THE DESCRIPTION CANNOT BE FOUND FOR FILE NAMED: EMPL BYPASSING TO END OF COMMAND
Question - Can i read text/excel file without creating master file?This message has been edited. Last edited by: Kerry,
Well, if you have created a mastger file for the data you won't be able to read it with TABLE. And that's what the error message tells you: it can't find the mdf called EMPL.
GamP
- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007
For a CSV file you can create a plain-jane master file -- one big text field per line. That should read, but then it will be up to you to parse the contents of that single field into its independent parts.
Note that in Dev Studio you can auto-generate a master file from a flat file by right-clicking in the Master Files section of an application directory and selecting New-->Upload Data File. That will parse the file for you for a first round.
If you need to absorb a differently-shaped file each time you'll have to go with the plain-jane option above. If your files will contain the same structure each time and you want to create a master file from your first one option 2 above will help you get started.
J.
Posts: 1012 | Location: At the Mast | Registered: May 17, 2007
Internally WebFOCUS needs a master file when you issue a TABLE FILE command.
When you issue TABLE FILE EMPL, WebFOCUS looks for the EMPL master file so it can find ouy what type of file it is. This is done by checking the suffix in the master. Then the appropriate module is loaded to read the data.
All the fields are needed as well, so WebFOCUS knows the field names and formats.
Thanks for all the answers...that helped!! If i create Master file for text/Excel, then i need to use FILEDEF command to read Text/excel file. I wanted to know if is it possible to read text or other flat file without creating master file using FILEDEF command?
Originally posted by John_Edwards: For a CSV file you can create a plain-jane master file -- one big text field per line. That should read, but then it will be up to you to parse the contents of that single field into its independent parts.
Note that in Dev Studio you can auto-generate a master file from a flat file by right-clicking in the Master Files section of an application directory and selecting New-->Upload Data File. That will parse the file for you for a first round.
If you need to absorb a differently-shaped file each time you'll have to go with the plain-jane option above. If your files will contain the same structure each time and you want to create a master file from your first one option 2 above will help you get started.
J.
Have to disagree with this. I have a .csv file and a master that breaks it up into "fields" for reporting.