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.
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
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.