Robert O'Hara
2010-02-13 18:25:28 UTC
Here's a quick tutorial, because I found it confusing at first.
To move data from CMS to the outside world (e.g. Windows) I find the easiest way is to create a tape. Remember, in Hercules a tape is simulated by a file.
First, create the "tape" by using the hetinit utility (do this in Windows or whatever your host OS is):
hetinit -n -d mytape.aws
I did this once, and called it "EmptyTape.aws". Now when I make a new tape I just copy that file...
Now you have an empty reel of tape. You need to mount it on a tape drive. In the Hercules console type:
devinit 480 mytape.aws
Now you have your empty reel of tape mounted on the tape drive at address 480. Next you need to give access to that tape drive to a virtual machine. In the Hercules console you can issue VM/370 operator commands (or you can issue them from the Operator console if you have logged it in separately). From the Hercules console these commands are prefixed with a "/" to distinguish them from Hercules commands:
/attach 480 to maint as 181
The above assumes you are logged in as MAINT. You can of course use whatever userid you want. On MAINT's console you will get the message:
TAPE 181 ATTACHED
Now you can use the CMS TAPE or VMFPLC2 commands to write multiple files to the tape. Type HELP TAPE for more information on the TAPE command. When you are done, detach the tape drive from your virtual machine:
DETACH 181
Back in your host OS the files you wrote are all in the "myfile.aws" file. You can send that to other folks, who can mount the file as a tape drive and read the files using the TAPE LOAD command.
Regards, Bob
To move data from CMS to the outside world (e.g. Windows) I find the easiest way is to create a tape. Remember, in Hercules a tape is simulated by a file.
First, create the "tape" by using the hetinit utility (do this in Windows or whatever your host OS is):
hetinit -n -d mytape.aws
I did this once, and called it "EmptyTape.aws". Now when I make a new tape I just copy that file...
Now you have an empty reel of tape. You need to mount it on a tape drive. In the Hercules console type:
devinit 480 mytape.aws
Now you have your empty reel of tape mounted on the tape drive at address 480. Next you need to give access to that tape drive to a virtual machine. In the Hercules console you can issue VM/370 operator commands (or you can issue them from the Operator console if you have logged it in separately). From the Hercules console these commands are prefixed with a "/" to distinguish them from Hercules commands:
/attach 480 to maint as 181
The above assumes you are logged in as MAINT. You can of course use whatever userid you want. On MAINT's console you will get the message:
TAPE 181 ATTACHED
Now you can use the CMS TAPE or VMFPLC2 commands to write multiple files to the tape. Type HELP TAPE for more information on the TAPE command. When you are done, detach the tape drive from your virtual machine:
DETACH 181
Back in your host OS the files you wrote are all in the "myfile.aws" file. You can send that to other folks, who can mount the file as a tape drive and read the files using the TAPE LOAD command.
Regards, Bob