delete or hide variables row

Reply
Regular Contributor
Posts: 158

delete or hide variables row

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 

 

ObsVnameVvalue
1case_assigned5
2Time_points_read53
3Time_points_complete1360
4Readable_Time_Points15
5Time_Points_Pending15
6off_study0
7off_study_Total0

 

my desire data set 

 

1case_assigned5
2Time_points_read53
3Time_points_complete1360
4Readable_Time_Points15
5Time_Points_Pending15
6off_study0
7off_study_Total0
Super User
Super User
Posts: 9,599

Re: delete or hide variables row

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.

Regular Contributor
Posts: 158

Re: delete or hide variables row

my destination will be in sas program . 

Super User
Super User
Posts: 9,599

Re: delete or hide variables row

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.

Regular Contributor
Posts: 158

Re: delete or hide variables row

I just want to create a data set I don't need to output it any where

PROC Star
Posts: 2,321

Re: delete or hide variables row

You can't have a data set without column names.

Ask a Question
Discussion stats
  • 5 replies
  • 105 views
  • 3 likes
  • 3 in conversation