Hello Community, Environment: Enterprise Guide on UNIX via CITRIX over a Windows XP PC. Situation: I have serveral .CSV files located in /aaa/bbb/ccc/ddd Now i would like to read all CSV files from this folder into a SAS table. I only want to read the FILENAMES not the content. I cant use "call system" or "filename x pile ..:" Statements. (Permissions) I found another option by using the dopen() function. When i try to open my file the dopenfunction returns a zero (file not found) In the LOG all files are accessed (see LOG) Question: I dont know what am I doing wrong? (im not having so much experience) but why cant dopen open the directory and output my files. Sourcecode %let path = /aaa/bbb/ccc/ddd; filename dir "&path/*"; data content; did=dopen("dir"); if did eq 0 then do; infile dir length=linelen; input dir $Varying200. linelen; end; else do; msg=sysmsg(); put msg; end; run; filename dir clear; LOG: NOTE: The infile DIR is: Filename=/aaa/bbb/ccc/ddd/2013-12-06-A.CSV, File List=/aaa/bbb/ccc/ddd/*, NOTE: The infile DIR is: Filename=/aaa/bbb/ccc/ddd/2013-12-06-B.CSV, File List=/aaa/bbb/ccc/ddd/*, NOTE: The infile DIR is: Filename=/aaa/bbb/ccc/ddd/2014-03-18-B.CSV, File List=/aaa/bbb/ccc/ddd/*, NOTE: The infile DIR is: Filename=/aaa/bbb/ccc/ddd/2014-03-19-A.CSV, File List=/aaa/bbb/ccc/ddd/*, WANT: I want exactly this: 2013-12-06-A.CSV or the whole path /aaa/bbb/ccc/ddd/2014-03-19-A.CSV in my table can someone help me? I'm desperate... Thanks
... View more