OS/360 on Hercules: Building and installing TSO and TCAM


11. Building and installing TSO and TCAM

11.1 Overview

While the structure of TSO is quite a bit different in MVT from what it became in later OSes, the function is definitely the same. The main difference is that, unlike in MVS, TSO users have a small piece of the address space which they share among themselves via a swapping mechanism managed by the TSO main task.

VTAM hadn't been invented yet, so all TSO use is through TCAM. TCAM is capable of controlling local 3270, remote 3270, and remote line-mode terminal devices; Hercules currently emulatesonly the first, so that's what we will set up. The procedure here will generate a TCAM with exactly one local 3270 device defined to it. Extending that definition to define multiple 3270s is straightforward.

11.2 TCAM and TSO JCL: TCAMPRCS

The first step is to add JCL procs for TSO and TCAM to the SYS1.PROCLIB dataset. This job does that. It can be found in jcl/tcamprcs.jcl.

11.3 TSO parameters: TSOSETUP

This job does two things:

It's in jcl/tsosetup.jcl.

11.4 TCAM stage 1: TCAMSTG1

TCAM is generated by a stage 1/stage 2 process similar to the OS itself. Fortunately, both steps are quite a bit simpler than those. Stage 1 is done by feeding a source deck to the assembler, which produces assembler output that builds the actual TCAM message control program (MCP). Stage 1 is in jcl/tcamstg1.jcl. Before starting it, if HASP is not running, you need to start a writer for the punch output in SYSOUT class B. Do this by entering the command

s wtr,00d,,b
on the MVT console. If HASP is running, this is unnecessary, as it automatically runs the writer for you.

11.5 TCAM stage 2: TCAMSTG2

Unlike the OS generation, TCAM's stage 1 output is just an assembler program. To build the MCP, the assembler source must be fed to the assembler by wrapping JCL around it and feeding it to the card reader. The JCL is in jcl/tcamstg2.txt. Edit this file, insert the contents of pch00d.txt where the comment (surrounded by rows of !!!!! - delete those) indicates it should go, save the modified JCL as jcl/tcamstg2.jcl, then run that. The supplied jcl/tcamstg2.jcl file is the result of running the supplied stage 1 gen, and may be used unmodified if the stage 1 deck has not been changed.

11.6 Starting TCAM and TSO

TCAM may be started, once the stage 2 is complete, by entering the command

s tcam
on the MVT console. Aside from the message that says TCAM has been started, nooutput will be produced. Start TSO by entering
s tso
This will be more verbose:
      IEF403I TSO      STARTED    TIME=13.20.22          
      IKJ017I SMF NOT ACTIVE - SMF PARAMETER IGNORED     
      IKJ016I REGNMAX=1  - REGIONS STARTING=1            
      IKJ030I SYSWAP00,000300,000300 SWAP DATA SET FORMAT
      IKJ090I TSO DUMP FUNCTION INOPERATIVE              
      IKJ052I TIME SHARING REGION 01 HAS STARTED         
      IKJ019I TSO HAS BEEN INITIALIZED                   
The IKJ030I message will only be produced the first time TSO is started. At this point, it's all running.

11.7 Logging on to TSO

Logging on under TCAM is finicky, at least on MVT. To log on, you must follow these steps:

If all went well, you'll be greeted with:
 IBMUSER LOGON IN PROGRESS AT 13:42:21 ON FEBRUARY 14, 1975
 NO BROADCAST MESSAGES 
 READY  
The first time, you'll get a complaint about the broadcast dataset being unusable. This will be corrected when you define another user ID. To do so, logon as IBMUSER, then do:
account
You'll be greeted with:
ACCOUNT
This tells you you're in ACCOUNT mode. This is the program that is used to define TSO users. Enter
add (userid * * ikjaccnt) oper acct jcl size(44)
This will define a new user with the id userid. TSO user IDs must be no longer than 7 characters. The new user ID will have all of the same capabilities as IBMUSER, which is everything. As a side effect, the broadcast dataset will be formatted. Exit ACCOUNT by entering
end
This will return you to the READY prompt.

11.8 Shutting down TSO and TCAM

To shut down TSO, enter

p tso
on the MVT console. This will produce:
      IKJ078I TSO      TSO      TSO IS STOPPING
      05 IKJ024D TSO STOP IN PROGRESS, REPLY 'U' OR 'FSTOP'
      IKJ051I TIME SHARING REGION 01 HAS TERMINATED
      IEE400I THESE MESSAGES CANCELLED - 05.
      IKJ085I  TSO MODIFY/STOP SUBTASK TERMINATED
      IEF404I TSO      ENDED      TIME=13.53.24
The message IKJ024D will automatically be replied to, so you don't have to reply yourself.

To shut down TCAM, enter

z tp
on the MVT console. This will produce:
      IED097I TCAM IS CLOSED DOWN
    - IEF404I TCAM     ENDED      TIME=13.55.58
At this point, TCAM and TSO are down. The system may be shut down if desired.


Up to table of contents Previous: Building and installing HASP Next: What's next?


Jay Maynard, jmaynard@conmicro.cx

Last updated 14 February 2003