Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: "///" line continuation marker & win/unix?


From   Jenkins S P <stephenj@essex.ac.uk>
To   statalist@hsphsun2.harvard.edu
Subject   st: "///" line continuation marker & win/unix?
Date   Thu, 26 Jan 2006 15:34:42 +0000 (GMT)

I have some ado files containing lines that use the "///" end of line continuation marker. These files are saved on a Win/XP machine using an editor. To exchange these files with remote colleagues, I currently (a) upload each ado file to a virtual windows (samba) drive held on a Unix machine, and then (b) attach said files to my email message, and send.

Problem: the recipients find problems with lines ending in "///". As a result the ado file doesn't work. The error message indicates that Stata is not continuing on to the next line.

I suspect that the problem may be to do with different end-of-line treatments in Win and Unix environment, but am not sure. (A hidden line feed being added?
[I admit that the problem might arise elsewhere, but this is where the smoking gun is.]

Any comments & suggestions, please? My quick Googling and -findit- was not rewarding.

For what it's worth, putting all the files into a zip file archive and sending that using steps (a) and (b) above appears to avoid the problems
Changing the "///" in the original files to use /* and */ over lines appears to solve the problem too but I have not been able to verify that 100% yet

Stephen
=============================================
Professor Stephen P. Jenkins <stephenj@essex.ac.uk>
Institute for Social and Economic Research (ISER)
University of Essex, Colchester CO4 3SQ, UK
Phone: +44 1206 873374. Fax: +44 1206 873151.
http://www.iser.essex.ac.uk
Survival Analysis Using Stata: http://www.iser.essex.ac.uk/teaching/degree/stephenj/ec968/index.php

*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/




© Copyright 1996–2021 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index