Hello,
Build upon this :
data _NULL_;
remarks = '//name://davids://amount://100000://adminfee://500//date://20220131//city://jakarta//';
pos=index(remarks,'adminfee'); put pos=;
adminfee=substr(remarks,pos,20); put adminfee=;
adminfee_amount = input(compress(adminfee,'abcdefghijklmnopqrstuvwxyz:/'),best12.); put adminfee_amount=;
run;
Koen
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.