It is not a good idea to have the ">" character in a file name. However, if the name of the file is not important, you can do something like this:
Code:
awk '/^>SC_/{suffix=gensub(/.*_/,"","g");
print > "file_"suffix;
getline;
print > "file_"suffix}' file
The gensub statement strips out the longest string terminating with an underscore. The suffix will be the number, whatever be its length. Then simply use redirection to a file to print the required lines.