BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Rhino84
Fluorite | Level 6

I need to transpose the table in SAS. Please help

 

Actual table: This table has 3 million members and my transpose statement is not working. There is some insufficient memory issue that i face.

 

APP_NOTYPErate
1110.9
125
137
218
229
2323
3144
3223
3334
.. 
.. 
.. 
n154
n256
n355

 

after transpose: THe below table should be the final output.

 

APP_NOTYPE_1TYPE_2TYPE_3
110.957
28923
3442334
.   
n545655
1 ACCEPTED SOLUTION

Accepted Solutions
11 REPLIES 11
PaigeMiller
Diamond | Level 26

This table has 3 million members and my transpose statement is not working. There is some insufficient memory issue that i face.

 

For this situation, and in all future situations, saying something "is not working" and providing no additional information never gets us anywhere. In all situations, we need additional information: specifically, if there is an error in the log, we need to see the log. If there is no error in the log but the output is wrong, show us the code and the desired output (you have shown us the desired output but not the code).

--
Paige Miller
Rhino84
Fluorite | Level 6
I guess my code is wrong. Please help me do this
Reeza
Super User
Please show us the code and log and we'll be more than happy to assist.
Rhino84
Fluorite | Level 6
PROC TRANSPOSE DATA=less1
OUT=WORK.TRNSTransposed1;
BY APP_NO;
VAR TYPE RATE;

RUN; QUIT;
Reeza
Super User
LOG please.
Rhino84
Fluorite | Level 6
when i run this, i get this table"

APP_NO source col_1 col_2 col_3
1 TYPE 1 2 3
1 rate 10.9 5 7
2 TYPE 1 2 3
2 rate 8 23 44
AMSAS
SAS Super FREQ
  1. Supply the log
  2. Does it work for a smaller subset of the data, i.e. start with 10|50|100 rows to confirm your code is doing what you expect it to do

At the end of the day you might be running out of resources to process the table

Rhino84
Fluorite | Level 6
i am able to transpose now. with out error

APP_NO source col_1 col_2 col_3
1 TYPE 1 2 3
1 rate 10.9 5 7
2 TYPE 1 2 3
2 rate 8 23 44


i get this table and i need to eliminnate one duplicate row from this output
Reeza
Super User
Post the log please.
Reeza
Super User

Reeza_0-1638902946347.png

 

Rhino84
Fluorite | Level 6
Thank you so much REEZA !!

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 11 replies
  • 949 views
  • 0 likes
  • 4 in conversation