title: page break by length and group sas proc report
body: <p>I would like to create a page break value that can help me break the page when I use proc report.</p>
  <p>Now my data looks like this:</p>
  <p>Group Value</p>
  <p>a     1</p>
  <p>a     2</p>
  <p>a     3</p>
  <p>...</p>
  <p>b     1</p>
  <p>b     2</p>
  <p>...</p>
  <p>c     1</p>
  <p>c     2</p>
  <p>c     3</p>
  <p>And suppose I only want <strong>two lines</strong> per page, and break if the group changed.
  So I need a dataset like this:</p>
  <p>Group Value Page</p>
  <p>a     1      1</p>
  <p>a     2      1</p>
  <p>a     3      2</p>
  <p>...</p>
  <p>b     1      3</p>
  <p>b     2      3</p>
  <p>...</p>
  <p>c     1      4</p>
  <p>c     2      4</p>
  <p>c     3      5</p>
  <p>Can anyone help me with this? Thanks!</p>