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.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
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.
Ready to level-up your skills? Choose your own adventure.