hii
am trying to learn sdtm programming by using the raw datasets. am trying to create a table for vital signs like this
am not able to create for vstestcd as they have shown can anyone please help me with this program
data temp;
set vs (keep= tempf tempu subjid VISITDT vstestcd vstest );
vstestcd="TEMP";
vstest="temperature"
run;
Please follow the guidance found under the post button when starting a question:
1) Post test data in the form of a datastep into a code window (its the {i} above post). We do not have access to your machine, nor are here to type data in from a screenshot.:
2) Post what the output from that test data should be.
3) Explain in detail what the problem is, you mention errors in the log, again, as we cannot see your computer you need to post the relevant log so that we can also see it.
Your code is syntactically correct as posted, however do note that every row of the data would be set to temperature.
i want the output in this format
but am not able to get the vstestcd its showing some error in this program
data temp;
set vs (keep= tempf tempu subjid VISITDT vstestcd vstest );
vstestcd="TEMP";
vstest="temperature"
run;
Please follow the guidance found under the post button when starting a question:
1) Post test data in the form of a datastep into a code window (its the {i} above post). We do not have access to your machine, nor are here to type data in from a screenshot.:
2) Post what the output from that test data should be.
3) Explain in detail what the problem is, you mention errors in the log, again, as we cannot see your computer you need to post the relevant log so that we can also see it.
Your code is syntactically correct as posted, however do note that every row of the data would be set to temperature.
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.