<?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: Closed parenthesis understanding in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Closed-parenthesis-understanding/m-p/590283#M168908</link>
    <description>&lt;P&gt;I'm using SAS EG 7.15, seems enhance Editor facility is not available in EG.&lt;/P&gt;</description>
    <pubDate>Fri, 20 Sep 2019 07:01:11 GMT</pubDate>
    <dc:creator>Babloo</dc:creator>
    <dc:date>2019-09-20T07:01:11Z</dc:date>
    <item>
      <title>Closed parenthesis understanding</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Closed-parenthesis-understanding/m-p/589929#M168801</link>
      <description>&lt;P&gt;I'm not certain where I'm missing the closed paranthesis in the below code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;26         data test;
27         
28         SCHDLD_OBJ_RUN_STRT_TMST=%sysfunc(floor(%sysfunc(inputn("&amp;amp;etls_stepStartTime",datetime17.)))/60*60);
                                                                                                             _
                                                                                                             388
                                                                                                             200
                                                                                                             76
ERROR: Expected close parenthesis after macro function invocation not found.
ERROR 388-185: Expecting an arithmetic operator.

ERROR 200-322: The symbol is not recognized and will be ignored.

ERROR 76-322: Syntax error, statement will be ignored.

29         format SCHDLD_OBJ_RUN_STRT_TMST dtfmt.;
30         run;

