<?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: Enterprise Guide 7.15 Data-Step-Debugging in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Enterprise-Guide-7-15-Data-Step-Debugging/m-p/573023#M161738</link>
    <description>&lt;P&gt;Download the attachment table, please!&lt;/P&gt;</description>
    <pubDate>Fri, 12 Jul 2019 09:51:34 GMT</pubDate>
    <dc:creator>bill73</dc:creator>
    <dc:date>2019-07-12T09:51:34Z</dc:date>
    <item>
      <title>Enterprise Guide 7.15 Data-Step-Debugging</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Enterprise-Guide-7-15-Data-Step-Debugging/m-p/571404#M161174</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="The Program is a variation of Tom Zack's Program R2COB2 in the set of COB2SAS" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/30778iF0DCACDD11E6B348/image-size/large?v=v2&amp;amp;px=999" role="button" title="2019-07-05 16_00_33-DATA-Schritt-Debugger - __Remote.jpg" alt="The Program is a variation of Tom Zack's Program R2COB2 in the set of COB2SAS" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;The Program is a variation of Tom Zack's Program R2COB2 in the set of COB2SAS&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2019 14:18:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Enterprise-Guide-7-15-Data-Step-Debugging/m-p/571404#M161174</guid>
      <dc:creator>bill73</dc:creator>
      <dc:date>2019-07-05T14:18:10Z</dc:date>
    </item>
    <item>
      <title>Re: Enterprise Guide 7.15 Data-Step-Debugging</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Enterprise-Guide-7-15-Data-Step-Debugging/m-p/571676#M161284</link>
      <description>&lt;P&gt;Welcome to the SAS community!&lt;/P&gt;
&lt;P&gt;1.What are you trying to do?&lt;/P&gt;
&lt;P&gt;2.What is your question?&lt;/P&gt;
&lt;P&gt;3.If you want to extract the path of the WORK library, I suspect the macro supplied is no longer needed, and you simply should use the pathname() function.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 07 Jul 2019 22:49:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Enterprise-Guide-7-15-Data-Step-Debugging/m-p/571676#M161284</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2019-07-07T22:49:08Z</dc:date>
    </item>
    <item>
      <title>Re: Enterprise Guide 7.15 Data-Step-Debugging</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Enterprise-Guide-7-15-Data-Step-Debugging/m-p/571677#M161285</link>
      <description>&lt;P&gt;It works for me&lt;/P&gt;</description>
      <pubDate>Sun, 07 Jul 2019 23:19:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Enterprise-Guide-7-15-Data-Step-Debugging/m-p/571677#M161285</guid>
      <dc:creator>ScottBass</dc:creator>
      <dc:date>2019-07-07T23:19:48Z</dc:date>
    </item>
    <item>
      <title>Re: Enterprise Guide 7.15 Data-Step-Debugging</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Enterprise-Guide-7-15-Data-Step-Debugging/m-p/573018#M161737</link>
      <description>&lt;P&gt;When installing SAS on an IBM-Host (z13-1), you get a&amp;nbsp;set of programs from an SAS-programmer, Tom Zack,&amp;nbsp;from&amp;nbsp;early 1990, but they are still working very good. You can use them to&amp;nbsp;convert Cobol data structures to SAS data structures. You only&amp;nbsp;need the following 7&amp;nbsp;programs of this set:&lt;/P&gt;&lt;P&gt;R2MVS as leading program;&lt;/P&gt;&lt;P&gt;R2COB1, R2COB2, R2COB3, R2COB4, R2COB5 and R2COB6.&lt;/P&gt;&lt;P&gt;We now want to transfer our SAS-Programs from IBM-Host to WTS-Linux.&lt;/P&gt;&lt;P&gt;Then you have to mark typical Host-Formats, especially for packed decimal fields, so that you derive the host origin as shown in the table (see Attachments).&lt;/P&gt;&lt;P&gt;The only Program to do this is the R2COB2 and we label this program variation as R2COB2GD.&lt;/P&gt;&lt;P&gt;At the host the EG-Project works very well; we used the CP1-Cobol-data-structure of Tom Zack for testing..&lt;/P&gt;&lt;P&gt;After Migration of this project to WTS-Linux in accordance to our guidance, the project runs without any errors, but it doesn’t work as designed.&lt;/P&gt;&lt;P&gt;The datasets “group” and “dictionary” as result datasets in the R2COB2 are empty.&lt;/P&gt;&lt;P&gt;We hoped, that the Data-Step-Debugger will help us, to understand the problem.&lt;/P&gt;&lt;P&gt;But then the error occurs: Error in transfering of the SAS-Code (Translation from the german error message); “unrecognized command: run;”. This error message occurs even after eliminating the first If-Statement:&lt;/P&gt;&lt;P&gt;IF _N_ = &lt;STRONG&gt;1&lt;/STRONG&gt; THEN DO;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SET SWITCHES;&lt;/P&gt;&lt;P&gt;END; /* IF _N_ = 1 */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This statement was redundant, because the dataset “work.switches” contained only 1 sentence.&lt;/P&gt;&lt;P&gt;So we reduce this Statement to:&lt;/P&gt;&lt;P&gt;SET SWITCHES;&lt;/P&gt;&lt;P&gt;But the same error message occurred.&lt;/P&gt;&lt;P&gt;Unfortunately we’ve got the same error message at the host, when we expand the data-Statement with a “/ ldebug”. Our question to the community is, if anybody knows about problems like this with the data step debugger.&lt;/P&gt;&lt;P&gt;So the data step debugger seems to be unsuitable in this special case. We’ll discuss the problem of Migration to WTS-Linux with our Linux-Experts. Meanwhile we have fixed the Problem. Because R2COB2 is a Parser Program, ist is important, that the read in text is positioned at the original position. With the format $EBCDICn., the&amp;nbsp;leading blanks are trimmed. When keeping the $Charn.-Format, the program works on WTS-Linux as&amp;nbsp;at the&amp;nbsp;IBM-Host!&lt;/P&gt;&lt;P&gt;I think the Problem of the Data-Step-Debugger is&amp;nbsp;the structured programming&amp;nbsp;method, wich is used by Tom Zack in the R2COB2-Program. i.e. &lt;FONT face="andale mono,times"&gt;"Link&lt;/FONT&gt; &lt;FONT face="batang,apple gothic"&gt;Label; Label: &lt;FONT face="andale mono,times"&gt;Statements&lt;/FONT&gt;; &lt;FONT face="andale mono,times"&gt;return&lt;/FONT&gt;;"-&lt;FONT face="andale mono,times"&gt;technique!&amp;nbsp;Is there any reference point for this finding?&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;bill73&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jul 2019 09:29:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Enterprise-Guide-7-15-Data-Step-Debugging/m-p/573018#M161737</guid>
      <dc:creator>bill73</dc:creator>
      <dc:date>2019-07-12T09:29:56Z</dc:date>
    </item>
    <item>
      <title>Re: Enterprise Guide 7.15 Data-Step-Debugging</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Enterprise-Guide-7-15-Data-Step-Debugging/m-p/573023#M161738</link>
      <description>&lt;P&gt;Download the attachment table, please!&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jul 2019 09:51:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Enterprise-Guide-7-15-Data-Step-Debugging/m-p/573023#M161738</guid>
      <dc:creator>bill73</dc:creator>
      <dc:date>2019-07-12T09:51:34Z</dc:date>
    </item>
    <item>
      <title>Re: Enterprise Guide 7.15 Data-Step-Debugging</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Enterprise-Guide-7-15-Data-Step-Debugging/m-p/573412#M161883</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/280517"&gt;@bill73&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Download the attachment table, please!&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;No.&amp;nbsp; Supply your SAS log, please!&amp;nbsp; (And what "attachment table" are you talking about?&amp;nbsp; A .sas program?&amp;nbsp; An Excel file?)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The problem isn't with the debugger, the problem is with your SAS program.&amp;nbsp; My guess is you're missing a semi-colon, and SAS gets confused about the run statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;IF _N_ =&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;THEN DO;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SET SWITCHES;&lt;/P&gt;
