BookmarkSubscribeRSS Feed
rajendramehta03
Calcite | Level 5

I have used below mention code where am trying to creat sas database for the file having numeric value at below mention folder an dappend them.Please guide me.:

  %LET Path1 = C:\Users\MehtRa06\Desktop\My SAS Training\UU\Input_Files\FCTBRD Files; *Path
of File;

  %LET Start=308;

  %Let End=311;                   /*Put Start and End File name*/

Optionsmprint mlogic;

  %MACRO
IMPORT_DBF (X);

  PROC IMPORT OUT=WORK.ABC&X

  DATAFILE= "&Path1.\&X..csv"

DBMS=DBFREPLACE;

  GETNAMES=YES;

  DATAROW=2;

  GUESSINGROWS=150000;

  RUN;

  %MEND;

  %macro
Import_Fctbrd;

  %Do
i=&start
%to &End;

  %IMPORT_DBF(&i);

  %end;

  %mend;

  %Import_Fctbrd;

Community_Help
SAS Employee

Hi there - looks like you posted your question in the "About Communities" section of the site.

Just so that others who are interested in your subject can have more visibility to your message, I am moving this message into the Macro community. The URL of the message will stay the same.  Thanks for posting a question to Communities on SAS and Welcome ! Smiley Happy

jakarman
Barite | Level 11

use proc dbf     it is named as proc dbf because the designed for dbf

---->-- ja karman --<-----

sas-innovate-2024.png

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.

 

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
  • 21 replies
  • 1655 views
  • 2 likes
  • 7 in conversation