SAS sample code programs:
Macro for sorting the variables:
How to convert character date values into numeric date values using DATASTEP/PROC SQL and ARRAYS:
How to detect missing values using Arrays:
First. & Last. Variables:
How to determine the last observation in the dataset:
How to determine whether a numeric or character value exists within a group of variables:
Lag Function: How to obtain information from the previous observation:
How to create a new dataset from multiple datasets based on the sorted order:
Dynamically generate SET statement to combine multiple datasets:
How to determine which dataset contributed an observation:
How to determine if a variable exists in a dataset or not:
How to Read Delimited Text Files into SAS:
How to keep only even number observations in the dataset:
How to verify the existence of an external file:
Accurately calculating age in one line code:
How to use INDEX/INDEXC functions:
Finding the number of observations in the dataset:
How to capitalize first letter of the every word:/ PROPCASE FUNCTION:
How to use the SCAN function:
Concatenation functions in SAS 9.0:
SOUNDEX Function:
IFC and IFN functions:new IF functions & IF-THEN-ELSE vs SELECT:
How to remove the duplicate observations from the dataset using PROC SQL, DATASTEP/PROC SQL/or PROC SORT approaches ?
How can I count number of observations per subject in a data set?
How to save the log file or what is PROC PRINTTO procedure
How to calculate number of years and number of days between 2 dates;
How to customize page numbers in RTF output
How to create a comma separated file (.csv) of a SAS dataset?
Change all missing values of all variables into zeros/putting zeros in place of missing values for variables
Welcome to StudySAS, your ultimate guide to clinical data management using SAS. We cover essential topics like SDTM, CDISC standards, and Define.XML, alongside advanced PROC SQL and SAS Macros techniques. Whether you're enhancing your programming efficiency or ensuring compliance with industry standards, StudySAS offers practical tips and insights to elevate your clinical research expertise. Join us and stay ahead in the evolving world of clinical data.
Discover More Tips and Techniques on This Blog
Subscribe to:
Post Comments (Atom)
Disclosure:
In the spirit of transparency and innovation, I want to share that some of the content on this blog is generated with the assistance of ChatGPT, an AI language model developed by OpenAI. While I use this tool to help brainstorm ideas and draft content, every post is carefully reviewed, edited, and personalized by me to ensure it aligns with my voice, values, and the needs of my readers.
My goal is to provide you with accurate, valuable, and engaging content, and I believe that using AI as a creative aid helps achieve that. If you have any questions or feedback about this approach, feel free to reach out. Your trust and satisfaction are my top priorities.
Thanks for this blog, real useful!
ReplyDeleteHi,
ReplyDeleteI need read data from multiple directories named in 7 consecutive dates for a week worth data. The names of the data sets/files in these directories are all the same. I intend to let sas create libraries with names the same as the directory names before my proc sql starts reading data. How could I do it?
Thanks
Don Yang