Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
GPSS
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== TERMINATE === To remove the transaction, use TERMINATE. The optional argument decrements the '''completion counter''', which is a variable that is chosen by the user when running the simulation. Say you wanted to test 100 customers: you would start the execution of your simulation with <code>START 100</code>. <code>TERMINATE 1</code> at the end of each transaction would decrement initial value 100 by 1 (99, 98, 97 ...) until it reached zero. At this point, the simulation stops and results are returned. If you omit the argument in TERMINATE, it will be assumed to be 0. This means your simulation will run forever (unless, of course, you have another TERMINATE that does decrement this counter. [https://athena.ecs.csus.edu/~mitchell/csc148/gpssW/Reference%20Manual/r7.htm#TERMINATE TERMINATE] ==== Timer ==== To have your program run for a predetermined time, make sure none of your TERMINATES decrement the counter and include a section like this: GENERATE ; Generate one transaction ADVANCE 100 ; Run for 100 time units TERMINATE 1 ; End Then run your program with START 1. It will run for 100 time units.
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)