I have this data set and I need to hide or delete the variables row in data step or proc report
my current data set
Obs | Vname | Vvalue |
1 | case_assigned | 5 |
2 | Time_points_read | 53 |
3 | Time_points_complete | 1360 |
4 | Readable_Time_Points | 15 |
5 | Time_Points_Pending | 15 |
6 | off_study | 0 |
7 | off_study_Total | 0 |
my desire data set
1 | case_assigned | 5 |
2 | Time_points_read | 53 |
3 | Time_points_complete | 1360 |
4 | Readable_Time_Points | 15 |
5 | Time_Points_Pending | 15 |
6 | off_study | 0 |
7 | off_study_Total | 0 |
You can only hide column names or labels in output files. Datasets when viewed in SAS always have names, and also possibly labels. Hiding names/labels isn't straight forward in output either. What is your output destination? The simplest method I can think of is that you dump the data out as plain text:
data _null_; set have; file "want.txt"; put obs vname vvalue; run;
Without specifying what you want further (i.e. be specific, e.g. my rtf file should show this data formatted without variable names/labels) its quite hard to say.
my destination will be in sas program .
A SAS program is not a destination. Saved files such as text files, CSV, Excel, RTF etc. are destinations. Datasets are datasets. SAS programs are text files which get compiled into computer runnable code. Post examples of what you mean, test data etc. so we can see.
I just want to create a data set I don't need to output it any where
You can't have a data set without column names.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
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.