<?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: Call Execute producing truncated output in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Call-Execute-producing-truncated-output/m-p/67518#M14620</link>
    <description>are you running SAS on z/OS?</description>
    <pubDate>Fri, 27 Aug 2010 12:42:08 GMT</pubDate>
    <dc:creator>Peter_C</dc:creator>
    <dc:date>2010-08-27T12:42:08Z</dc:date>
    <item>
      <title>Call Execute producing truncated output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Call-Execute-producing-truncated-output/m-p/67517#M14619</link>
      <description>Hi all,&lt;BR /&gt;
&lt;BR /&gt;
I have the below piece of code,&lt;BR /&gt;
&lt;BR /&gt;
%MACRO COPYREP(RNAME);&lt;BR /&gt;
   DATA  OMDATA;&lt;BR /&gt;
     FILENM=&amp;amp;RNAME;&lt;BR /&gt;
    INFILE DUMMY FILEVAR=FILENM END=DONE MISSOVER LENGTH=LINELEN;&lt;BR /&gt;
     DO WHILE (NOT DONE);&lt;BR /&gt;
        INPUT @1 REC $VARYING200. LINELEN;&lt;BR /&gt;
        OUTPUT;&lt;BR /&gt;
     END;&lt;BR /&gt;
&lt;BR /&gt;
 DATA _NULL_;&lt;BR /&gt;
      SET OMDATA;&lt;BR /&gt;
      FBREC = SUBSTR(REC,2,133);&lt;BR /&gt;
      FILE OUT1 NOTITLES NOPRINT;&lt;BR /&gt;
      PUT @1 FBREC $CHAR133.;&lt;BR /&gt;
%MEND;&lt;BR /&gt;
&lt;BR /&gt;
Now the problem is SAS LOG says,&lt;BR /&gt;
 &lt;BR /&gt;
69161 RECORDS WERE WRITTEN TO THE FILE OUT1.&lt;BR /&gt;
THERE WERE 69161 OBSERVATIONS READ FROM THE DATA SET WORK.OMDATA.&lt;BR /&gt;
&lt;BR /&gt;
But when I actually check the output file, it contains lesser number of records (68010).&lt;BR /&gt;
&lt;BR /&gt;
When I increase the space of the file OUT1 and run the code, it works fine. But my question is, if there was not enough space in the output file, it should have produced an error, but it is not. Please advise.</description>
      <pubDate>Fri, 27 Aug 2010 12:34:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Call-Execute-producing-truncated-output/m-p/67517#M14619</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-08-27T12:34:42Z</dc:date>
    </item>
    <item>
      <title>Re: Call Execute producing truncated output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Call-Execute-producing-truncated-output/m-p/67518#M14620</link>
      <description>are you running SAS on z/OS?</description>
      <pubDate>Fri, 27 Aug 2010 12:42:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Call-Execute-producing-truncated-output/m-p/67518#M14620</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2010-08-27T12:42:08Z</dc:date>
    </item>
    <item>
      <title>Re: Call Execute producing truncated output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Call-Execute-producing-truncated-output/m-p/67519#M14621</link>
      <description>Yes...</description>
      <pubDate>Fri, 27 Aug 2010 12:47:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Call-Execute-producing-truncated-output/m-p/67519#M14621</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-08-27T12:47:51Z</dc:date>
    </item>
    <item>
      <title>Re: Call Execute producing truncated output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Call-Execute-producing-truncated-output/m-p/67520#M14622</link>
      <description>then provide a bit more log information, even the jes joblog [which is where I imaging a B37 equivalent "out-of-space" message might appear.]</description>
      <pubDate>Fri, 27 Aug 2010 12:53:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Call-Execute-producing-truncated-output/m-p/67520#M14622</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2010-08-27T12:53:04Z</dc:date>
    </item>
    <item>
      <title>Re: Call Execute producing truncated output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Call-Execute-producing-truncated-output/m-p/67521#M14623</link>
      <description>You are making this way too hard. If your goal is to get rid of the print control character in column one use something like this:&lt;BR /&gt;
[pre]&lt;BR /&gt;
 data _null_ ;              &lt;BR /&gt;
   infile report  print ;   &lt;BR /&gt;
   file   outfile noprint ; &lt;BR /&gt;
   input ;                  &lt;BR /&gt;
   put _infile_ ;           &lt;BR /&gt;
 run ;                      &lt;BR /&gt;
[/pre]</description>
      <pubDate>Fri, 27 Aug 2010 12:56:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Call-Execute-producing-truncated-output/m-p/67521#M14623</guid>
      <dc:creator>Robert_Bardos</dc:creator>
      <dc:date>2010-08-27T12:56:40Z</dc:date>
    </item>
    <item>
      <title>Re: Call Execute producing truncated output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Call-Execute-producing-truncated-output/m-p/67522#M14624</link>
      <description>It does not produce any error, is what is the problem.</description>
      <pubDate>Mon, 06 Sep 2010 13:55:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Call-Execute-producing-truncated-output/m-p/67522#M14624</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-09-06T13:55:10Z</dc:date>
    </item>
    <item>
      <title>Re: Call Execute producing truncated output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Call-Execute-producing-truncated-output/m-p/67523#M14625</link>
      <description>To gain assistance from this forum, you will be best served by revealing all SAS code executed, in the form of your "complete" SAS-generated log output pasted into your post-reply.  Or possibly ask a colleague to offer another set of eyes into reviewing your problem/error, as an alternative. &lt;BR /&gt;
&lt;BR /&gt;
Also, consider browsing each of your files, side-by-side, to identify at what point in the file you do or do not see what you expect in the output file.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Mon, 06 Sep 2010 14:31:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Call-Execute-producing-truncated-output/m-p/67523#M14625</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2010-09-06T14:31:55Z</dc:date>
    </item>
  </channel>
</rss>

