<?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 Lead values in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Lead-values/m-p/150489#M11802</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I need to create a variable that take the lead value of another variable, I found in internet that I could use merge to do this (Also expanc but I have no license sas ets):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data work.libroper3;&lt;/P&gt;&lt;P&gt;merge&lt;/P&gt;&lt;P&gt;work.libroper2&lt;/P&gt;&lt;P&gt;work.libroper2(firstobs=2 &lt;/P&gt;&lt;P&gt;keep=Fecha 'nombre comprador'n 'rut comprador'n 'nombre vendedor'n 'rut vendedor'n Instrumento Liq Cantidad Precio Tasa &lt;/P&gt;&lt;P&gt;Monto Valor Comisión 'T/C'n 'Codigo Folio'n Mvto 'Proc#'n Mon Bol Hora Observación Tipo Tipi Rutc Rutv SecuenciaC SecuenciaV&lt;/P&gt;&lt;P&gt;filtro4759 cruz1&lt;/P&gt;&lt;P&gt;rename=(cruz1=cruz2));&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the internet example, they put "keep=x" and the X variable keeps the values and doesn't start in the second observation, but when I do this, all variables start in the second observation.&lt;/P&gt;&lt;P&gt;cruz2 is the variable that have the lead value of cruz1. So, I get the lead value, but rest of my variables are wrong because the start in the second observation . Anybody could help me please?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 Sep 2014 15:24:53 GMT</pubDate>
    <dc:creator>fri0</dc:creator>
    <dc:date>2014-09-18T15:24:53Z</dc:date>
    <item>
      <title>Lead values</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Lead-values/m-p/150489#M11802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I need to create a variable that take the lead value of another variable, I found in internet that I could use merge to do this (Also expanc but I have no license sas ets):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data work.libroper3;&lt;/P&gt;&lt;P&gt;merge&lt;/P&gt;&lt;P&gt;work.libroper2&lt;/P&gt;&lt;P&gt;work.libroper2(firstobs=2 &lt;/P&gt;&lt;P&gt;keep=Fecha 'nombre comprador'n 'rut comprador'n 'nombre vendedor'n 'rut vendedor'n Instrumento Liq Cantidad Precio Tasa &lt;/P&gt;&lt;P&gt;Monto Valor Comisión 'T/C'n 'Codigo Folio'n Mvto 'Proc#'n Mon Bol Hora Observación Tipo Tipi Rutc Rutv SecuenciaC SecuenciaV&lt;/P&gt;&lt;P&gt;filtro4759 cruz1&lt;/P&gt;&lt;P&gt;rename=(cruz1=cruz2));&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the internet example, they put "keep=x" and the X variable keeps the values and doesn't start in the second observation, but when I do this, all variables start in the second observation.&lt;/P&gt;&lt;P&gt;cruz2 is the variable that have the lead value of cruz1. So, I get the lead value, but rest of my variables are wrong because the start in the second observation . Anybody could help me please?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Sep 2014 15:24:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Lead-values/m-p/150489#M11802</guid>
      <dc:creator>fri0</dc:creator>
      <dc:date>2014-09-18T15:24:53Z</dc:date>
    </item>
    <item>
      <title>Re: Lead values</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Lead-values/m-p/150490#M11803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I could solve it!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data work.libroper3;&lt;/P&gt;&lt;P&gt;merge&lt;/P&gt;&lt;P&gt;work.libroper2&lt;/P&gt;&lt;P&gt;work.libroper2(firstobs=2 &lt;/P&gt;&lt;P&gt;keep=cruz1&lt;/P&gt;&lt;P&gt;rename=(cruz1=cruz2));&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The rest of variables are not important. with that code could keep the 1first values of all the variables and also get the lead value of cruz1 for cruz2.&lt;/P&gt;&lt;P&gt;The only problem is that i don't understand why, maybe it'll be helpfull if someone could explain the code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Sep 2014 15:49:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Lead-values/m-p/150490#M11803</guid>
      <dc:creator>fri0</dc:creator>
      <dc:date>2014-09-18T15:49:44Z</dc:date>
    </item>
  </channel>
</rss>

