tag:blogger.com,1999:blog-2315822260943695633.post2468493291947280149..comments2024-03-29T00:59:55.624-04:00Comments on StudySAS Blog: How to check if the File is exist or not in SASUnknownnoreply@blogger.comBlogger2125tag:blogger.com,1999:blog-2315822260943695633.post-29214105014889355272012-05-21T11:39:36.366-04:002012-05-21T11:39:36.366-04:00DOPEN funstion will let you count number of files ...DOPEN funstion will let you count number of files present in the given directory (Folder).... <br /><br />Here is how .... <br /><br />filename dir 'D:\Documents and Settings\annapareddys\Desktop\STUDY\FOLDER';<br />%let dirid = %sysfunc(DOPEN(dir));<br />%let dircnt = %sysfunc(DNUM(&dirid));<br />%put &dircnt;<br /><br />Sarathsarathhttps://www.blogger.com/profile/00356864575673246046noreply@blogger.comtag:blogger.com,1999:blog-2315822260943695633.post-44417896844140916482012-05-21T11:07:01.180-04:002012-05-21T11:07:01.180-04:00I have known the path of a folder but i don't ...I have known the path of a folder but i don't know how many files are there in that folder and even don't know what kind of files they are (i mean .xls, .csv, .txt etc). can anybody tell me how to find out the all files in a folder?Sambahttps://www.blogger.com/profile/10078100821257922938noreply@blogger.com