In SAS, how do I extract the city, state, and zipcode into separate columns from a...

60.1K

Verified Solution

Question

Statistics

In SAS, how do I extract the city, state, and zipcode intoseparate columns from a single variable with all three?

Example-

Bremen, KS, 66412

Little River, KS, 67457

Bird City, KS, 67731

The above is stored in one variable each. But I want to makethree separate variables with it. Some cities also have two wordsin it.

Answer & Explanation Solved by verified expert
4.0 Ratings (856 Votes)
SolutionProgramm In SASRead the data and store in one datasetsdata testinfile cards dlminput    See Answer
Get Answers to Unlimited Questions

Join us to gain access to millions of questions and expert answers. Enjoy exclusive benefits tailored just for you!

Membership Benefits:
  • Unlimited Question Access with detailed Answers
  • Zin AI - 3 Million Words
  • 10 Dall-E 3 Images
  • 20 Plot Generations
  • Conversation with Dialogue Memory
  • No Ads, Ever!
  • Access to Our Best AI Platform: Flex AI - Your personal assistant for all your inquiries!
Become a Member

Other questions asked by students