Write a macro to import different type of files. Let’s say we have files that are tab delimited text files as well as csv files. (“Sample.csv” and “Scores.txt”)
Homework?
Have a look a proc import - not may preferred way to read text files - write one for each file type, compare the differences, create a macro with parameters.
Homework?
Have a look a proc import - not may preferred way to read text files - write one for each file type, compare the differences, create a macro with parameters.
Required help to convert the below SAS codes into macros.
a) proc gchart data=HTWT; vbar gender/sumvar=weight; Title "Average weight by Gender";
run;
b) proc plot data=HTWT; Title "Scatter plot"; plot &height*&weight;
run;
(Hint: Define two different macros.)
@pallab You should use PROC SGPLOT not GCHART or PLOT these days. The graphics quality is much better.
did u get answer.. reply me fast
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
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.