Splitting documents in documentlist

hi,
i need to split a document list into two halves and copy it to another document list . can you plz help.

  1. Initialise 2 doc lists, say OutA and OutB.
  2. Define the boundary where you need to cut your list.
  3. Loop over it.
  4. AppendToDocList until it reaches the boundary. Map it to OutA.
  5. keep appendingToDocList till the end. Map it to OutB.

Now you have 3 lists. Keep which ever you need and delete the rest.

This is one of the ways to do it.