Initiating sessions for SNA terminals
When INIT=SEC is coded in the network definition for a simulated
SNA terminal, the terminal sends an INIT-SELF command to the system
under test requesting a session with an application named in the RESOURCE
operand of the definition. You can also initiate the session by coding
a CMND statement that generates a formatted INIT-SELF command. The
following message generation deck causes a terminal to generate an
INIT-SELF command that contains a resource name of RES and a logon
mode table entry name of BATCH. The terminal does not continue in
message generation until the terminal receives an SDT command.
LOGINIT MSGTXT
CMND COMMAND=INIT,RESOURCE=RES,MODE=BATCH
ENDTXT
If your test system processes unformatted
system services (USS) requests, you can code a SYSREQ statement followed
by a TEXT statement containing a logon message for the SLU. In the
following example, the DELAY statement causes different start delays
when multiple terminals reference the message generation deck to generate
their logon messages. The SYSREQ statement places the terminal in
the SSCP-LU session state. The TEXT statement generates the logon
message. The WAIT statement stops message generation and sets the
WAIT indicator for the terminal. The logon message is transmitted
and the terminal WAIT indicator remains set until the terminal receives
a BIND command. LOGON MSGTXT
DELAY TIME=A20
0 IF LOC=RU+0,TEXT=(ANYTHING),
ELSE=B-NOSYSREQ
SYSREQ
NOSYSREQ TEXT (LOGON APPLID((TSO)) USER(($ID,8$/PASSWORD)))
WAIT
ENDTXT