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.

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

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.

SAS Training: Just a Click Away

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

Browse our catalog!

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