我尝试完成的任务是将远程SAS机器通过任何工具计算的结果集导出到CSV / XLSX文件。
我所说的结果集大小为500K行和100MB XLSX近似文件大小。
SAS服务器详细信息:
操作系统:Linux for X64
产品:SAS 9.2 64位,Rev。920_11w03
我从MS Excel收到的错误代码(尝试通过Office 4.2的SAS加载项获取结果集时)如下所示:
System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
at System.String.InternalCopy(String str)
at System.Text.StringBuilder.ToString()
at SAS.Report.Models.XML.XMLIQData.XMLCSV.CreateValueElement(Char ch, ArrayList valueList, Values& values, StringBuilder& sb, Boolean& inDataString)
at SAS.Report.Models.XML.XMLIQData.XMLCSV.TokenizeString(String csvString, ArrayList valueList, ValuesList& valuesList, Int32& valuesCount, Boolean isOLAP)
at SAS.Report.Models.XML.XMLIQData.XMLCSV.LoadElement(ReportElement parent)
at SAS.Report.Models.XML.XMLReportElement.LoadSubelement(String name, XmlNode node, XMLReportElement xmlClass, ReportElement parent)
at SAS.Report.Models.XML.XMLReportElement.LoadSubelements(String name, XMLReportElement xmlClass, ReportElement parent)
at SAS.Report.Models.XML.XMLIQData.XMLEmbeddedData.LoadElement(ReportElement parent)
at SAS.Report.Models.XML.XMLReportElement.LoadSubelement(String name, XmlNode node, XMLReportElement xmlClass, ReportElement parent)
at SAS.Report.Models.XML.XMLReportElement.LoadSubelement(String name, XMLReportElement xmlClass, ReportElement parent)
at SAS.Report.Models.XML.XMLIQData.LoadElement(ReportElement parent)
at SAS.Report.Models.XML.XMLReportElement.LoadSubelement(String name, XmlNode node, XMLReportElement xmlClass, ReportElement parent)
at SAS.Report.Models.XML.XMLData.LoadElement(ReportElement parent)
at SAS.Report.Models.XML.XMLReportElement.LoadSubelement(String name, XmlNode node, XMLReportElement xmlClass, ReportElement parent)
at SAS.Report.Models.XML.XMLReportElement.LoadSubelements(String name, XMLReportElement xmlClass, ReportElement parent)
at SAS.Report.Models.XML.XMLSASReport.LoadElement(ReportElement parent)
at SAS.Report.Models.XML.XMLParse.CreateDOM(Stream file, String fragment, Hashtable customObjectMap)
at SAS.Report.Models.XML.XML.ReadReport(Stream inputStream, Hashtable customObjectMap)
at SAS.Report.Models.XML.XML.ReadReport(FileInfo file, Hashtable customObjectMap, String prefixUniqueId)
at SAS.Report.Models.XML.XML.ReadReport(String filename, Hashtable customObjectMap, String uniqueIdPrefix)
at SAS.AMO.Reports.SASReport.FromXML(String filename, Hashtable customObjectMap, Int32 fileId)
at SAS.OfficeAddin.ExcelReports.ExcelSASReport.FromXml(String filename, Int32 fileId)
at SAS.OfficeAddin.ExcelAddin.OpenSASReport(JobContext context)
at SAS.OfficeAddin.ExcelAddin.ProcessResults(JobContext context)
at SAS.OfficeAddin.OfficeAddinBase.PostProcessJob(JobContext jobContext, Boolean promptOnErrors)
请告知任何可以帮助您访问数据的软件 (最终目标是从SAS存储过程中检索数据制作数据透视表)。