BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
BingL
Obsidian | Level 7

Hello to whomever can help 

 

please review the following program

proc format lib=SASUSER; 
   value safdesc 0='Average or Above'
                 1='Below Average';
   value sizename 1='Small'
                  2='Medium'
                  3='Large';
   value vstfmt 0='staff only'
                1='physician';
   value spcfmt 1='oncologist'
                2='internal med'
                3='family prac'
                4='pulmonolgist'
                5='other special';
run;

data hosp;
  set sasuser.b_hosp;
  format date mmddyy8.;
  format visit vstfmt.;
  format code specfmt.;
  where code < 4;
run;

it gave me the folloiwng error message.

 

507  data hosp;
508    set sasuser.b_hosp;
509    format date mmddyy8.;
510    format visit vstfmt.;
                    -------
                    48
ERROR 48-59: The format VSTFMT was not found or could not be loaded.

511    format code specfmt.;
                   --------
                   48
ERROR 48-59: The format SPECFMT was not found or could not be loaded.

what am i missing here. Thank you!

1 ACCEPTED SOLUTION

Accepted Solutions
mohamed_zaki
Barite | Level 11

The SASUSER library is read only in SAS University Edition, and you cannot save content to this library.

Delete the statment "lib=SASUSER;" or change it to another writable library.

 

View solution in original post

1 REPLY 1
mohamed_zaki
Barite | Level 11

The SASUSER library is read only in SAS University Edition, and you cannot save content to this library.

Delete the statment "lib=SASUSER;" or change it to another writable library.

 

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

How to Concatenate Values

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 1065 views
  • 2 likes
  • 2 in conversation