DATA Step, Macro, Functions and more

How to Create an empty DataSet

Accepted Solution Solved
Reply
New Contributor
Posts: 4
Accepted Solution

How to Create an empty DataSet

Good afternoon everyone,

I wanted to know how to create an EMPTY dataset giving name and format to the columns

MASSIMO

 


Accepted Solutions
Solution
a week ago
Super User
Posts: 9,574

Re: How to Create an empty DataSet

Just stop the data step before it writes the observation:

data want;
format date date9. value 10.;
stop;
run;
---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
How to convert datasets to data steps
How to post code

View solution in original post


All Replies
Solution
a week ago
Super User
Posts: 9,574

Re: How to Create an empty DataSet

Just stop the data step before it writes the observation:

data want;
format date date9. value 10.;
stop;
run;
---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
How to convert datasets to data steps
How to post code
Highlighted
New Contributor
Posts: 4

Re: How to Create an empty DataSet

Posted in reply to KurtBremser
Thank you very much!
☑ This topic is solved.

Need further help from the community? Please ask a new question.

Discussion stats
  • 2 replies
  • 75 views
  • 1 like
  • 2 in conversation