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

Using SAS Studio OnDemand for Academics, the following code generates a file (STATIONDATAEXISTING) under two LIBRARIES:  SOCAL and FORMATS .  Why would it create one in the FORMATS library?  When I delete it from the FORMATS library the entry under the SOCAL library disappears too.  Seems weird.

 

Thanks in advance for any guidance,

 

Gene

data socal.stationdataexisting;
input station $ lat long alt az elev;
datalines;
US000S 34.290983 -116.383718 .898 198.31 54.33
US000V 33.960142 -117.259044 .533 47.06 67.3
US001Q 33.960142 -117.259044 .533 129.44 68.32
US001R 34.290983 -116.383718 .898 90 45
US001E 33.640000 -117.60 .500 . .
;
run;
data socal.stationdataexisting;
set socal.stationdataexisting;
/*Define Center of Grid as location of US000S*/
xpos=(long-(-116.383718))*91.09;
ypos=(lat-(34.29083))*111.19;
zpos= alt;
run;
1 ACCEPTED SOLUTION

Accepted Solutions
PaigeMiller
Diamond | Level 26

the first thing that comes to mind is that you have assigned library SOCAL and library FORMATS to the same folder.

--
Paige Miller

View solution in original post

2 REPLIES 2
PaigeMiller
Diamond | Level 26

the first thing that comes to mind is that you have assigned library SOCAL and library FORMATS to the same folder.

--
Paige Miller
genemroz
Pyrite | Level 9
Indeed, so it was. Thanks for the response.

Gene

Catch up on SAS Innovate 2026

Dive into keynotes, announcements and breakthroughs on demand.

Explore Now →
Develop Code with SAS Studio

Get started using SAS Studio to write, run and debug your SAS programs.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 1506 views
  • 2 likes
  • 2 in conversation