DATA Step, Macro, Functions and more

How to Create an empty DataSet

Accepted Solution Solved
Reply
Occasional Contributor
Posts: 8
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
‎05-16-2018 09:56 AM
Super User
Posts: 10,570

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
‎05-16-2018 09:56 AM
Super User
Posts: 10,570

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
Occasional Contributor
Posts: 8

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
  • 200 views
  • 1 like
  • 2 in conversation