In reply to Pallab.

Hi Pallab,
The blog post shows only how to split a file or a data set. If you need to programmatically determine your file size, you can do it; just look up the following Usage Note 38267: Retrieving the file ID and other file information using the FINFO function in SAS® 9.2. This technique should work for SAS version 9.2 and higher. Then, based on the file size, you can determine in how many portions to split your file.