Need help with arrays and do loops with character and numeric variables

Reply
New Contributor
Posts: 3

Need help with arrays and do loops with character and numeric variables

Need help with arrays and do loops with character and numeric variables

please provide guidance using sas 9.3

PROC Star
Posts: 7,480

Re: Need help with arrays and do loops with character and numeric variables

What does your data look like?  What are you trying to do?  What have you tried thus far?

New Contributor
Posts: 3

Re: Need help with arrays and do loops with character and numeric variables

It is a combination of character variable with numbers (if it is between 370000 and 390000 then it is X

If it is between 200000 - 30000 then it is Y.

I have tried ARRAY and the DO loop =

i have read through the documentation you all post here and on the sas site and cannot figure out what i am doing wrong;

PROC Star
Posts: 7,480

Re: Need help with arrays and do loops with character and numeric variables

We (everyone on the forum) will need a sample dataset, in the form of a datastep, including the variable you are trying to create.

New Contributor
Posts: 3

Re: Need help with arrays and do loops with character and numeric variables

unfortunately i cannot provide that = but could you point me in the direction of the correct sas documentation so i can look there for helpful hints? thanks -

Ask a Question
Discussion stats
  • 4 replies
  • 213 views
  • 0 likes
  • 2 in conversation