Hello!
I am a basic user of SAS and I have just worked out how to append two tables, however the data is too large to export.
I am now trying to remove and zero lines (positive and negative) using the query builder.
Can any one help??
Thanks
Linda
No problem 🙂 Everything has a start. Use the code below and insert the appropriate data set name and variable name
data want;
set Yourdatasethere;
where YourVariableHere ne 0;
run;
Hi and welcome to the SAS communities 🙂
Please define what you mean by 'zero lines'? Are these observations where some variables sum to zero or?
Hello,
So effectively I need one large pivot with out the below zero lines as I am hoping by removing them, it will bring back all of my data
I have attached something to help explan
Thanks
Linda
Ok. Just being curious.. Why do you want to do this in SAS? Should be fairly easy to add that filter in Excel?
Hello,
The data that I am trying to manipulate is too large for Excel. I don't have enough lines available 😞
Thanks
Linda
Ok. Have you read the data into SAS then?
I have yes. Apologies if this a stupid question, I am new to SAS and I didn't know if it was possible or not
Thanks
No problem 🙂 Everything has a start. Use the code below and insert the appropriate data set name and variable name
data want;
set Yourdatasethere;
where YourVariableHere ne 0;
run;
Thanks!
Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!
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.
Ready to level-up your skills? Choose your own adventure.