Hi, As far as I am aware there is no "pivot table" file format, but it is normally part of an Excel file. With this in mind, I don't see any way to directly create this from SAS using tagsets etc. so you would need to investigate the Open XML document format used by latest incarnations of Excel, Overview of the XML file formats in Office 2010 You can pretty much build any type of Excel file directly as text files and zip them up. Its really not straightforward though, took a fair time to get just a few values into a new file doing it this way when I tried as there are several files/folder with the xlsx (which is a zip - rename the extension .zip and you can open it). One way could be to create the pivot table as you would in Excel. Then rename the to zip and open and see what xml files are generated. From there work back to your SAS program.
... View more