Help using Base SAS procedures

using id statement in proc traspose

Reply
Contributor
Posts: 27

using id statement in proc traspose

This was a question in a certification guide.Could  someone explain this y id statement is declared 3 times ?


This question will ask you to provide a line of missing code. Given the following data set LABS(only first 10 lines shown):

What statement that completes the program to produce the desired output

Response:

IDLABTEST;,IDLABTEST;,

IDLABTEST;

IDLABTEST;,IDLABTEST;,IDLABTEST

Super User
Posts: 17,888

Re: using id statement in proc traspose

Can you point a reference to the certification guide?

All of those look incorrect to me since they don't have a space after the word ID.

Contributor
Posts: 27

Re: using id statement in proc traspose

Unfortunately i dont have the link since i copied and closed.But is it possible to have 3 id statements in proc transpose

PROC Star
Posts: 7,363

Re: using id statement in proc traspose

: Out of curiosity I did a google search for "idlabtest sas" and came across the following: http://wenku.baidu.com/view/b58a1605a8114431b90dd8a3.html

The problem wasn't multiple choice but, rather, fill in the blank.

However, what the site showed as the answer was obviously incorrect:

Answer: IDLABTEST;,IDLABTEST;,IDLABTEST

How they came up with that is a really good question!

Super User
Posts: 17,888

Re: using id statement in proc traspose

Problem with automating extractions.

I was initially going to say contact tech support, but then realized that the question/answer wasn't in a standard SAS format and figured it came from a site like this. 

At any rate, the answer above is wrong. You get what you pay for in these cases :smileymischief:

Ask a Question
Discussion stats
  • 4 replies
  • 217 views
  • 0 likes
  • 3 in conversation