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.

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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
  • 723 views
  • 0 likes
  • 2 in conversation