<?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: In VIEWTABLE, How Can I Directly Go to Certain Observation? in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/In-VIEWTABLE-How-Can-I-Directly-Go-to-Certain-Observation/m-p/695729#M9465</link>
    <description>&lt;PRE&gt;data have;
do i=1 to 100000;
x=rannor(1);
y=x+rannor(1);
output;
end;
run;

data temp;
 n=12345;
 set have point=n;
 output;
 stop;
 run;
 
 proc print noobs;run;&lt;/PRE&gt;</description>
    <pubDate>Sun, 01 Nov 2020 08:54:27 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2020-11-01T08:54:27Z</dc:date>
    <item>
      <title>In VIEWTABLE, How Can I Directly Go to Certain Observation?</title>
      <link>https://communities.sas.com/t5/SAS-Studio/In-VIEWTABLE-How-Can-I-Directly-Go-to-Certain-Observation/m-p/695705#M9463</link>
      <description>&lt;P&gt;Sometimes I need to see specific observations in large data sets. For example,&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
do i=1 to 100000;
x=rannor(1);
y=x+rannor(1);
output;
end;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;And suppose I want to see the 12,345th observation in the 100,000-observation data set as follows.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/51285iB3D0D26E5E27F596/image-size/medium?v=v2&amp;amp;px=400" role="button" title="1.png" alt="1.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/51284iBA556669A17AC02F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="2.png" alt="2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Usually I use (1) the page-up and page-down keys or (2) the up-arrow and down-arrow keys, or (3) drag the right scroll bar. In Excel I can use the F5 key to go to specific cells. I wonder whether SAS has something similar, both vertically and horizontally, though the above example is only a vertical case.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 01 Nov 2020 01:50:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/In-VIEWTABLE-How-Can-I-Directly-Go-to-Certain-Observation/m-p/695705#M9463</guid>
      <dc:creator>Junyong</dc:creator>
      <dc:date>2020-11-01T01:50:56Z</dc:date>
    </item>
    <item>
      <title>Re: In VIEWTABLE, How Can I Directly Go to Certain Observation?</title>
      <link>https://communities.sas.com/t5/SAS-Studio/In-VIEWTABLE-How-Can-I-Directly-Go-to-Certain-Observation/m-p/695724#M9464</link>
      <description>&lt;P&gt;If you have the Viewtable open you can use Ctrl-F to bring up a search window that you can use to indicate a variable and value to search for.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want a command in the SAS command box you can type:&lt;/P&gt;
&lt;P&gt;vt have; find i=75;&lt;/P&gt;
&lt;P&gt;note the ; to delimit commands. The box will open with that line.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you don't have a variable you can try:&lt;/P&gt;
&lt;P&gt;vt have; forward 75;&lt;/P&gt;
&lt;P&gt;The first time the VT window opens it would go forward (toward the end of the file) 75 lines. However it is &lt;STRONG&gt;not&lt;/STRONG&gt; a row number reference.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you expect this to be opened in code then you use the DM command:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;dm "vt have; find 75;";&lt;/P&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;P&gt;dm "vt have; forward 75;";&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the data set you want is the last created one you could use _last_ in place of the data set name.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There isn't really anything similar for variables. There is a COLUMNS command that can show the list of given variable names (&lt;STRONG&gt;only).&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;That would look like&lt;/P&gt;
&lt;P&gt;vt have; columns ' i y';&lt;/P&gt;
&lt;P&gt;or if you have VT open the Columns in the command box (that first box on the left in the menu bar next to the check mark)&lt;/P&gt;
&lt;P&gt;You could use HIDE or UNHIDE as well to manipulate the current variables shown.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 01 Nov 2020 08:24:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/In-VIEWTABLE-How-Can-I-Directly-Go-to-Certain-Observation/m-p/695724#M9464</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-11-01T08:24:48Z</dc:date>
    </item>
    <item>
      <title>Re: In VIEWTABLE, How Can I Directly Go to Certain Observation?</title>
      <link>https://communities.sas.com/t5/SAS-Studio/In-VIEWTABLE-How-Can-I-Directly-Go-to-Certain-Observation/m-p/695729#M9465</link>
      <description>&lt;PRE&gt;data have;
do i=1 to 100000;
x=rannor(1);
y=x+rannor(1);
output;
end;
run;

