Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, is already up and running.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: Run perl script from do file

From   "David Radwin" <>
To   <>
Subject   st: Run perl script from do file
Date   Tue, 14 Aug 2012 15:06:40 -0700 (PDT)

I don't know the answer about perl, but Stata can read Excel xml files,
after which you can use Stata commands to change the strings.

. xmluse filename.xml, doctype(excel) 

Also, it is good etiquette to use a new subject line for a new topic like
this. I changed the subject line on your behalf.

David Radwin
Senior Research Associate
MPR Associates, Inc.
2150 Shattuck Ave., Suite 800
Berkeley, CA 94704
Phone: 510-849-4942
Fax: 510-849-0794

> -----Original Message-----
> From: [mailto:owner-
>] On Behalf Of tashi lama
> Sent: Tuesday, August 14, 2012 2:43 PM
> To:
> Subject: RE: st: CommandLineEmailer using gmail ??
> Does Stata allow writing a perl script inside a do or ado file sth like
> following
> being hh.ado
> program hh
> clear
> shell vi perl1
>    #!/usr/local/bin/perl
>     use strict;
>    ......
>    :wq
>    perl perl1
> ..........
> .......
> end
> The reason is because I have a xml file( in excel format) which contains
> certain strings which need to be found and replaced with other strings.
> have a feeling since stata can't do that or limited, I am thinkingh to
> perl to accomplish it.
> Thanx..
*   For searches and help try:

© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index