BookmarkSubscribeRSS Feed
ggilna
Calcite | Level 5

Hey I am having issues with a program written to group diagnosis codes on a dataset I have. 

 

This is how the program is written without my input 

 

FILENAME INRAW1 'Location of CSV file, DXCCSR_v2021-1.CSV'  lRECL=3000; 
LIBNAME IN1 'Location of input discharge data'; 
LIBNAME OUT1 'Directory to store output file';

 

Then this is how I input it. band.csv is the dataset I want to convert using the program.

 

FILENAME INRAW1 '/folders/myfolders/DXCCSR_v2021-1.SAS'    lRECL=3000;
LIBNAME IN1 '/folders/myfolders/band.csv';
LIBNAME OUT1 '/folders/myfolders/ICDtest.csv';

 

but it is saying IN1 and OUT1 do not exist. Thanks for you helo

1 REPLY 1
Tom
Super User Tom
Super User

LIBNAME statement is used to point to a directory where you have or want to create SAS datasets.

Your program is pointing them an CSV filenames.

CFC_SAS_Communities_400x225.jpg

Call for content now open!

It's your turn to help shape SAS Innovate 2027. Share your expertise and inspire the SAS community.

Submit your proposal →

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 1443 views
  • 0 likes
  • 2 in conversation