Hi, I'm using the following program to download xmls from a list of urls that I've stored in a dataset called test. 'file' is the destination (a folder name with unique file name), and 'url' is the address to xmls that I intend to download. filename code temp; data _null_; set test; file code; put ' filename out ' file :$quote. ';' / ' proc http method="get"' / ' url=' url :$quote. / ' out=out' / '; run;' ; run; %include code / source2; The code works great. However, I download all xmls, if valid or not. As an example, url A below is a valid xml, whereas url B is an invalid xml. I'm wondering if I can condition to download only the valid ones, and not download the invalid ones (like url B). I'm just concerned as I might need to download about a million files, and unnecessary/invalid ones make further data process cumbersome. A: https://s3.amazonaws.com/irs-form-990/201313169349300441_public.xml B: https://s3.amazonaws.com/irs-form-990/201103159349302715_public.xml Thank you.
... View more