I have unloaded the record from table in to PS file and now i want write the record in excel format in PS file. is it possible ?
Reason why i am doing this i need to send email of unloaded file records and records should be written as tabular format in email.
Joined: 06 Jun 2008 Posts: 8187 Location: East Dubuque, Illinois, USA
now i want write the record in excel format in PS file. is it possible ?
Yes. The EASY way is to write the data as a comma-delimited data set, transfer to a server, and open the .csv with Excel. This does not allow any fonts or special formatting, however.
If your site has purchased SAS, SAS can read the data set and produce an Excel output for transfer to a server. This allows some special formatting to be done.
If your site has purchased a spreadsheet package for the mainframe that does generate Excel format, you could use that to process the data set and transfer the output to a server.
The other option is to read the Microsoft file specifications document for Excel (the last time I looked 4 years ago it was well over 1,000 pages) and write a program on the mainframe to generate the .xlsx or .xls directly. An accomplished team of 4 to 6 programmers could probably get this done within a year if they focus on it.
And, by the way, even if the data is transferred as Excel data the email may or may not be tabular; that would depend more upon your email client and how it formats data.