title: compute length string of variable with cobol
body: <p>I have a NOTE in database table
  How can i calculate the length of that string?</p>
  
  <p>I have a variable defined like</p>
  
  <pre><code>10 NOTE.
      49 NOTE-LEN          PIC S9(4) USAGE COMP.
      49 NOTE-TEXT         PIC X(500).
  </code></pre>
  
  <p>Note is a string of 500 characters.
  I want to compute the note length.</p>