proc forms
or[pre]data _null_ ;
file 'your output.file.txt' ;
set your_data;
put 'name :' +1 name / 'age :' +1 age / 'Coll :' +1 coll ;
run ;[/pre]It could be simpler if you accept '=' instead of ' : ' [pre]data _null_ ;
file 'your.equal.file.txt' ;
set your_data ;
put (name age coll) (/=) ; * <-- > / for newline =for "named output " ;
run ;[/pre]
peterC
Ready to join fellow brilliant minds for the SAS Hackathon?
Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.