I'm reading members of zip files. One contains many files but dnum() returns zero. How can I get it to give the correct count? And loop through the members. filename ZIPFILE SASZIPAM "&in_dir.&fn"; filename comboxml "&in_dir.&fn2"; data contents(keep=memname) documents; fid=dopen("ZIPFILE"); file print; put "&fn"; put fid=; if fid=0 then stop; memcount=dnum(fid); put "memcount=" memcount; do i=1 to memcount; put i=; memname=dread(fid,i); output contents; if index(memname,'.xml') > index(memname,'/') then do; put "XML member"; end; put i= memname=; end; rc=dclose(fid); run;
... View more