<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <div class="moz-cite-prefix">Dear Renate</div>
    <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix">The fields are repeatable, so if you
      remove one occurrence then the remaining ones are automatically
      renumbered<br>
      Due to the re-sequencing, it is not simple to delete several
      occurrences if they are not consecutive or there are intermediate
      occurrences<br>
      In your case, you want to delete the first three, it is easier<br>
      <br>
      mx snd300 "proc ='d69/1d69/1d69/1" copy = snd301<br>
      <br>
      but this must be analyzed case by case, there are no general rules
      <br>
    </div>
    <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix">regards</div>
    <div class="moz-cite-prefix">ernesto spinak</div>
    <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix">El 3/3/2021 a las 15:08, Renate
      Morgenstern escribió:<br>
    </div>
    <blockquote type="cite"
      cite="mid:3e6a9984f7ef9eae2ce0b9efc6039769e7ee0c86.camel@iway.na">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div>Hi Ernesto,</div>
      <div><br>
      </div>
      <div>I am struggling with mx. </div>
      <div>How do I only delete certain occurrences of a tag in a
        database? I have the following command, but then it deletes ALL
        the occurrences of tag 301:</div>
      <div><br>
      </div>
      <div>mx snd300 "proc=(if v301*0.1='0' then 'd301[1]' fi,)"
        copy=snd301 now -all</div>
      <div><br>
      </div>
      <div>When I add [1] after d301 I get the following error message:</div>
      <div><br>
      </div>
      <div>fatal: [1]d301[1]d301[1]</div>
      <div><br>
      </div>
      <div>I would like that it deletes occurrences 1-3 only.</div>
      <div><br>
      </div>
      <div>Thanks in advance for your help.</div>
      <div><br>
      </div>
      <div>Renate</div>
      <div><span>
          <pre>
</pre>
          <pre>-- 
</pre>
          <table width="100%" cellspacing="0" cellpadding="0">
            <tbody>
              <tr>
                <td>
                  Renate Morgenstern<br>
                  Tel.: +264 61 242124<br>
                  Cell: +264 81 2910284<br>
                  Fax: 088637518<br>
                  <div>10023, Windhoek, Namibia
                  </div>
                </td>
              </tr>
            </tbody>
          </table>
        </span></div>
    </blockquote>
    <p><br>
    </p>
    <pre class="moz-signature" cols="72">-- 
  .^.                                .^.
  ( )                                ( )
  ===                                ===
 =[=]================================[=]=
  | |  Ernesto Spinak                | |
  | |  <a class="moz-txt-link-abbreviated" href="mailto:spinaker@adinet.com.uy">spinaker@adinet.com.uy</a>        | |
  | |  Montevideo, Uruguay           | |
  | |  tel/fax  (598) 2622-3352      | |
  | |  celular  (598) 99612238      | |
 =[=]================================[=]=
  ===                                ===
  ( )                                ( )
   V                                  V </pre>
  </body>
</html>