Focal Point
[CLOSED] How to make a fixed format EXCEL output file

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/911107202

August 07, 2009, 10:58 AM
webmeister
[CLOSED] How to make a fixed format EXCEL output file
In a FEX I wrote, specifying EXCEL as my output format, is there a way to make sure the EXCEL file comes with a fixed format? Right now it gets outputted with a variable block format and I need to have fixed format.

Thanks in advance.

This message has been edited. Last edited by: Kerry,


Mainframe FOCUS 7.0
VM/CMS and MVS/TSO
August 07, 2009, 11:24 AM
<JG>
webmeister,

Why are you outputting to EXCEL?

By it's very nature it is a binary file and so must be variable.

My assumption is that you are actually using the file as input to something else
as you can not use an Excel document on the platform you are on.

What exactly are you trying to do?
August 12, 2009, 09:36 AM
webmeister
What I was tryiong to do was to put my output file int a FB format for use with SMTP and e-mail, to e-mail the file to a recipient, but it looks on this end that we also don't have SMTP on the mainframe so this is now a moot issue.

Thanks for replying.


Mainframe FOCUS 7.0
VM/CMS and MVS/TSO
August 12, 2009, 12:02 PM
Darin Lee
For future reference, as JG states, you can't create an Excel output file in FB format. You could create a fixed length, fixed position output file using ON TABLE SAVE which could then be imported into Excel, but no way of creating an actual Excel file as you specify.


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
August 12, 2009, 03:59 PM
GamP
But, just as a topic for discussion, you could create a csv file with fixed block length. Youd would then have to insert the comma's yourself by means of a defined field that holds the comma. And then it is just a normal plain good old hold format alpha that will create the fixed length file, but the contents is comma separated.


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
August 17, 2009, 12:44 PM
Dan Pinault
When you say "fixed block" format is that the same as saying fixed column width?

If so, I seem to recall a presentation at Summit about Excel outputs. In that presentation there was something about setting the Column Layout Justification to Wrap and specifying the width in inches. My understanding is that would translate to the column width in Excel.

Dan


7.7.05M/7.7.03 HF6 on Windows Server 2003 SP2 output to whatever is required.