Goal: Generate DCL procedure to add users to the system using information provided in a list.
The SAS System 13:18 Monday, March 17, 1997 3
OBS NAME VORNAME ABT GEB
1 Zinser Martin CS 06/03/66
2 Pyne Alan Mar 17/03/68
BEGIN { group=100;
uid=7;
while ($1!~/OBS/){getline};
getline;
print "$mcr authorize";
}
{gsub(/\//,"_",$5);
print "copy default", $2, "/owner=\"" $2 ",", $3 "\"-";
print " /device=" $4 "$root: -";
printf " /directory=[%s]/uic=[%o,%o]-", $2, group, uid;
print " /password=x" $5 "x";
uid++;}
END {print "exit";}
$mcr authorize copy default Zinser /owner="Zinser, Martin"- /device=CS$root: - /directory=[Zinser]/uic=[144,7]- /password=x06_03_66x copy default Pyne /owner="Pyne, Alan"- /device=Mar$root: - /directory=[Pyne]/uic=[144,10]- /password=x17_03_68x exit
Martin P.J. Zinser