I have a problem with a sample program as below:
title "Stock Inventory by Type";
data WORK.IMPORT1;
proc freq data=WORK.IMPORT1;
tables Sector / nocum;
run;
title;
IMPORT1 is a table imported with the "import" function, but when I lunch the program the system output:
"Impossible open the table "WORK.IMPORT1" because it doesn't contain columns.
If I go to the table I can see the data (6000 rows) but if I go to the "properties" - columns there are not columns displayed. Where is the problem (I'm novice with SAS, I'm using University Edition on Amazon AWS)? I understand is a problem in the importing procedure...
Thanks!
Any data step ends either by RUN; or by a new data step or by PROC...;
your code:
title "Stock Inventory by Type";
data WORK.IMPORT1; /* <<<< this line destroys your import and creates a table with no columns ! */
proc freq data=WORK.IMPORT1;
tables Sector / nocum;
run;
title;
What do you mean by "go to the table"?
Run a
proc contents data=work.import1;
run;
and look at the output.
And run the import again and post the log (use the {i} icon to preserve formatting).
When you ran your import what was in the log
Any data step ends either by RUN; or by a new data step or by PROC...;
your code:
title "Stock Inventory by Type";
data WORK.IMPORT1; /* <<<< this line destroys your import and creates a table with no columns ! */
proc freq data=WORK.IMPORT1;
tables Sector / nocum;
run;
title;
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
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.
Ready to level-up your skills? Choose your own adventure.