<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Trouble Reading sas7bpgm file in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/Trouble-Reading-sas7bpgm-file/m-p/387767#M11697</link>
    <description>&lt;P&gt;That's a &lt;A href="http://support.sas.com/documentation/cdl/en/lrcon/69852/HTML/default/viewer.htm#n06mmd1dz2tgfjn1guqitlr7dema.htm" target="_blank"&gt;Stored Compiled Data Step Program&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Something that is rarely used because of the problems you just encounter. It's much better to store dynamic code in a macro in a .sas file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You might be able to extract the code by opening the file with a hex viewing tool (ie hexdump or hexedit).&lt;/P&gt;</description>
    <pubDate>Mon, 14 Aug 2017 13:25:47 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2017-08-14T13:25:47Z</dc:date>
    <item>
      <title>Trouble Reading sas7bpgm file</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Trouble-Reading-sas7bpgm-file/m-p/387757#M11695</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a problem opening a sas7bpgm file which as I understand is a compiled data step program. I am trying to find the code contained in this file and I get an error. I appreciate it if anyone can help me how to find the code inside this file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code I run and the massage in log is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;37 data pgm=codes.cpscr1;

38 describe;

39 run;

ERROR: The stored program CODES.CPSCR1 was created on an incompatible host and cannot execute

on this host.

ERROR: Unable to load DATA STEP program CODES.CPSCR1.

NOTE: The SAS System stopped processing this step because of errors.

NOTE: DATA statement used (Total process time):

real time 0.01 seconds

cpu time 0.01 seconds&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;&lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New"&gt;I am using SAS 9.3 and the full file name is cpscr1.sas7bpgm.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;&lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New"&gt;Thanks!&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Aug 2017 13:00:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Trouble-Reading-sas7bpgm-file/m-p/387757#M11695</guid>
      <dc:creator>apourmo</dc:creator>
      <dc:date>2017-08-14T13:00:23Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble Reading sas7bpgm file</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Trouble-Reading-sas7bpgm-file/m-p/387763#M11696</link>
      <description>&lt;P&gt;I have never heard of this file type, however it is another example of why to never use proprietary file formats. &amp;nbsp;As it is a binary file format you may have issues with it, for instance, it was likely compiled on a 32bit system, so you would need to read the catalog on a 32bit system. &amp;nbsp;You may also need to use a combination of proc cimport or cport functions if the file was created on another system.&lt;/P&gt;
&lt;P&gt;Unless I fancied wasting a few hours trying to get this running I would go back to source and ask them to provide open text files if possible, and take it as a hint, always use open cross platform file formats like text for ease of use.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Aug 2017 13:10:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Trouble-Reading-sas7bpgm-file/m-p/387763#M11696</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-08-14T13:10:33Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble Reading sas7bpgm file</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Trouble-Reading-sas7bpgm-file/m-p/387767#M11697</link>
      <description>&lt;P&gt;That's a &lt;A href="http://support.sas.com/documentation/cdl/en/lrcon/69852/HTML/default/viewer.htm#n06mmd1dz2tgfjn1guqitlr7dema.htm" target="_blank"&gt;Stored Compiled Data Step Program&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Something that is rarely used because of the problems you just encounter. It's much better to store dynamic code in a macro in a .sas file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You might be able to extract the code by opening the file with a hex viewing tool (ie hexdump or hexedit).&lt;/P&gt;</description>
      <pubDate>Mon, 14 Aug 2017 13:25:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Trouble-Reading-sas7bpgm-file/m-p/387767#M11697</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-08-14T13:25:47Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble Reading sas7bpgm file</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Trouble-Reading-sas7bpgm-file/m-p/387772#M11698</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your input. I am using a 32 bit SAS. I try to use procs you suggested as&amp;nbsp;I don't have access to the source.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Amin&lt;/P&gt;</description>
      <pubDate>Mon, 14 Aug 2017 14:05:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Trouble-Reading-sas7bpgm-file/m-p/387772#M11698</guid>
      <dc:creator>apourmo</dc:creator>
      <dc:date>2017-08-14T14:05:21Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble Reading sas7bpgm file</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Trouble-Reading-sas7bpgm-file/m-p/387774#M11699</link>
      <description>&lt;P&gt;Thank you. I try to open the file using hexdit.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 14 Aug 2017 14:06:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Trouble-Reading-sas7bpgm-file/m-p/387774#M11699</guid>
      <dc:creator>apourmo</dc:creator>
      <dc:date>2017-08-14T14:06:20Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble Reading sas7bpgm file</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Trouble-Reading-sas7bpgm-file/m-p/387801#M11701</link>
      <description>&lt;P&gt;ERROR: The stored program CODES.CPSCR1 was created on an incompatible host and cannot execute&lt;BR /&gt;on this host.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since this is a compiled file it is dependent on operating system and possibly version as well. That's the "incompatible host" bit.&lt;/P&gt;
&lt;P&gt;You might also have problems with things refereenced in the code such as libraries you do not have, or data sets in libraries you do not have and that could be just a start.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Aug 2017 14:56:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Trouble-Reading-sas7bpgm-file/m-p/387801#M11701</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-08-14T14:56:38Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble Reading sas7bpgm file</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Trouble-Reading-sas7bpgm-file/m-p/389146#M11759</link>
      <description>&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I finally found the platform that seems be the one this file was compiled in. However i still have trouble realizing what's in it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code and the error message:&lt;/P&gt;&lt;PRE&gt;6    data pgm=code.cpscr1;
7    describe;
8    run;

NOTE: No source statements were found in CODE.CPSCR1.PROGRAM.
NOTE: DATA statement used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds&lt;/PRE&gt;&lt;P&gt;The file suffix is :&amp;nbsp;sas7bpgm&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me know if you know any other way to decode this thing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Aug 2017 16:30:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Trouble-Reading-sas7bpgm-file/m-p/389146#M11759</guid>
      <dc:creator>apourmo</dc:creator>
      <dc:date>2017-08-18T16:30:24Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble Reading sas7bpgm file</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Trouble-Reading-sas7bpgm-file/m-p/389290#M11760</link>
      <description>&lt;P&gt;There is no error message in your log, just a note. It is entirely possible that there are genuinely no source statements in your program.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What happens if you execute the stored program on the platform where you ran the DESCRIBE?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 19 Aug 2017 02:06:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Trouble-Reading-sas7bpgm-file/m-p/389290#M11760</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2017-08-19T02:06:48Z</dc:date>
    </item>
  </channel>
</rss>

