BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
pallab
Calcite | Level 5

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”)

 

1 ACCEPTED SOLUTION

Accepted Solutions
andreas_lds
Jade | Level 19

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.

View solution in original post

4 REPLIES 4
andreas_lds
Jade | Level 19

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.

pallab
Calcite | Level 5

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.) 

Reeza
Super User

@pallab You should use PROC SGPLOT not GCHART or PLOT these days. The graphics quality is much better.

lrn1
Calcite | Level 5

did u get answer.. reply me fast

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

How to Concatenate Values

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 4 replies
  • 775 views
  • 1 like
  • 4 in conversation