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

Hi Xia,

This is the right code :-D. Thanks for your help anyways.

WORK.TRIAL ;


'/sasdata/target_data/cont_improvement/datamart/Inc/1_200.txt' truncover;


a $80.;


'/sasdata/target_data/cont_improvement/datamart/Inc/1_200_.txt';


a ^= ' ' then put a;


;



one(keep=a b c d e)


keep=a b f g h)


keep=a b i j k);


'/sasdata/target_data/cont_improvement/datamart/Inc/1_200_.txt' truncover;


l = 1 to 200;


input a / b $20. / c $10. / d $10. / e $30. ;


output one;


;


l = 1 to 200;


input a / b $20. / f $10. / g $10. / h $30. ;


output two;


;


l = 1 to 200;


input a / b $20. / i $10. / j $10. / k $30. ;


output thr;


;


l ;


;



fou;


one two thr;


;

ballardw
Super User

Can't be the "right code". The Data statement at the first is incomplete due to paste issues with the forum editor as well as what I have to assume are do /end code bits.

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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.

SAS Training: Just a Click Away

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

Browse our catalog!

Discussion stats
  • 16 replies
  • 3409 views
  • 2 likes
  • 4 in conversation