i am struggling to shift zip month and amount please help
Please update your post as answered in that case.
And this is likely the best way to operationalize something like this...so is this homework or a real problem?
https://support.sas.com/resources/papers/proceedings16/2240-2016.pdf
And this is the way you would most likely do it for a basic homework assignment. FYI - change the path (home/fkhurshed/Demo1) to one that works for you to run it all and see the files and output.
data report;
set sashelp.class;
newfile = catt("/home/fkhurshed/Demo1/", name, ".txt");
file temp filevar=newfile;
put "This is a report for " Name;
put Name "is " age " and weighs: " Weight;
*double space;
put;
put;
put "End of Report for:" Name "," sex;
run;
Are you having trouble reading in the .DAT file?
The code in your photograph does not look correct. Do you really have a numeric variables named FIRST and LAST? Also is NAME supposed by numeric the way it is first used in the INPUT statement? Or is NAME character like it is used in the second place it is used n your INPUT statement?
Please update your post as answered in that case.
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.
SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.
Find more tutorials on the SAS Users YouTube channel.