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.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
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.