NONMEM Users Network Archive

Hosted by Cognigen

RE: Code lines for sequential runs through PsN

From: Rik Schoemaker <rik.schoemaker>
Date: Wed, 30 Mar 2016 09:22:06 +0000

Hi Matthew,

Use call execute in batch files to allow the process to return and continue=
 with the next line. If you have multiple processors, use the -threads argu=
ment to spread across your processors. This would make:

call execute -threads=8 xxxxxyyyyy_000001.mod ... xxxxxyyyyy_000300.mod
call execute -threads=8 xxxxxyyyyy_000301.mod ... xxxxxyyyyy_000600.mod

Kind regards,


Rik Schoemaker, PhD
Malandolaan 10
1187 HE Amstelveen
The Netherlands<>
+31 20 441 6410


From: owner-nmusers
 Behalf Of HUI, Ka Ho
Sent: 30 March 2016 10:27
To: nmusers
Subject: [NMusers] Code lines for sequential runs through PsN

Dear all,

I have some 10,000 to 100,000 simulation files to run through PsN so I type=
d in cmd something which looks like the following lines:

execute xxxxxyyyyy_000001.mod xxxxxyyyyy_000002.mod ... xxxxxyyyyy_030000.m=

But the string is too long in this case. So, I created a batch file which b=
reaks down the codes into 100 lines and hoped that each line will run seque=
ntially, which looks like:

execute xxxxxyyyyy_000001.mod xxxxxyyyyy_000002.mod ... xxxxxyyyyy_000300.m=
execute xxxxxyyyyy_000301.mod xxxxxyyyyy_000302.mod ... xxxxxyyyyy_000600.m=
execute xxxxxyyyyy_000601.mod xxxxxyyyyy_000602.mod ... xxxxxyyyyy_000900.m=
execute xxxxxyyyyy_029701.mod xxxxxyyyyy_029702.mod ... xxxxxyyyyy_030000.m=

The run started successful, unfortunately only the first line was run (so, =
the run stopped after the 300th file).
It would be troublesome to manually run these 100 lines one by one.
What would be an appropriate code for this purpose?


(image/png attachment: image001.png)

Received on Wed Mar 30 2016 - 05:22:06 EDT

The NONMEM Users Network is maintained by ICON plc. Requests to subscribe to the network should be sent to:

Once subscribed, you may contribute to the discussion by emailing: