Can anyone help in creating a macro

Reply
New Contributor
Posts: 4

Can anyone help in creating a macro

I just want to create a macro for transposing dataset using arrays. Where my macro should automatically fetch how many array variables are needed.
Super User
Posts: 5,369

Re: Can anyone help in creating a macro

You are trying to reinvent the wheel.  Here's a reference:

 

http://support.sas.com/resources/papers/proceedings13/538-2013.pdf

 

 

New Contributor
Posts: 4

Re: Can anyone help in creating a macro

Thank you so much,it would help me in writing a code
Super User
Posts: 19,171

Re: Can anyone help in creating a macro

Here's the link to the latest:

http://www.sascommunity.org/wiki/A_Better_Way_to_Flip_(Transpose)_a_SAS_Dataset

 

Also, Proc Transpose is pretty good Smiley Happy

Ask a Question
Discussion stats
  • 3 replies
  • 178 views
  • 1 like
  • 3 in conversation