Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
From | "Li Chuntao (Tony)" <[email protected]> |
To | [email protected] |
Subject | Re: st: return code for copy |
Date | Mon, 3 Feb 2014 13:33:54 +0800 |
thanks Robert, it works well! Best Tony On Mon, Feb 3, 2014 at 1:23 PM, Roberto Ferrer <[email protected]> wrote: > Have you taken a look at -capture- ? > > *------------- > . copy http://www.nber.org/papers/wrong19862.pdf temp.pdf, replace > (note: file temp.pdf not found) > file http://www.nber.org/papers/wrong19862.pdf not found > r(601); > > . display _rc > 0 > > *--------------- > . capture copy http://www.nber.org/papers/wrong19862.pdf temp.pdf, replace > > . display _rc > 601 > > *-------------- > . capture noisily copy http://www.nber.org/papers/wrong19862.pdf > temp.pdf, replace > (note: file temp.pdf not found) > file http://www.nber.org/papers/wrong19862.pdf not found > > . display _rc > 601 > > Run -help capture- and -help noisily- for details. > > On Mon, Feb 3, 2014 at 12:36 AM, Li Chuntao (Tony) <[email protected]> wrote: >> Dear Listers, >> >> This could be a very narive question. I just want to know if >> there is a return code for copy command. >> >> Say, what is the return code for the following command? and how to >> access (maybe just display) this return code? >> >> copy http://www.nber.org/papers/w19862.pdf temp.pdf, replace >> >> and what is the return code for the following wrong code? and how to >> access the code? >> >> copy http://www.nber.org/papers/wrong19862.pdf temp.pdf, replace >> >> >> thanks >> >> >> Tony >> * >> * For searches and help try: >> * http://www.stata.com/help.cgi?search >> * http://www.stata.com/support/faqs/resources/statalist-faq/ >> * http://www.ats.ucla.edu/stat/stata/ > * > * For searches and help try: > * http://www.stata.com/help.cgi?search > * http://www.stata.com/support/faqs/resources/statalist-faq/ > * http://www.ats.ucla.edu/stat/stata/ * * For searches and help try: * http://www.stata.com/help.cgi?search * http://www.stata.com/support/faqs/resources/statalist-faq/ * http://www.ats.ucla.edu/stat/stata/