First of all, your code yields a single error message:
ERROR 68-185: The function A is unknown, or cannot be accessed.
telling us that A() needs to be defined. Should it be an array, or is it a function defined elsewhere?
If it is a SAS array, it needs to be defined; it is also better to enclose the subscript in {}, making this more readable and clearer.
Once this is resolved, you will get a NOTE: about x being unitialized, which will cause the condition 1 < x < 6 to always be false, so your data step won't do anything at all (besides counting y to 300). B and i will stay missing in the dataset A.
So, where does x come from?
And what is the purpose of all this?
... View more