LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (April 2007, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Thu, 5 Apr 2007 12:06:18 -0700
Reply-To:     "Terjeson, Mark" <Mterjeson@RUSSELL.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         "Terjeson, Mark" <Mterjeson@RUSSELL.COM>
Subject:      Re: x Commands
In-Reply-To:  A<16FD64291482A34F995D2AF14A5C932C015A71F2@MAIL002.prod.ds.russell.com>
Content-Type: text/plain; charset="us-ascii"

Hi again James,

I'm not sure I interpreted your request just right. The example below adding the XWAIT will give you the occasion to manually do exit on the first interation each time...

But if you were looking to get rid of ALL of the manual stops for exit, you can obvious skip the XWAIT and just move the NOXWAIT prior the X command!

Sorry if I didn't catch this the first time, but the above essentially shows you how to mix and match for any combo you need. (just set XWAIT or NOWAIT the way you want *prior* the use of the X command)

Mark

-----Original Message----- From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of Terjeson, Mark Sent: Thursday, April 05, 2007 11:54 AM To: SAS-L@LISTSERV.UGA.EDU Subject: Re: x Commands

Hi James,

Add an XWAIT just prior the loop, that way a new invocation will behave the same way each time.

%macro sim; options xwait; %do iter= 1 %to 10;

many lines of code here

x 'cd c:\NOHARM87'; x 'NOHARM87.EXE twodep2.dat twodep2.out 80 0.00001'; options noxwait; %end; %mend sim; %sim;

Hope this is helpful.

Mark Terjeson Senior Programmer Analyst, IM&R Russell Investment Group

Russell Global Leaders in Multi-Manager Investing

-----Original Message----- From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of James Algina Sent: Thursday, April 05, 2007 11:44 AM To: SAS-L@LISTSERV.UGA.EDU Subject: x Commands

Hello All,

At the bottom of this message are the % commands and x commands for a program that simulates data, calls a program called noharm87, and submits a program and data to noharm87. The "many lines of code here" text is where the code for simulating the data go.

If a SAS session is initiated and the the program is run for the first time in the session, then after the first iteration the command exit must be typed in the noharm87 window in order for the iterations to continue. After subsequent iterations the noharm window closes without requiring intervention.

However if the program is run two or more times, in the second run and all subsequent runs the noharm widow closes without intervention even for the first iteration.

Can someone tell if the code can be changed, and if so how, so that exit need not be typed in the noharm87 window in order for the iterations to continue.

Thanks.

Jamie

%macro sim; %do iter= 1 %to 10;

many lines of code here

x 'cd c:\NOHARM87'; x 'NOHARM87.EXE twodep2.dat twodep2.out 80 0.00001'; options noxwait; %end; %mend sim; %sim;

-- James Algina Professor Educational Psychology 1423D Norman Hall P.O. Box 117047 University of Florida Gainesville, FL 32611

Voice 352-392-0724 x 247 Fax 352-392-5929


Back to: Top of message | Previous page | Main SAS-L page