Answered step by step
Verified Expert Solution
Question
1 Approved Answer
1. Debugging the PDV Modify the code below to do the following: Ensure that the values of Size won't get truncated. Add PUTLOG statements to
1. Debugging the PDV Modify the code below to do the following: Ensure that the values of Size won't get truncated. Add PUTLOG statements to provide the following information in the log: o Immediately after the SET statement, write "START DATA STEP ITERATION" to the log as a color- coded note. o Before the Type= assignment statement, write the value of Type to the log. o After the Type= assignment statement, write the value of Type to the log. At the end of the DATA step, write the contents of the entire PDV to the log. data np_parks; set pg2.np_final; keep Region ParkName AvgMonthly Visitors Acres Size; where Type= "PARK" ; format AvgMonthly Visitors Acres comma10. ; Type=propcase(Type); AvgMonthly Visitors=sum(Day Visits, Campers, OtherLodging) 12 ; if Acres<: then size="Small" else if acres run show a screenshot of the log showing last three iterations data step. directing output to multiple tables based on in pg2.np_yearlytraffic create new named monument park and other. . use select when statements https: or elsewhere direct output: parktype is row should be table o anything other only read columns parkname location into pdv drop from your code corresponding notes>
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started