Help using Base SAS procedures

printing a few observations using PROC PRINT.

Reply
N/A
Posts: 0

printing a few observations using PROC PRINT.

hi... I have not been using SAS for the past 3years. I'm going back to work with SAS so I'm very rusty with the syntax.

Can someone help me with this code? I'm trying to print 10 observations from a dataset using PROC PRINT. I vaguely remember the code being like this:

proc print data=sample (obs=10);
run;

I came up with an error so please help. thanks.
Super Contributor
Super Contributor
Posts: 3,174

Re: printing a few observations using PROC PRINT.

Posted in reply to deleted_user
The syntax is correct - what was the error you experienced? It would be best to share in your post reply the exact SAS error message and associated SAS code from the SAS log.

Scott Barry
SBBWorks, Inc.
N/A
Posts: 0

Re: printing a few observations using PROC PRINT.

Posted in reply to deleted_user

thanks Scott. For some reason the first few times I ran it, it doesn't like how I used it... but on my last try it works.... don't know what really happened.
Ask a Question
Discussion stats
  • 2 replies
  • 97 views
  • 0 likes
  • 2 in conversation