Hello all,
i'm trying to figure out if it's possible to convert a dataset file, for example, like this:
Example.sas7bdat
col1 | col 2
a | b
a1 | b1
into a description file, like you do with oracle, that would look like a datastep proces;
data example;
attrib col1 format=$4.;
attrib col2 format $4.;
col1=a;
col2=b;
output;
col1=a1;
col2=b1;
output;
run;
is it possible to create this kind of description file form a dataset with a procedure?
thanks!
Hi,
There is a blog post on this topic which might help:
Thanks & kind regards,
Amir.
Hi,
There is a blog post on this topic which might help:
Thanks & kind regards,
Amir.
Closer to your Oracle anology, there is PROC SQL DESCRIBE TABLE statment, which will give you CREATE TABLE/INDEX in the SAS log.
SAS Help Center: Syntax: PROC SQL DESCRIBE Statement
Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.
If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website.
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.