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

When I was doing practice exam, I am confused about this question, please help me figure it out. Thanks so much!

Jianan_luna_0-1597277952861.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
SASKiwi
PROC Star

Look at the DO statement. The starting value for YEAR is 1990 and the ending value is 2004. Now look at the first of the listed answers. Can YEAR ever get to 2005?!

View solution in original post

3 REPLIES 3
ballardw
Super User

The picture has the text to small for me to read. So, please specify what you want to know.

 

I suggest with problems where you have a complete data step that you 1) type the code into your SAS session's editor and 2) run the code.

Then read the log and examine the data set. That will likely answer some question, or provide example why some answers are not correct.

SASKiwi
PROC Star

Look at the DO statement. The starting value for YEAR is 1990 and the ending value is 2004. Now look at the first of the listed answers. Can YEAR ever get to 2005?!

Kurt_Bremser
Super User

During execution of the data step, the iterator variable year will actually increment to 2005, but this value will never be output, because of the explicit OUTPUT in the loop.

Welcome to the Certification Community

 

This is a knowledge-sharing community for SAS Certified Professionals and anyone who wants to learn more about becoming SAS Certified. Ask questions and get answers fast. Share with others who are interested in certification and who are studying for certifications.To get the most from your community experience, use these getting-started resources:

Community Do's and Don'ts
How to add SAS syntax to your post
How to get fast, helpful answers

 

Why Get SAS Certified.jpg

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 3 replies
  • 621 views
  • 2 likes
  • 4 in conversation