BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
JBerry
Quartz | Level 8

I've read the papers but have been a little stuck on some minor syntax issues. I'm trying to figure out how to take an existing data step and thread it using DS2:

 

First, some fake data:

 

data have;
input IdNumber Name $ 6-20 Team $ 22-27 StartWeight EndWeight;
datalines;
1023 David Shaw red 189 165
1049 Amelia Serrano yellow 145 124
1219 Alan Nance red 210 192
1246 Ravi Sinha yellow 194 177
1078 Ashley McKnight red 127 118
1221 Jim Brown yellow 220 .
;
run;
 

Here is the data step code I'm trying to migrate into a threaded process using DS2:

 

data want; set have;
if Name = 'David' then David_Flag=1; else David_Flag=0;
WeightDiff=EndWeight-StartWeight;
run;
1 ACCEPTED SOLUTION

Accepted Solutions
JBerry
Quartz | Level 8
Adding comment to close thread

View solution in original post

2 REPLIES 2
BrunoMueller
SAS Super FREQ

hi

 

Show your DS2 code and the corresponding log, this will help to find out what is wrong with the code.

 

Bruno

JBerry
Quartz | Level 8
Adding comment to close thread

SAS INNOVATE 2024

Innovate_SAS_Blue.png

Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

Register now!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

Get the $99 certification deal.jpg

 

 

Back in the Classroom!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 729 views
  • 0 likes
  • 2 in conversation