Thank you for you replies,really helpful. In the UNIX Script. create a loop to test the sas program is fail or success. If Fail sleep for a minute to check error. Script will rerun until success then go to next sas progran. f=sasprogram
for f in saslist
do
sas sasdirectory/$f -log /sas_log/$f.$date.log
until [ $? -eq 0 ];
do
echo "Processing $f: job fail...\n"
echo "Please see error details" /sas_log/$f.$date.log
sleep 60 *1 minute
sas $sas_dir/$f -log $sas_log/$f.$dateparm.log
done
"Processing $f: job success...\n"
done
exit 0
... View more
Hi, please help me create a UNIX module to run and rerun sas programs dependently. If sample1.sas fails will rerun and not continue will sample2.sas and sample3.sas
... View more
Same concept I just did do while. data output;
set filename;
oldcol3=col3;
do while(scan(oldcol3,i,"|") ne "");
col3=scan(oldcol3,i,'|');
i+1;
output;
end;
drop oldcol3 i;
run;
... View more
Hello, I would like to seek for your help, I need to separate the column data into multiple Rows. Sample Data: Column 1 Column 2 Column 3 Apple Water Lunch | Dinner Result Data: Column 1 Column 2 Column 3 Apple Water Lunch Apple Water Dinner
... View more