data temp;
 n=12345;
 set have point=n;
 output;
 stop;
 run;
 
 proc print noobs;run;&lt;/PRE&gt;</description>
      <pubDate>Sun, 01 Nov 2020 08:54:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/In-VIEWTABLE-How-Can-I-Directly-Go-to-Certain-Observation/m-p/695729#M9465</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2020-11-01T08:54:27Z</dc:date>
    </item>
    <item>
      <title>Re: In VIEWTABLE, How Can I Directly Go to Certain Observation?</title>
      <link>https://communities.sas.com/t5/SAS-Studio/In-VIEWTABLE-How-Can-I-Directly-Go-to-Certain-Observation/m-p/695735#M9466</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/173881"&gt;@Junyong&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In my opinion, the&amp;nbsp;&lt;A href="https://support.sas.com/downloads/package.htm?pid=2173" target="_blank" rel="nofollow noopener noreferrer noopener noreferrer"&gt;SAS Universal Viewer&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;is superior to a VIEWTABLE window when it comes to viewing SAS datasets. One of its advantages is that it doesn't lock the datasets being viewed (see, e.g., this thread:&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://communities.sas.com/t5/New-SAS-User/Close-all-VIEWTABLES/m-p/502637" target="_blank" rel="noopener"&gt;Close all VIEWTABLES&lt;/A&gt;&lt;SPAN&gt;). And of course it has the "Go to row ..." feature:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="UV_go_to_row.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/51291iBEB888CE9292CD1E/image-size/large?v=v2&amp;amp;px=999" role="button" title="UV_go_to_row.png" alt="UV_go_to_row.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 01 Nov 2020 10:15:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/In-VIEWTABLE-How-Can-I-Directly-Go-to-Certain-Observation/m-p/695735#M9466</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2020-11-01T10:15:32Z</dc:date>
    </item>
    <item>
      <title>Re: In VIEWTABLE, How Can I Directly Go to Certain Observation?</title>
      <link>https://communities.sas.com/t5/SAS-Studio/In-VIEWTABLE-How-Can-I-Directly-Go-to-Certain-Observation/m-p/695747#M9467</link>
      <description>&lt;P&gt;&lt;CODE&gt;forward&lt;/CODE&gt; is exactly what I wanted—&lt;CODE&gt;columns&lt;/CODE&gt;&amp;nbsp;is also useful.&lt;/P&gt;&lt;P&gt;May I add a little silly question? I have used SAS more than five years and sometimes use &lt;CODE&gt;dm&lt;/CODE&gt; functions such as &lt;CODE&gt;log;clear;output;clear;&lt;/CODE&gt;&amp;nbsp;but have never though about the command box. Where can I more find the command box functions?&lt;/P&gt;</description>
      <pubDate>Sun, 01 Nov 2020 15:34:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/In-VIEWTABLE-How-Can-I-Directly-Go-to-Certain-Observation/m-p/695747#M9467</guid>
      <dc:creator>Junyong</dc:creator>
      <dc:date>2020-11-01T15:34:03Z</dc:date>
    </item>
    <item>
      <title>Re: In VIEWTABLE, How Can I Directly Go to Certain Observation?</title>
      <link>https://communities.sas.com/t5/SAS-Studio/In-VIEWTABLE-How-Can-I-Directly-Go-to-Certain-Observation/m-p/695878#M9468</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/173881"&gt;@Junyong&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;CODE&gt;forward&lt;/CODE&gt; is exactly what I wanted—&lt;CODE&gt;columns&lt;/CODE&gt;&amp;nbsp;is also useful.&lt;/P&gt;
&lt;P&gt;May I add a little silly question? I have used SAS more than five years and sometimes use &lt;CODE&gt;dm&lt;/CODE&gt; functions such as &lt;CODE&gt;log;clear;output;clear;&lt;/CODE&gt;&amp;nbsp;but have never though about the command box. Where can I more find the command box functions?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;The SAS documentation. Search for Command.&lt;/P&gt;
&lt;P&gt;Or topics like VIEWTABLE.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Nov 2020 10:33:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/In-VIEWTABLE-How-Can-I-Directly-Go-to-Certain-Observation/m-p/695878#M9468</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-11-02T10:33:45Z</dc:date>
    </item>
  </channel>
</rss>

