This code used to work and no longer does. I'm not familiar with parsing/accessing url results so cannot even figure out how to debug. Can anyone offer any insights to see what is being returned, to debug, to fix?! Thank you. filename y url "https://eutils.ncbi.nlm.nih.gov/entrez/eutils/esearch.fcgi?db=pubmed&term=PNAS[ta]+AND+97[vi]&retstart=6&retmax=6&tool=biomed3"; data pubmedinfo; length countfound count loc locend 8. countchar $30.; retain count countfound 0 countchar "TTTT"; infile y lrecl=32000 pad; input; if countfound = 0 then do; loc = find(_infile_,'<Count>'); locend = find(_infile_,'</Count>'); end; if loc not in (0 .) then do; countchar = substr(_infile_,loc+7,locend - (loc+7)); count = countchar; countfound = 1; output; end; run;
... View more