Hello friend,
I was trying to incorporate formats into the data and used the following code:
libname unos "E:\Data sets\UNOS data\SAS Dataset 202209\Thoracic";
data thoracic_data_1;
set unos.thoracic_data;
options fmtsearch=(unos.formats);
run;
formats.sas7bcat and thoracic_data.sas7bdat are in the above folder path.
But it didn't work. Can someone guide me please?
I appreciate your help!
Rube
What do you expect to happen?
The statement "options fmtsearch" extends the catalogs sas uses to find the formats you want applied, but does not assign a format to a variable.
What does the log sayß?
Please copy/paste the complete (all code and messages) of your DATA step into a window opened with this button:
Also, look at your source data. Run PROC CONTENTS on dataset unos.thoracic_data to see if any special formats coming from unos.formats.catalog are associated with any of the variables in the dataset.
Finally, run PROC CATALOG to see what's in the catalog.
SAS catalogs are version- and platform-specific, so your catalog might not work in your environment; and SAS file names must be all lowercase in the filesystem.
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.