{"id":2036,"date":"2014-11-19T19:44:07","date_gmt":"2014-11-19T19:44:07","guid":{"rendered":"https:\/\/alt2.minisoft.com\/support\/?p=2036"},"modified":"2014-11-19T19:44:07","modified_gmt":"2014-11-19T19:44:07","slug":"importing-reports-to-excel","status":"publish","type":"post","link":"https:\/\/c002.minisoft.com\/support\/importing-reports-to-excel\/","title":{"rendered":"Importing Reports to Excel"},"content":{"rendered":"<p class=\"basic\"><span style=\"font-family: Arial;\">Some users want to import reports to Excel. The problem is that the first position of the spool file is a carriage control character. This does not import well into Excel. This script will prompt you for a spool file name, and the path and location where it isto be placed on the PC.\u00a0 Read the file into the HP editor, strip the carriage control character from the file, save it, and download the edited file to the PC. Prompt for the spool file on the HP. Only the name of the spool file is needed; the group and account will be appended.<\/span><\/p>\n<dl>\n<dd>\n<dl>\n<dd>\n<dl>\n<dd><span style=\"font-family: 'Courier New'; font-size: medium;\">LET HEADER = &#8220;Spool File&#8221;<br \/>\nLET PROMPT = &#8220;Please Enter the Spool file name &#8216;onnnn&#8217; :&#8221;<br \/>\nACCEPT SPOOL<br \/>\nPrompt for the path and file name where the file is to be placed on the PC.<br \/>\nLET HEADER = &#8220;PC Path and File Name&#8221;<br \/>\nLET PROMPT = &#8220;Please enter the PC file name including the full Path&#8221;<br \/>\nACCEPT PCFILE<br \/>\nAppend the group and account to the spool file name.<br \/>\nLET SPOOLFIL = SPOOL &amp; &#8220;.OUT.HPSPOOL^M&#8221;<br \/>\nLET EDFILE = &#8220;T &#8221; &amp; SPOOLFIL<br \/>\nRun HP&#8217;s editor and text in the spool file.<br \/>\nKBSTRING editor<br \/>\nKBSPEC HP_RETRNKEY<br \/>\nWAITS &#8220;\/^Q&#8221;<br \/>\nTRANSMIT EDFILE<br \/>\nKBSPEC HP_RETRNKEY<br \/>\nWAITS &#8220;\/^Q&#8221;<br \/>\nRemove the first position from the spool file&#8211;this is the carriage control character.<br \/>\nKBSTRING cq 1\/1 to &#8220;&#8221; in all<br \/>\nKBSPEC HP_RETRNKEY<br \/>\nWAITS &#8220;\/^Q&#8221;<br \/>\nKeep the file to a name that can be used for the download.<br \/>\nKBSTRING k WS92xxx,unn<br \/>\nKBSPEC HP_RETRNKEY<br \/>\nWAITS &#8220;^Q&#8221;<br \/>\nKBSTRING y<br \/>\nKBSPEC HP_RETRNKEY<br \/>\nWAITS &#8220;^Q&#8221;<br \/>\nKBSTRING E<br \/>\nKBSPEC HP_RETRNKEY<br \/>\nWAIT 00:00:02<br \/>\nTransfer the edited file to the PC.<br \/>\nHOSTF WS92XXX<br \/>\nLOCF\u00a0 PCFILE<br \/>\nRECSIZE 256<br \/>\nASCII<br \/>\nDOWNLOAD<br \/>\nEND<\/span><\/dd>\n<\/dl>\n<\/dd>\n<\/dl>\n<\/dd>\n<\/dl>\n","protected":false},"excerpt":{"rendered":"<p>Some users want to import reports to Excel. The problem is that the first position of the spool file is a carriage control character. This does not import well into Excel. This script will prompt you for a spool file name, and the path and location where it isto be placed on the PC.\u00a0 Read [&hellip;]<\/p>\n","protected":false},"author":75,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[55,62],"tags":[],"_links":{"self":[{"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/posts\/2036"}],"collection":[{"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/users\/75"}],"replies":[{"embeddable":true,"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/comments?post=2036"}],"version-history":[{"count":1,"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/posts\/2036\/revisions"}],"predecessor-version":[{"id":2037,"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/posts\/2036\/revisions\/2037"}],"wp:attachment":[{"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/media?parent=2036"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/categories?post=2036"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/tags?post=2036"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}