05-02-2012 06:41 PM
So I have the following data set that I need to create a format from which is called orion.continent:
Obs ID Continent_Name
1 91 North America
2 93 Europe
3 94 Africa
4 95 Asia
5 96 Australia/Pacific
I used the following code in order to create the continent format:
keep Start Label FmtName;
retain FmtName 'Continent' ;
set orion.continent (rename=(Continent_ID=Start Continent_Name=Label));
proc format library=orion.myfmts cntlin=continent;
proc format library=orion.myfmts fmtlib;
Then my assignment calls for me to run this code and it should run without errors:
proc print data=Countries(obs=10);
title 'Continent Names';
This is the error that I am continuously getting:
307 data countries;
308 set orion.country;
ERROR 48-59: The format CONTINENT was not found or could not be loaded.
So I am not sure if I am coding this incorrectly or if the code that my assignment has put is incorrect.
Could someone please let me know where this is going wrong?
Need further help from the community? Please ask a new question.