Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Accessing user written ado files

    I jave an ado file that I wrote and used in Stata 16 on an old computer (now junked). I have copied it to my new computer and placed it in the the ado base directory both as a separate ado file and under its subdirectory for which the letter the ado file is named. Yet I continually get the message that the ado file is not recognized. Am I doing something wrong?

    Thanks.

    Ric Uslaner

  • #2
    This is from section 18.11 of the Stata User's Guide:

    Code:
    There are two places to put your personal ado-files. One is the current directory, and that is a good choice when the ado-file is unique to a project. You will want to use it only when you are in that directory. The other place is your personal ado-directory, which is probably something like C:\ado\personal if you use Windows, ~ /ado/personal if you use Unix, and ~ /ado/personal if you use a Mac.
    
    To find your personal ado-directory, enter Stata and type:
    . personal
    Last edited by Ali Atia; 02 Sep 2021, 11:19.

    Comment


    • #3
      Code:
      help adopath

      Comment


      • #4
        Yes, you did something wrong but a serious answer explaining what it was is hard. Check that the ado file and the program name inside do match exactly. For example uslaner.ado should define program uslaner. Why not show us the code?

        Comment


        • #5
          The files are attached. Somehow I can't get them to work in Stata and when I try to send them they get bounced back. Any help would be appreciated.
          Attached Files

          Comment


          • #6
            These are both binary files. I don't know what they are but they aren't Stata ado or help files. It's essential (although not sufficient) that Stata ado and help files are text files which can read in a text editor. An ado file contains Stata code defining at least one program and a help file explains.

            Comment


            • #7
              The files were originally done in Stata. Is there a way to convert them back to get them as ado and hlp files? Thanks.

              Comment


              • #8
                Have you looked inside them yourself? They have precisely zero Stata content. How they came to be called .pf.ado and pf.hlp I naturally do not know. The intelligible text inside includes "Professional Files", if that rings any bells -- perhaps an application you used some time ago.

                In #1 you say that you wrote the ado and help, so nobody else can add any information -- unless it's also true that you published them and there is a saved copy somewhere else.

                I don't see that anyone else has a different suggestion, unfortunately.

                Comment

                Working...
                X