Hi All,
I have a below requirement. Could anyone help me!!. Thanks.
data temp;
input name$ details $ dlm='|';
datalines;
name1|sex1;dob1
name2|sex2;dob2
name3|sex3;dob3
.
.
.
so,on
;
run;
Use DATALINES4 (aka CARDS4) statement instead. That requires a line with four semicolons to signal the end of the data.
data temp;
input name$ details $ dlm='|';
datalines4;
name1|sex1;dob1
name2|sex2;dob2
name3|sex3;dob3
.
.
.
so,on
;;;;
Use DATALINES4 (aka CARDS4) statement instead. That requires a line with four semicolons to signal the end of the data.
data temp;
input name$ details $ dlm='|';
datalines4;
name1|sex1;dob1
name2|sex2;dob2
name3|sex3;dob3
.
.
.
so,on
;;;;
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.