How to keep track of your ado-files W.J. Graveland, University Hospital Rotterdam-Daniel Department...
-
Upload
sophie-norris -
Category
Documents
-
view
219 -
download
2
Transcript of How to keep track of your ado-files W.J. Graveland, University Hospital Rotterdam-Daniel Department...
![Page 1: How to keep track of your ado-files W.J. Graveland, University Hospital Rotterdam-Daniel Department of Statistics.](https://reader036.fdocuments.us/reader036/viewer/2022082517/56649e7f5503460f94b84010/html5/thumbnails/1.jpg)
How to keep track of your ado-files
W.J. Graveland, University Hospital Rotterdam-Daniel Department of Statistics
![Page 2: How to keep track of your ado-files W.J. Graveland, University Hospital Rotterdam-Daniel Department of Statistics.](https://reader036.fdocuments.us/reader036/viewer/2022082517/56649e7f5503460f94b84010/html5/thumbnails/2.jpg)
Example: SITE-directory DDHK
• 345 ado-files
• 128 help-files
• three authors: WvP, BvdH and WG
![Page 3: How to keep track of your ado-files W.J. Graveland, University Hospital Rotterdam-Daniel Department of Statistics.](https://reader036.fdocuments.us/reader036/viewer/2022082517/56649e7f5503460f94b84010/html5/thumbnails/3.jpg)
Problems with rising numbers of ado-files:
• Which do I have
• Which are still necessary
• Which are called by other ado-files
• Who made a certain ado-file
![Page 4: How to keep track of your ado-files W.J. Graveland, University Hospital Rotterdam-Daniel Department of Statistics.](https://reader036.fdocuments.us/reader036/viewer/2022082517/56649e7f5503460f94b84010/html5/thumbnails/4.jpg)
ConventionsAt our department we have the rule to start each ado-file in the same way, per example :
*dtatodbf.ado WvP/BvdH, 26/03/02*first version 30/09/97*Transfers a dta file to dbf file, using DBMSCOPY
Our dataset contains later:
name author dfirst dlastDTATODBF WvP-BvdH 30sep1997 26mar2002(and more variables)
![Page 5: How to keep track of your ado-files W.J. Graveland, University Hospital Rotterdam-Daniel Department of Statistics.](https://reader036.fdocuments.us/reader036/viewer/2022082517/56649e7f5503460f94b84010/html5/thumbnails/5.jpg)
Search your own ado-files
The commands “search and findit” use (also) stata*.key files to find files which apply to the keyword you give.
If the key-option is specified , a stata2.key file is generated(was not in use now, but can be in the future)
discussion : use of stata2.key is doubtfull. Maybe stata can also search for site.key, with search and findit commands.
![Page 6: How to keep track of your ado-files W.J. Graveland, University Hospital Rotterdam-Daniel Department of Statistics.](https://reader036.fdocuments.us/reader036/viewer/2022082517/56649e7f5503460f94b84010/html5/thumbnails/6.jpg)
Adoinf.ado:
Example of syntax :
adoinf remake detail max(400) kw(DDHK) key authors(WvP;BvdH;WG) This command generates :
• adoinf.dta : each observation is an adofile. The variables contain properties of the adofile • ….\UPDATES\s\stata2.key
![Page 7: How to keep track of your ado-files W.J. Graveland, University Hospital Rotterdam-Daniel Department of Statistics.](https://reader036.fdocuments.us/reader036/viewer/2022082517/56649e7f5503460f94b84010/html5/thumbnails/7.jpg)
Some variables:
name Name ado filedsaved Date last saveddfirst date of first versiondlast date of last versionauthor Authornado # ado-files from same folder calledado1 ADO subroutines [1]ado2 ADO subroutines [2]ado3 ADO subsubroutines
![Page 8: How to keep track of your ado-files W.J. Graveland, University Hospital Rotterdam-Daniel Department of Statistics.](https://reader036.fdocuments.us/reader036/viewer/2022082517/56649e7f5503460f94b84010/html5/thumbnails/8.jpg)
Some variables(2):
ncalled # files using this programcalled ADO-files using this programkeywords keywordsoneliner describing function of ado-filehelp helpfile availabledhelp date of help version
![Page 9: How to keep track of your ado-files W.J. Graveland, University Hospital Rotterdam-Daniel Department of Statistics.](https://reader036.fdocuments.us/reader036/viewer/2022082517/56649e7f5503460f94b84010/html5/thumbnails/9.jpg)
Use and contact
The program becomes available coming week.Type on your computer:
findit adoinf
If there are troubles or suggestions:
email : [email protected]