If not yet solved, I would sugest to create a continuos variable from 1 to n, then create a ten percentile variable based on the first variable using visual categorization function, then split your file.
And if you want to make diferent files, I suggest using this syntax: