lesson 3.3.14 level 2

56 views
Skip to first unread message

Jignesh Patel

unread,
Oct 19, 2014, 7:42:29 AM10/19/14
to anova...@googlegroups.com
hi
i have quation about  practice  quation  i  submet the code .  but i got error   so any one help  out with this code  

data work.newpacks;
   input supplier_name $1-20 supplier_country $ 23-24 
         product_name $ 28-70;
    datalines;
Top sport            DK    Black/Black
TOP sport            Dk    X- large bottlegreen/black
Top sport            Dk    comanche  women's 6000 q backpack.bark
Miller Trading inc US    expedition camp duffle mediuum backpack 
Toto Outdoor gear    AU   Feelgood 55-57 liter black Women's backpack
Toto Outdoor gear    AU    Jaguar 50-57 liter Blue women's Backpack
Top sport            DK    Medium Black/Black backpack
Top sport            DK    Medium  gold black/gold backpack
Top sport            DK    Medium olive olive/Black backpack
Toto outdoor Gear    AU    Trekker 65 Royal Men's Backpack
Top sport            DK    victor grey/olive women's backpack
luna sastreria S.A   ES    Hammock Sport Bag 
Miller tradimg inc   US    Sioux Men's Backpack 26 litre.
;
run;


proc contents data=work.newpack;
run;

proc print data=work.newpack;
run;


but i got error   so any one help  out with this code  


NOTE: The SAS System stopped processing this step because of errors.
75
76 proc print data=work.newpack;
ERROR: File WORK.NEWPACK.DATA does not exist.
77 run;
NOTE: The SAS System stopped processing this step because of errors.
NOTE: PROCEDURE PRINT used (Total process time):
real time 0.04 seconds
cpu time 0.03 seconds
78
79
80
81 ;
82 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
Thank you ,
jignesh patel 

Message has been deleted

Nisarg

unread,
Oct 19, 2014, 9:42:40 PM10/19/14
to anova...@googlegroups.com
Hi jignesh,
First thing you have to write code again, in exactly with given /assigned spaces.
Please use the cases as shown in the example .as we have learnt intend the code .
It remove most of errors.


The main reason for the error is simple. Just check the SPELLINGS of each word.
Let me know If you can find the mistake!!!.

Regards
Nisarg

Jennifer SUN

unread,
Oct 20, 2014, 10:34:28 AM10/20/14
to anova...@googlegroups.com
Hahaha, it is like the game: spot the difference!

I found it!

Jennifer

hitul.p...@gmail.com

unread,
Nov 28, 2017, 4:32:27 PM11/28/17
to Anova Groups Forum
Hi Jignesh Patel,

ERROR: File WORK.NEWPACK.DATA does not exist. This error you are getting because you entered wrong spelling of data set newpack in proc content statement.

Thanks
Hitul Patel
Reply all
Reply to author
Forward
0 new messages