Download SIMSCRIPT III Language Manual
Transcript
Simscript III Programming Manual ________________________________________________________________________ lines.v An integer variable that enables pagination for the current output unit if containing a positive value indicating the maximum number of lines per page, or disables pagination if zero (which is the default) or negative. Each output unit has its own copy of this variable. ________________________________________________________________________ mark.v An alpha variable that specifies the character that marks the end of input data describing an external process or random variable. Its default value is "*" (asterisk). ________________________________________________________________________ out.f ( integer_arg ) An alpha function that returns (when called as a right function), or modifies (when called as a left function), the specified character of the current output line. Integer_arg is the column number of the character, which must be between 1 and the record size. For example, the statement, A = out.f(4), assigns the character in column four to the variable A. The statement, out.f(4) = "s", changes the character in column four to "s". This function may not be used if the current output unit has been opened for writing binary data. ________________________________________________________________________ page.v An integer variable that contains the number of the current page for the current output unit. It is initialized to 1 and is incremented for each new page when pagination is enabled (lines.v is greater than zero). Each output unit has its own copy of this variable. ________________________________________________________________________ pagecol.v An integer variable that specifies for the current output unit, a positive starting column number at which the word “Page,” followed by the current page number, will be written as the first line of each page (preceding lines written by a heading.v routine) when pagination is enabled (lines.v is greater than zero); or the variable is zero (which is the default) or negative to disable this feature. Each output unit has its own copy of this variable. ________________________________________________________________________ 60