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] FILEDEF and compound reports

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] FILEDEF and compound reports
 Login/Join
 
Platinum Member
posted
I have a file that I am trying to output to our ftp server using the filedef command. The report is setup to be a compound excel report. The process runs fine and places the file on the ftp server but when I try to open the file it gives me an error. If I output it as a csv, it opens a jibberish code as it doesn't know where one part of the report stops and the other starts. When I try to save the report as a .xlsx file and open it, I get a "file format or file extension is not valid. Verify that the file has not been corrupted and that the file extension matches the format of the file". I am creating it with the following commands:

-SET &XPATH = 'D:\\FOCUS\SC\CSC\IR\OUT\';
-SET &XTERM = EDIT(&EXP_GRAD_TERM,'$9999');
-SET &FILE_NM = &XPATH || &XTERM || '_' || '&AREA_WORDS.EVAL' || '_IVYDAY.XLSX';
FILEDEF IVYDAY DISK &FILE_NM
TABLE FILE
......
ON TABLE HOLD AS IVYDAY FORMAT EXL2K OPEN
END
TABLE FILE
.....
ON TABLE HOLD AS IVYDAY FORMAT EXL2K BYTOC 3
END

How can I get it to run and save out on the ftp server and create the compound report and still be able to open it. The report runs fine without the filedef command to place it on the ftp server.

Malinda Linegar
CSC

This message has been edited. Last edited by: <Kathryn Henning>,


WebFOCUS 7.6.11
Windows
all output (Excel, HTML, PDF)
 
Posts: 149 | Registered: April 15, 2010Report This Post
Virtuoso
posted Hide Post
Are you getting an error? Do other reports FTP to this server? Does WebFocus have permissions?
 
Posts: 1903 | Location: San Antonio | Registered: February 28, 2005Report This Post
Platinum Member
posted Hide Post
I don't get an error when running the report and placing it on the ftp server. That part worked just fine. It is when I move the file onto my desktop and try to open it.

I did find out that it will work if my extension is a .xls with the FORMAT EXL2K.

Yes, other reports ftp to this server - WF does have permission.

Malinda


WebFOCUS 7.6.11
Windows
all output (Excel, HTML, PDF)
 
Posts: 149 | Registered: April 15, 2010Report This Post
Expert
posted Hide Post
Sounds to me like you need to understand your extensions and how windows would attempt to open them.

.xls extension is MS Excel 2000 whereas .xlsx is MS Excel 2007 and upwards.

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, 2004Report This Post
Master
posted Hide Post
Malinda, .xlsx files are really .zip files. Take a real .xlsx, rename to a .zip and unzip it and look at what you get.

The reason you got gibberish is:
1. 7.6.11 does not understand or support Office 2007/2010 extensions;
2. When you said '...FORMAT EXL2K' that is building a .xls format file regardless of the file extension. You could have given the file an extension of .txt and it would still be an .xls format file;
3. Since the file had a .xlsx extension, EXCEL tried to unzip the file which it could not do since it was not a .zip file.
4. That is why when you renamed the file to .xls, it worked.


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] FILEDEF and compound reports

Copyright © 1996-2020 Information Builders