About Datasets procedure and Data step

Accepted Solution Solved
Reply
New Contributor ASJ
New Contributor
Posts: 3
Accepted Solution

About Datasets procedure and Data step

Which of the following statements is true about techniques that are used for modifying data and attributes?

  1. You can use PROC DATASETS to modify both data values and variable attributes.

  2. You can use PROC DATASETS to modify only data values.

  3. You can use the DATA step to modify both data values and variable attributes.

  4. You can use the DATA step to modify only variable attributes.

For above question as in, SAS Advanced programming ver. 3 book in Chapter 22

 

The answer should be 3 however this book says 1. Can you please let me know the correct answer.


Accepted Solutions
Solution
‎02-08-2017 02:07 AM
Trusted Advisor
Posts: 1,459

Re: About Datasets procedure and Data step

The right unswer is 3 - You can use the DATA step to modify both data values and variable attributes.

View solution in original post


All Replies
Solution
‎02-08-2017 02:07 AM
Trusted Advisor
Posts: 1,459

Re: About Datasets procedure and Data step

The right unswer is 3 - You can use the DATA step to modify both data values and variable attributes.
Super Contributor
Posts: 474

Re: About Datasets procedure and Data step

At most, 3 and maybe 4, as you can use data step to only modify attributes.

 

1 and 2 are false for sure... As far as I know it's not possible to change data values with proc datasets.

 

Daniel Santos @ www.cgd.pt

Super User
Posts: 18,997

Re: About Datasets procedure and Data step

@ASJ Check the errata for the book to see if there's mistakes. 

New Contributor ASJ
New Contributor
Posts: 3

Re: About Datasets procedure and Data step

Hi Reeza...there is nothing in updates for this.
☑ This topic is solved.

Need further help from the community? Please ask a new question.

Discussion stats
  • 4 replies
  • 133 views
  • 0 likes
  • 4 in conversation