I have a SAS data step that uses a %do loop to build a set statement that combines multiple files. The files have names of the form datafile2020q1 or ...
I have a SAS data step that uses a %do loop to build a set statement that combines multiple files. The files have names of the form datafile2020q1 or ...
I have the following dataset from a crossover design study with participant_id, treatment_arm, and date_of_treatment as follows: pa ...
I have been tasked with taking the following data and creating two permanent data sets from it. One of these permanent data sets is supposed to contai ...
I'm trying to geocode entities (company) through the Brazilian zip code respectively, using a public API called BrasilAPI. This is a fictional sample ...
My data is currently structured in the following way (dummy data below), where the date is formated as such example: 3/7/20 (M/D/YY) but I need the da ...
I have a variable that is reported daily and cumulatively in which I want raw counts for. I found code for doing this here, however the data I have ar ...
I have two tables table_A and table_B. table_A Queue_nm Cust_nm ABCD VERI PQRS ...
I am basically trying to group by 2 variables and perform a proc sql mean, however my group by won't work for the following reason : here's an example ...
I obtain an error in SAS while creating a new field in a dataset recalling a numeric macro variable. Here there's an example. From the log it seems ...
I have the following problem. There are six months of transaction data per entity in a table like this: I'd like to count the number of transaction ...
I want to make permanent changes is the variable name Fclass and label Date as Departure date. i have used the modify statement along with rename but ...
Hello Stackoverflow community... hope you can help with this sas question. I need to create a filter for a table which gives back only those records ...
I am new to SAS programming and I trying to work on proc means statement. For controlling my decimal value in the output I have used maxdec option how ...
I have a proc sql code that needs to run twice each month- 1st and the 16th. There is a where clause in the proc sql. When the report runs on say Janu ...
I couldn't briefly explain the problem so I'll try to explain it this way. Let's say I have a table similar to the one below. How do I get the total ...
I would like to calculate the present value (PV) of future interest and amortization payments on loans (flat amortization and annuity) in a dataset. T ...
Suppose that I have the following list and I want to keep the elements of this list in my dataset2. The datastep does not work. How should I mod ...
let's assume the data should like: Words remove this word in first column Michigan address 21356 2 ...
I have a dataset like this for each ID; Months ID Number 2018-07-01 1 0 2 ...
I have the following macro which I will use inside a data step: I don't understand the results of the following data step: From what I understan ...