TSS/360: Getting data out
On a real IBM TSS/360 system, you'd be able to get data in and out of the system using punched cards, the printer or magnetic tapes. On an emulated system you can use these facilities to exchange files with your host operating system.
I've got this working for printer and punched card output but have not been able to do so for input from cards or tape.
Bulk I/O
In order to do this, you will need to enable bulk I/O, which provides
facilities in TSS/360 to manage output to I/O devices. Follow the
procedure given in the quick tour until you are asked the question
BULKIO REQUIRED? and this time answer Y.
Startup will continue, and you will soon be prompted with:
MOUNT CARRIAGE TAPE SAME MOUNT CHAIN/TRAIN 'PN' SET DENSITY 6 THEN NR/R
This is a request to the operator to set up the printer with the
correct carriage control tape (to control how special print codes are
interpreted), chain (the metal chain containing the character set),
density (vertical line spacing) and then press the Normal Ready/Ready
button. We don't need to do all that on an emulated system, but you do
need to signal that the printer is ready by going to the Hercules
console and typing i e which sends an interrupt to device 000E,
which is the device configured to be the printer.
The system will respond (in the operator console)
VERIFY THAT THE FOLLOWING 20-CHARACTER MESSAGE APPEARS ... *** BUFFER LOADED ABOVE
If you now go to the file on your host system where the printer places
output - which is units/printer.txt in the quick tour - you will
see the file contains a test print of the characters of the alphabet
followed by BUFFER LOADED ABOVE.
Managing the execution queue
There's one more thing you will need to do to get bulk I/O jobs
flowing. Look at your batch execution queue on the operator console by
typing exhibit bwq. If you have run the system a few times it may
look like this:
exhibit bwq
BATCH WORK QUEUE STATUS AT 09:51:52 01/07/27
BSN USERID TID TYPE STAT DEV STAID DSNAME
0329 SYSOPER0 2 LIST A UR SYSLOG.G0043V00
0330 SYSOPER0 1 LIST P UR SYSLOG.G0044V00
0331 SYSOPER0 1 LIST P UR SYSLOG.G0045V00
What is happening here is that each time the system boots it tries to
print out the system log, but if bulk I/O was not enabled before, they
are all queued up. You have two options here. First, you can put the
printer online by going to the Hercules console and typing i e. The
operator console will show messages like BSN=0329 COMPLETE as it
works its way through the jobs, and if you look at units/printer.txt
on your host you can see the contents.
Alternatively, you can remove the jobs from the queue by using the
CANCEL command on the operator console. This takes a single batch
sequence number at a time, which you can find from the first column of
the exhibit bwq output.
cancel 329 TSS370 10:03:19 SYSOPER0 *CZAWY* BSN=0329 CANCELED ON 020E,
In either case, once exhibit bwq shows empty, you are good to
continue.
exhibit bwq NO ENTRIES OF TYPE REQUESTED FOUND
Printing data sets
To print a file from either the operator or a user account, simply
type PRINT and the data set name. This works for sequential and
indexed files. It will create a background task and respond with the
batch sequence number, for example:
print source.hworld PRINT BSN=0335
Use the techniques described above to manage the queue: ie you will
need to switch to the Hercules console and type i e to put the
printer online. When it is done you will see a message like
BSN=0335 COMPLETE on the operator console and if you look at the
file units/printer.txt on your host system you will see the output,
preceded by a page giving the job details that looks like the below.
On a real system, this would allow the operations staff to separate
the pages for each job and deliver them to the right person easily.
TSS/360 print job banner. Source: Rupert Lane. License: CC0.
Punching data sets
Using the card punch you can extract an exact copy of a data set from
the emulated system to your host. Use the PUNCH command with the
data set name.
punch source.hworld PUNCH BSN=0339
On the operator console you will see the following, which is asking you to put blank punched cards in the machine to complete the job (this may take a few seconds to appear).
exhibit bwq
BATCH WORK QUEUE STATUS AT 02:53:59 01/20/27
BSN USERID TID TYPE STAT DEV STAID DSNAME
0339 RUPERT** 13 PUN P UR SOURCE.HWORLD
02:54:07 SYSOPER0 *CZAWU* BSN=0339 STARTED ON 020D, RUPERT**.SOURCE.HWORLD
02:54:07 ->->-> SYSOPER0 CZCMD 001I MOUNT FORM CARDS ON PNCH 020D,NR/R PNCH
To satisfy this, switch to the Hercules console and send an interrupt
to the card punch by typing i d. A few seconds later the operator
console will say REMOVE OUTPUT FROM PNCH. On the Hercules console,
type i d again to acknowledge that, and if you look in the file
units/punch.txt on your host system you will see the output:
IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
///// USERID=RUPERT**, BSN=0339, DSNAME=SOURCE.HWORLD
0000100 DO 1 J=1,5
0000200 1 WRITE(6, 2)
0000300 2 FORMAT(' HELLO, WORLD!')
0000400 STOP
0000500 END
///// BSN=0339, COMPLETE, 0000005,RUPERT**.SOURCE.HWORLD
The IIIII and ///// lines are there to separate decks easily in a
real system.
Reading cards to a data set (not yet working)
Going the other direction - uploading data from your host machine to
TSS/360 using the punched card reader - works differently, as instead
of uploading a file you use the card reader to submit a
non-conversational batch job. On your host you create a file such as the
below, containing a LOGON card, TSS/360 commands to create a file
with EDIT and then a LOGOFF card. According to the documentation
both the LOGON and LOGOFF cards should start on column 3.
LOGON RUPERT
EDIT SOURCE.GWORLD
DO 1 J=1,5
1 WRITE(6, 2)
2 FORMAT(' GOODBYE, WORLD!')
STOP
END
_END
LOGOFF
Then in the Hercules console enter the below, replacing
units/reader.txt with the file you want to upload.
devinit c units/reader.txt
The operator console will respond with the below:
04:06:12 ->->-> SYSOPER0 CZCMG 002A RDR 020C. INTERVENTION REQUIRED. NR/R.
which seems to show that the OS sees the incoming card data but cannot process it. I get this error on both Hercules and simh. This could indicate a problem with the card format or with the emulator setup. If you find a solution do let me know.
Questions, corrections, comments
I welcome any questions or comments, and also especially any corrections if I have got something wrong. Please email me at rupert@timereshared.com and I will add it here and update the main text.