Title | Stata 5: Using ado-files before STB-7 | |
Author | Paul Lin, StataCorp |
To make programs from STB-7 and before work, and in general to make programs intended for Stata 2.1 and before (May 1992) work, you must edit the file and make one minor change.
If the file is an ado-file (ends in “.ado”), edit the file and near the top you will see
program define ... ...
Insert a line immediately following the program define:
program define ... version 2.1 ...
save the file as an ASCII (text) file. It will now work.
If the file is a do-file (ends in “.do”), edit the file and add the version 2.1 line right at the top. Remember to save the file as an ASCII (text) file.
You need only do this with files from STB-7 and before (May 1992 and earlier). After that, the files published in the STB include the appropriate version statement, and Stata will know how to execute them properly.
Note: If you write do-files or ado-files and you want to ensure that they continue to work with the future versions of Stata, you should include version statements. For example:
version #
following program define in ado-files and as the top line in do-files.
Learn
Free webinars
NetCourses
Classroom and web training
Organizational training
Video tutorials
Third-party courses
Web resources
Teaching with Stata
© Copyright 1996–2024 StataCorp LLC. All rights reserved.
×
We use cookies to ensure that we give you the best experience on our website—to enhance site navigation, to analyze usage, and to assist in our marketing efforts. By continuing to use our site, you consent to the storing of cookies on your device and agree to delivery of content, including web fonts and JavaScript, from third party web services.
Cookie Settings
Last updated: 16 November 2022
StataCorp LLC (StataCorp) strives to provide our users with exceptional products and services. To do so, we must collect personal information from you. This information is necessary to conduct business with our existing and potential customers. We collect and use this information only where we may legally do so. This policy explains what personal information we collect, how we use it, and what rights you have to that information.
These cookies are essential for our website to function and do not store any personally identifiable information. These cookies cannot be disabled.
This website uses cookies to provide you with a better user experience. A cookie is a small piece of data our website stores on a site visitor's hard drive and accesses each time you visit so we can improve your access to our site, better understand how you use our site, and serve you content that may be of interest to you. For instance, we store a cookie when you log in to our shopping cart so that we can maintain your shopping cart should you not complete checkout. These cookies do not directly store your personal information, but they do support the ability to uniquely identify your internet browser and device.
Please note: Clearing your browser cookies at any time will undo preferences saved here. The option selected here will apply only to the device you are currently using.