| ||||||||||||||
What's New* Focal Point Virtuals: 2012 | 2013 * Summit 2013: June 3 in Florida! | Full Agenda | Agenda Builder | ROI Kit| Rates | Register Now * New: Published Tips and Techniques * WebFOCUS Newsletter - May-June 2013 * Visit the ESRI Forum | Higher Education Forums Connect With Us!RemindersUpdate your signature (now required!), do your search first, and tag your topic with keywords Forum Rules, Guidelines, best-practice tips and FAQ's for Everyone to Remember | ||||||||||||||
Focal Point Forums
WebFOCUS/FOCUS Forum on Focal Point
[SOLVED] TABLE FILE from comma delimited fileGo ![]() | New ![]() | Search ![]() | Notify ![]() | Tools ![]() | Reply ![]() | |
| Platinum Member |
What is wrong with my code? I'm trying to query information from a comma delimited file on a shared folder: SET PCOMMA=ON FILEDEF MYFILE DISK //HORSEISLAND/NETSHARE/MEDICAL/OOQ/SOLUTIONSWORLD/TEST/MYFILE.TXT TABLE FILE MYFILE PRINT * ENDThis message has been edited. Last edited by: Mark1, Windows version 768 | ||
|
| Expert |
Shouldn't your slashes be \ instead of /. What happens, what error message or results ? Waz...
| |||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||
| Platinum Member |
I get the FILE MYFILE CANNOT BE FOUND. But I can see it there with windows explorer. Windows version 768 | |||
|
| Virtuoso |
Do you have a Master set up to read "MYFILE"? Is this a file allocation error or a filre read error? What's your &FOCERRNUM?
| |||||
|
| Platinum Member |
I get this error: 0(FOC205) THE DESCRIPTION CANNOT BE FOUND FOR FILE NAMED: No data description can be found for the file requested. Check the Master File Descriptions allocated or available, or the spelling of the file name. If you are in Screen Painter, type IGNore to continue, or any other input to return to TED. I thought you could read in a text file and query from it without creating a master file. Windows version 768 | |||
|
| Expert |
WebFOCUS requires a master for any file. It is needed so WF knows what format the file is and therefore what module to call to read it. Waz...
| |||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||
| Virtuoso |
Nope. Part of the "magic" of WebFOCUS is in the Master File Description. Any data read done through WebFOCUS will require a Master file description. You can create one "on the fly" in your fex (which there are many examples of in the forum) but it's recommended to create an MFD which can be re-used and you'll also need a FILEDEF in your code or a DATASET declaration in the MFD that points to the actual data file. (No, SQL passthru doesn't require an MFD, but there is not SQL passthru for COM files.) Regards, Darin In FOCUS since 1991 WF Server: 7.6.10 on Linux and 7.6.9 on Z/OS, ReportCaster, Self-Service, MRE, Java, Flex Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K, PS, AHTML, Flex WF Client: 7.6.10 on Linux w/Tomcat | |||
|
| Expert |
The interesting thing about SQL passthrough is that it uses the structure of the returning data to build a master (SQLOUT), which TABLE FILE needs. Waz...
| |||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||
| Platinum Member |
OK, thanks! I appreciate the help. Windows version 768 | |||
|
| Powered by Social Strata |
| Please Wait. Your request is being processed... |
|
Focal Point Forums
WebFOCUS/FOCUS Forum on Focal Point
[SOLVED] TABLE FILE from comma delimited file
