@AmitParmar wrote:
how to create Create observations depending on the length of the Name.
I think you are missing a few details here. Like exactly how the length of name is to be used, what is supposed to be created and where any values might come from.
Example of starting data, rules and an example of the data with the rules applied are a good idea.
In a SAS data step you can test the length of a value, the number or characters using the LENGTH function. such as
if length(name) = 20 then do;
<stuff depending on that length goes here>
end;
... View more