BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Reeza
Super User

You keep changing topics. This is not the code to create a data step version. This is a different question entirely. Please separate them so its more clear what you're trying to do. This will be my last response to this thread, please post a new question if you have details. 

 

In your post below you've started your code with 

 

DATA= -> there is no equal sign after data in a data step. 

 

Also, you're continuing to use that logic of using a lower value with the new data sets. This would erase your previous data set by the way, which I somehow doubt you actually want to do.

 

 

72 data=practice.CompuStat_Execucomp2; <- usually you increment the new data set to be higher than the old data set. THis is the name of the output data set; 

____ 180 ERROR 180-322: Statement is not valid or it is used out of proper order.

73 set practice.CompuStat_Execucomp3; <- input data set;

 

Catch up on SAS Innovate 2026

Nearly 200 sessions are now available on demand in the Innovate Hub.

Watch Now →
Develop Code with SAS Studio

Get started using SAS Studio to write, run and debug your SAS programs.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 30 replies
  • 6998 views
  • 12 likes
  • 4 in conversation