Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Education > Statistics > Re: KEEP comman...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 3507 of 3659
Post > Topic >>

Re: KEEP command

by "A.A.A" <ayafeps@[EMAIL PROTECTED] > Jun 14, 2008 at 02:28 AM

On Jun 13, 12:23=A0am, Bruce Weaver <bwea...@[EMAIL PROTECTED]
> wrote:
> On Jun 12, 5:39 am, "A.A.A" <ayaf...@[EMAIL PROTECTED]
> wrote:
>
> --- snip ---
>
>
>
>
>
> > And it works without errors but the problem is that I want to save
> > the
> > excel files so that the columns are with a certain order v1 then
> > @[EMAIL PROTECTED]
 then @[EMAIL PROTECTED]
(these are the names of the columns)so
I=
 put
> > after the save translate command
> > the "keep" command as follows:
>
> > SAVE TRANSLATE OUTFILE=3D!QUOTE(!concat('E:\simuldata1\', 'datag', !i,
> > '.xls'))
>
> > =A0 /TYPE=3DXLS /VERSION=3D8 /MAP /REPLACE /keep v1 =A0@[EMAIL PROTECTED]
 @[EMAIL PROTECTED]
 v3
> > v4 v5 =A0v6 V14_mean1 v7 V14_mean2 v8 V14_mean3 v9 V14_n.
>
> > But unfortunately the excel files were saved without the order of
> > columns I need: v1 then @[EMAIL PROTECTED]
 then @[EMAIL PROTECTED]
 where is
th=
e
> > problem??????????????????????????????
>
> > Great thanks
>
> Assuming there is no blank line in the middle of the SAVE TRANSLATE
> command, I don't see any obvious problems. =A0If you're not able to
> figure out why it's not working as expected, you could always use
> MATCH FILES (or ADD FILES) to rearrange the order of variables in the
> working data file (and delete unwanted variables) before writing out
> to Excel via SAVE TRANSLATE. =A0That would look something like this:
>
> match files file =3D * /
> =A0keep =3D v1 =A0@[EMAIL PROTECTED]
 @[EMAIL PROTECTED]
 v2 v3 v4 v5 =A0v6
> =A0 =A0 V14_mean1 v7 V14_mean2 v8 V14_mean3 v9 V14_n .
> exe.
>
> SAVE TRANSLATE
> =A0 OUTFILE=3D!QUOTE(!concat('E:\simuldata1\', 'datag', !i, '.xls')) /
> =A0 TYPE=3DXLS /VERSION=3D8 /MAP /REPLACE .
>
> By the way, when posting the same question to more than one group,
> please cross-post rather than doing separate posts to the different
> groups.
>
> HTH.
>
> --
> Bruce Weaver
> bwea...@[EMAIL PROTECTED]
> "When all else fails, RTFM."- Hide quoted text -
>
> - Show quoted text -

Hi,

The error was the space

Thank you for your help
 




 1 Posts in Topic:
Re: KEEP command
"A.A.A" <aya  2008-06-14 02:28:04 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu Dec 4 22:57:06 CST 2008.