title: How to split a SAS datset with a set Number of Lines into a sas dataset/or a TXT file?
body: <p>I have a claim data set which i want to split into TXT files. The main issue is that a single TXT file can contain just two claims(should write all occurances of a claim) and the Next claim  should be written into another txt or a dataset i.e. if i have 10 claims in a file i should be having 5 files/dataset as output.</p>
  
  <p>My data Looks like this:</p>
  
  <pre><code>                                         Obs    Tin          Claim_Id
                                           1    271408630    EDY03JHKK00
                                           2    271408630    EDY03JHKK01
                                           3    271408630    EDY03JHKK01
                                           4    271408630    EDY03JHKK01
                                           5    271408630    EDY03JHKK01
                                           6    271408630    EDY03JHKK01
                                           7    271408630    EDY03JHKK01
                                           8    271408630    EDY03JHKK01
                                           9    271408630    EDY03JHKK01
                                          10    271408630    EDY03JHKK01
                                          11    271408630    EDY03JHKK01
                                          12    271408630    EDY03JHKK01
                                          13    271408630    EDY03JHKK01
                                          14    271408630    EK359VRPM00
                                          15    271408630    EK359VRPM00
                                          16    271408630    EK359VRPM00
                                          17    271408630    EK359VRPM00
                                          18    271408630    EK359VRPM00
                                          19    271408630    EK359VRPM00
                                          20    271408630    EK359VRPM00
                                          21    271408630    EK359VRPM00
                                          22    271408630    EK359VRPM00
                                          23    271408630    EK359VRPM00
                                          24    271408630    EK359VRPM00
                                          25    271408630    EK359VRPM00
                                          26    271408630    EK359VRPM00
                                          27    271408630    EK359VRPM01
                                          28    271408630    EK359VRPM01
                                          29    271408630    EK359VRPM01
                                          30    271408630    EK359VRPM01
                                          31    271408630    EK359VRPM01
                                          32    271408630    EK359VRPM01
  </code></pre>
  
  <p>Trying it in base sas</p>