&lt;P&gt;END; /* IF _N_ = 1 */&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This statement was redundant, because the dataset “work.switches” contained only 1 sentence.&lt;/P&gt;
&lt;P&gt;So we reduce this Statement to:&lt;/P&gt;
&lt;P&gt;SET SWITCHES;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your thinking is incorrect.&amp;nbsp; The original code will read a single row from SET SWITCHES, then retain those variables for the life of the data step, or until explicitly changed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your code change will mean a record is read from SWITCHES for each iteration of the data step.&amp;nbsp; Since SAS will end the data step on the first data set that has read past the end of data, that means your data step will only run for a single iteration.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I suspect you have multiple SET statements in your code, but I can't know for sure since you haven't supplied your SAS log.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jul 2019 02:56:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Enterprise-Guide-7-15-Data-Step-Debugging/m-p/573412#M161883</guid>
      <dc:creator>ScottBass</dc:creator>
      <dc:date>2019-07-15T02:56:26Z</dc:date>
    </item>
    <item>
      <title>Re: Enterprise Guide 7.15 Data-Step-Debugging</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Enterprise-Guide-7-15-Data-Step-Debugging/m-p/579870#M164658</link>
      <description>&lt;P&gt;Excuse me, but i couldn't answer immediately, because I was ill. In the last week I got Problems with a Windows Setup for Win 7, so that i've to change to Win 10.&lt;/P&gt;&lt;P&gt;Your diagnose in relation to the "IF _N_ = 1 THEN DO;" -Statement is absolutely reliable. But&amp;nbsp;even, if&amp;nbsp;try to debug the program&amp;nbsp;R2COB2 in the cob2sas-Package of Tom Zack with this IF-Statement,&amp;nbsp;I'll get the same error message "error in Code Transmission". I Think, the Problem for debugging of this Code is the technique of&amp;nbsp;structured programming&amp;nbsp;with Link label; … label:&amp;nbsp; return; /* FRom label */.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2019 13:20:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Enterprise-Guide-7-15-Data-Step-Debugging/m-p/579870#M164658</guid>
      <dc:creator>bill73</dc:creator>
      <dc:date>2019-08-08T13:20:43Z</dc:date>
    </item>
    <item>
      <title>Re: Enterprise Guide 7.15 Data-Step-Debugging</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Enterprise-Guide-7-15-Data-Step-Debugging/m-p/580048#M164735</link>
      <description>&lt;P&gt;I'm unsubscribing from this one so I won't get any further updates.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, what part of &lt;FONT size="5" color="#FF0000"&gt;&lt;STRONG&gt;"&lt;/STRONG&gt;&lt;/FONT&gt;&lt;SPAN&gt;&lt;FONT size="5" color="#FF0000"&gt;&lt;STRONG&gt;No.&amp;nbsp; Supply your SAS log, please!"&lt;/STRONG&gt;&lt;/FONT&gt; did you not understand?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Good luck with your issue, and I'm happy you're feeling better.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Aug 2019 02:42:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Enterprise-Guide-7-15-Data-Step-Debugging/m-p/580048#M164735</guid>
      <dc:creator>ScottBass</dc:creator>
      <dc:date>2019-08-09T02:42:14Z</dc:date>
    </item>
  </channel>
</rss>

