Next is a tested code:
%let str = {'Orva Stores': [36.99, 0.0, 'A2NEM58BFPMEIL', 1], 'J.WALKER LLC': [36.99, 0.0, 'A1B3KT3F9BMSN1', 1], 'Justin Smiles': [36.99, 0.0, 'A3SP9XX1M7ZN73', 1], 'Closeout Pro': [36.99, 0.0, 'A3IRLODW57QOBV', 1], 'Flow Dealz': [44.95, 0.0, 'A2GP4414DQTJ29', 1]};
data a;
str = "&str";
str1 = compress(str,"'{[}");
str1 = translate(str1,',',':');
length strx $60 name $15 ;
do i=1 to 10;
strx = scan(str1,i,']');
if strx ne ' ' then do;
name = scan(strx,1,',');
price = scan(strx,2,',');
ship = scan(strx,3,',');
sellerid = scan(strx,4,',');
prime = scan(strx,5,',');
output;
end; end;
keep name price ship sellerid prime strx;
run;
... View more