either of these will work with parsing. the second one you need to install jon's extension from the extension hub. i'd probably pivot the tables after using varstocases.
1.
dataset close all.
DATA LIST LIST
/ id (f3) variable (A35).
BEGIN DATA.
1, "122, 2, 3, 4"
2, "2, 34, 2, 4"
3, "5, 25, 1, 4"
4, "3, 2, 13, 2224"
5, "61, 254, 11, 9745"
END DATA.
string v1 to v4 (a5).
vector temp=v1 to v4.
loop i=1 to 4.
compute a=char.index(variable,', ').
compute temp(i)=char.substr(variable,1,a-1).
if a>0 variable=char.substr(variable,a+2,100).
if a=0 temp(i)=char.substr(variable,1,75).
end loop.
execute.
2.
dataset close all.
DATA LIST LIST
/ id (f3) variable (A35).
BEGIN DATA.
1, "122* 2, 3; 4"
2, "2, 34, 2, 4"
3, "5; 25, 1* 4"
4, "3* 2, 13; 2224"
5, "61, 254; 11, 9745"
END DATA.
spssinc trans result = v1 to v5 type=20
/formula "re.split(r'[;,*\s]\s*', variable)".