Hi,
I found this code online and tried to replicate it but I keep getting an error. The code is used to create an header on each excel file. The error said the physical path does not exist but I am not sure of the path shown. Can someone direct me on how to make this works pls. Below is the code and the error log.
I think this line causes the problem
infile "%substr(&SYSPROCESSNAME,9)" truncover;
This resolves to
infile "/usr/local/biserver/Lev1/SASApp/erver" truncover;
which is a file that does not exist. You need to specify a file that does exist. (Also, it's not clear to me why you are doing a %substr on this file name).
The usual advice is first to get this to work without macro variables and without macro functions, by hardcoding a particular file name. Show us that code without macro variables and without macro functions, that works.
Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.
Register today!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.