@NETWORK
|
Where
WSim_statements are all statements acceptable by the Preprocessor. These include network definition and message generation statements.
Function
The @NETWORK and @ENDNETWORK control statements let you include network definition statements in the same data set with your STL programs. When the STL Translator encounters an @NETWORK statement, it assumes that the following statements are in the scripting language, until the STL Translator encounters the @ENDNETWORK statement. After the translator completes processing all the STL statements, it calls the Preprocessor to verify all the statements found between the @NETWORK and @ENDNETWORK statements. You can specify the NOPREP execution parameter to suppress preprocessing of the network, or NOTRAN to suppress translation of the STL statements.
See Including network definition statements in STL for more information.
Examples
/* My STL Data Set */
/* Network Definition */
@network
netx Ntwrk uti=100,delay=f2,stltrace=yes,mlog=yes
apath Path amsgWSim
1 Vtamappl bufsize=3000
* LU DefinitionWSim
1lu Lu lutype=lu2,display=(24,80),init=sec,path=(apath)
@endnetwork
/* STL Program */
@program
integer i
string c
amsg: msgtxt
do i=1 to 5
c = char(i)
say 'Message Number' c
end
opcmnd 'zend'
quiesce
endtxt
@endprogram
Notes
- The network definition must be placed at the top of the STL input data set. Only comments can come before it.
- The @ENDNETWORK statement must begin in column one.
- The statements must be coded exactly as you run the Preprocessor against the data set directly. For example, labels must begin in column 1.
- You must code at least one NTWRK or PREP statement in your network definition. Multiple networks may also be defined.
- STL comments may not be coded within the network definition. Only WSim comments are acceptable.
- The @NETWORK and @ENDNETWORK statements can be abbreviated @NET and @ENDNET.
- Only comments may be coded on the same line after the @NETWORK statement.