NOTE: The SAS System stopped processing this step because of errors.
WARNING: The data set WORK.TEST may be incomplete.  When this step was stopped there were 0 observations and 1 variables.
WARNING: Data set WORK.TEST was not replaced because this step was stopped&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 19 Sep 2019 06:36:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Closed-parenthesis-understanding/m-p/589929#M168801</guid>
      <dc:creator>Babloo</dc:creator>
      <dc:date>2019-09-19T06:36:43Z</dc:date>
    </item>
    <item>
      <title>Re: Closed parenthesis understanding</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Closed-parenthesis-understanding/m-p/589934#M168802</link>
      <description>&lt;P&gt;You are doing a simple assignment in a data step, so the %sysfunc's are unnecessary.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;SCHDLD_OBJ_RUN_STRT_TMST = floor(input("&amp;amp;etls_stepStartTime",datetime17.) / 60) * 60;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You need to take more care when copying code suggested by people here. Note that I moved the multiplication out of the floor() call.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;Edited to use input instead of inputn, kudos to &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4954"&gt;@Astounding&lt;/a&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Sep 2019 06:55:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Closed-parenthesis-understanding/m-p/589934#M168802</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-09-19T06:55:41Z</dc:date>
    </item>
    <item>
      <title>Re: Closed parenthesis understanding</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Closed-parenthesis-understanding/m-p/589935#M168803</link>
      <description>Advice:&lt;BR /&gt;&lt;BR /&gt;Get rid of %sysfunc, then change INPUTN to INPUT.  DATA steps know how to use functions and don't need macro language to perform the calculations.&lt;BR /&gt;&lt;BR /&gt;Once you do this, the code becomes much easier to write, interpret, and debug.&lt;BR /&gt;&lt;BR /&gt;Expect debugging to be needed since&lt;BR /&gt;&lt;BR /&gt;value / 60 * 60&lt;BR /&gt;&lt;BR /&gt;is equal to&lt;BR /&gt;&lt;BR /&gt;value&lt;BR /&gt;&lt;BR /&gt;Good to see that you are trying to run tests to get this to work.</description>
      <pubDate>Thu, 19 Sep 2019 06:53:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Closed-parenthesis-understanding/m-p/589935#M168803</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2019-09-19T06:53:56Z</dc:date>
    </item>
    <item>
      <title>Re: Closed parenthesis understanding</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Closed-parenthesis-understanding/m-p/590037#M168830</link>
      <description>&lt;P&gt;If you are using the SAS Display Manager (sometimes called Base) interface the enhanced editor has a "find matching parentheses" ability. Place the cursor on a (&amp;nbsp;, ) , [ , ] , { or } character in the code. Press either CTRL&amp;nbsp;9 or CTRL 0&amp;nbsp; (note those are the keys with the ( and ) symbol) or Ctrl [ or Ctrl ] and the editor will show what SAS is currently interpreting to be the matching character.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that I did say interpreting, not what you intend.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the cursor doesn't move then there is no match found by the SAS interpretation rules. So you can go to the last ) and find out which one is the "match". That should give a hint where to start looking for syntax issues.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Sep 2019 15:16:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Closed-parenthesis-understanding/m-p/590037#M168830</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-09-19T15:16:41Z</dc:date>
    </item>
    <item>
      <title>Re: Closed parenthesis understanding</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Closed-parenthesis-understanding/m-p/590043#M168834</link>
      <description>&lt;P&gt;I never knew enhanced editor did parenthesis matching.&amp;nbsp; Looks like the key combination is: CTRL [&amp;nbsp; &amp;nbsp; &amp;nbsp; i.e. Ctrl key and the bracket key.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://v8doc.sas.com/sashtml/win/zenhcded.htm" target="_blank"&gt;https://v8doc.sas.com/sashtml/win/zenhcded.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I was trying CTRL ( by holding down SHIFT CTRL and number 9 at the same time , but didn't have any luck. : )&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Sep 2019 14:42:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Closed-parenthesis-understanding/m-p/590043#M168834</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2019-09-19T14:42:04Z</dc:date>
    </item>
    <item>
      <title>Re: Closed parenthesis understanding</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Closed-parenthesis-understanding/m-p/590061#M168844</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/19879"&gt;@Quentin&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I never knew enhanced editor did parenthesis matching.&amp;nbsp; Looks like the key combination is: CTRL [&amp;nbsp; &amp;nbsp; &amp;nbsp; i.e. Ctrl key and the bracket key.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://v8doc.sas.com/sashtml/win/zenhcded.htm" target="_blank" rel="noopener"&gt;https://v8doc.sas.com/sashtml/win/zenhcded.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I was trying CTRL ( by holding down SHIFT CTRL and number 9 at the same time , but didn't have any luck. : )&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Miss typed&amp;nbsp;corrected now&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This can be changed in the Enhanced Editor Preferences: Tools&amp;gt;Options&amp;gt;Enhanced Editor Keys. Select Navigation in the top drop down list. Scroll down to Move cursor to matching brace. The list shows&lt;/P&gt;
&lt;P&gt;Ctrl+[&lt;/P&gt;
&lt;P&gt;Ctrl+]&lt;/P&gt;
&lt;P&gt;Ctrl+0&lt;/P&gt;
&lt;P&gt;Ctrl+9&lt;/P&gt;
&lt;P&gt;as the default defined keys.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Sep 2019 15:15:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Closed-parenthesis-understanding/m-p/590061#M168844</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-09-19T15:15:06Z</dc:date>
    </item>
    <item>
      <title>Re: Closed parenthesis understanding</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Closed-parenthesis-understanding/m-p/590068#M168846</link>
      <description>&lt;P&gt;Nice, never noticed that. I wish there was a "move cursor to end|beginning of step."&amp;nbsp; That would make it easy to submit the current step where the cursor is located.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Feels like the kind of thing &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/42345"&gt;@rogerjdeangelis&lt;/a&gt;&amp;nbsp;is likely have working (though perhaps only in the non-enhanced editor)?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Sep 2019 15:26:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Closed-parenthesis-understanding/m-p/590068#M168846</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2019-09-19T15:26:42Z</dc:date>
    </item>
    <item>
      <title>Re: Closed parenthesis understanding</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Closed-parenthesis-understanding/m-p/590283#M168908</link>
      <description>&lt;P&gt;I'm using SAS EG 7.15, seems enhance Editor facility is not available in EG.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Sep 2019 07:01:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Closed-parenthesis-understanding/m-p/590283#M168908</guid>
      <dc:creator>Babloo</dc:creator>
      <dc:date>2019-09-20T07:01:11Z</dc:date>
    </item>
    <item>
      <title>Re: Closed parenthesis understanding</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Closed-parenthesis-understanding/m-p/590333#M168938</link>
      <description>&lt;P&gt;Enhanced editor is an old PC SAS thing (introduced in v7 I think?).&amp;nbsp; It was enhanced over an even older PC SAS editor window.&amp;nbsp; &amp;nbsp;It brought amazing things to your SAS code, like colors.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;EG program editor has just about all the benefits of the enhanced editor and more.&amp;nbsp; For example, parenthesis matching in EG is automatic.&amp;nbsp; When you type a close parenthesis, it highlights the opening parenthesis it matches with.&amp;nbsp; And you can also move the cursor through an expression, and each time it hits a parenthesis, it will highlight the pair.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="paren.png" style="width: 175px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/32637iF6544CA6CD01812B/image-size/large?v=v2&amp;amp;px=999" role="button" title="paren.png" alt="paren.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Sep 2019 11:29:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Closed-parenthesis-understanding/m-p/590333#M168938</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2019-09-20T11:29:46Z</dc:date>
    </item>
    <item>
      <title>Re: Closed parenthesis understanding</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Closed-parenthesis-understanding/m-p/590420#M168977</link>
      <description>Should I change any options in EG to experience this feature? If I type&lt;BR /&gt;close paranthesis ')' I couldn't see that program editor is matching the&lt;BR /&gt;open parentheses.&lt;BR /&gt;</description>
      <pubDate>Fri, 20 Sep 2019 14:29:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Closed-parenthesis-understanding/m-p/590420#M168977</guid>
      <dc:creator>Babloo</dc:creator>
      <dc:date>2019-09-20T14:29:13Z</dc:date>
    </item>
    <item>
      <title>Re: Closed parenthesis understanding</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Closed-parenthesis-understanding/m-p/590519#M169023</link>
      <description>&lt;P&gt;I don't think you need to turn any option on for parenthesis matching.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I checked Tools-&amp;gt;Options-&amp;gt;SAS prgorams-&amp;gt;Editor Options and didn't see anything obvious.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm in EG 7.15 also, and EG has done parenthesis matching as long as I can remember.&amp;nbsp; Maybe ask over in the EG community.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Sep 2019 18:21:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Closed-parenthesis-understanding/m-p/590519#M169023</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2019-09-20T18:21:51Z</dc:date>
    </item>
    <item>
      <title>Re: Closed parenthesis understanding</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Closed-parenthesis-understanding/m-p/590552#M169034</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/8409"&gt;@Babloo&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;On the "Appearance" tab in the "Enhanced Editor Options" window (see Quentin's post) there is an item "Parenthesis match highlighting" in the box "File elements." There you can change the "Background" color for that highlighting ("Gray" in the "Default" scheme). If this is set to an inappropriate color (e.g. white on white background or a color that is invisible for some reason on your screen), then, indeed, you won't see the highlighting.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Sep 2019 22:18:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Closed-parenthesis-understanding/m-p/590552#M169034</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2019-09-20T22:18:41Z</dc:date>
    </item>
  </channel>
</rss>

