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 have an external file saved on a shared drive with 3 columns. I have tried to save this file as a csv file and an excel file in order to pull the data contained in the file into a Webfocus Report as an external table.
I am able to pull in the data and run a report, but when i do its taking my 3 columns and placing all the data into 1 column.
My Fex Code: ENGINE SQLORA SET ORACHAR VAR ENGINE SQLORA SET VARCHAR OFF SET ASNAMES = ON APP FI fits_project_hold DISK baseapp/fits_project_hold.ftm APP HOLDMETA baseapp APP MAP DATA \\ftmvfxs1\cfisfm$\Dashboard APP APPENDPATH DATA APP HOLD DATA APP SHOWPATH -RUN APP FI fits_project DISK DATA/fits_project.XLSX -RUN TABLE FILE FITS_PROJECT_HOLD PRINT CASE_NUMBER ON TABLE NOTOTAL ON TABLE PCHOLD FORMAT HTML END
Orginal file that is saved on my shared drive: 2020973741 1 PRSI 1820943742 2 RESI 1920933745 4 EMPL 1020953748 5 REFE 1520963744 6 REFE
How Report Data is being returned: CASE_NUMBER 2020973741 ,001,PRSI 1820943742 ,002,RESI 1920933745 ,004,EMPL 1020953748 ,005,REFE 1520963744 ,006,REFEThis message has been edited. Last edited by: Kathleen Butler,
Sometimes (often?) folks post a lot of non-relevant code with their issue. So it's hard to see the wood for the trees. To cut to the chase, here is what is relevant.
My Fex Code: APP FI fits_project DISK DATA/fits_project.XLSX -RUN TABLE FILE FITS_PROJECT_HOLD PRINT CASE_NUMBER ON TABLE PCHOLD FORMAT HTML END
Orginal file that is saved on my shared drive: 2020973741 1 PRSI 1820943742 2 RESI 1920933745 4 EMPL 1020953748 5 REFE 1520963744 6 REFE
How Report Data is being returned: CASE_NUMBER 2020973741 ,001,PRSI 1820943742 ,002,RESI 1920933745 ,004,EMPL 1020953748 ,005,REFE 1520963744 ,006,REFE
First of all, I'd suggest sticking to convention and use upper case for your FILEDEF (APP FI) if you are going to use it in the TABLE request.
Secondly, your FILEDEF references an XLSX file, which is not fixed format and your master is for fixed format.
Third, you need to indicate the length of the entire line of your fixed-length data
You need to make your data file a .TXT or .DAT file and your FILEDEF like this:
FILEDEF FITS_PROJECT DISK DATA/fits_project.txt (RECFM F LRECL 16
Fourth, your TABLE request references FITS_PROJECT_HOLD when the FILEDEF is only for FITS_PROJECT (no _HOLD portion)
The new file has commas because you have FILEDEFed it as an Excel or csv. You data file is FIXED FORMAT. Look up FIXED FORMAT in the Describing Data manual.
You need to use the FILDEF (or APP FI) that I gave you and then fix the other items.
Actually, now that I look it I see that your master file is of type S1. That means the CASE_NUMBER is the key field, so MISSING=ON is incorrect for that field in your master file description.
PS - Waz is right that the Record Length is 17 not 16 as I wrote above.This message has been edited. Last edited by: George Patton,
You need to mark the topic closed by editting your very first post and making a change to the subject line.
To edit your post you need to click on the icon in the lower right of the section containing your post that resembles a pencil eraser over a folder icon.
T
In FOCUS since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2
WebFOCUS App Studio 8.2.06 standalone on Windows 10
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004