On Mon, 16 Feb 2004 10:54:16 -0500 "Michael Coffin" <MichaelCoffin-JzNCr50P+***@public.gmane.org>
wrote:
:>Thanks again Ivan! That makes sense now. Does anyone have a local CP
:>command source coded up for VM? Where is the HCP mod to VM/370 (I
:>google searched but HCP is a very popular term, couldn't find it).
Going down memory lane here.
I wrote a $CP command to issue CP commands from a second level session many
eons ago - my guess would be around 1986.
There are several steps required:
1. Update the CP module that has the commands defined. DMKCFC sounds right,
but it has been a while.
2. Write the actual command - you can look at the source for the various other
commands.
3. Generate a new CP nucleus.
Be aware that a program check inside of CP causes a crash of CP and a re-IPL.
:> Date: Sat, 14 Feb 2004 22:50:31 +0100
:> From: "Ivan Warren" <ivan-lnHwE90NT89Ooi3Kub+***@public.gmane.org>
:>Subject: RE: RE: Writing To Tape 'files' In Hercules 3.01
:>
:>
:>-----BEGIN PGP SIGNED MESSAGE-----
:>Hash: SHA1
:>
:>> Here's a follow up question. I enabled the Diag 8 support in
:>> my Hercules config and would like to have a local "mount
:>> exec" on a VM system do a diag 8 to instruct Hercules which
:>> "tape" to "mount". There was something similar to this on
:>> the P390 as I recall. However, Diag 8 in VM will send the
:>> command to CP, not Hercules. Is there a means of redirecting
:>> the command to Hercules? I'd like to do something like:
:>>
:>> Rexx:
:>> Parse Upper Arg Volser .
:>> Rc=Diag(8,'devinit 580 /tapes/'Volser'.HET')
:>>
:>> Resulting in Hercules "mounting/creating" the specified
:>> "Volser" HET file.
:>
:>In order for DIAG 8 to work, the instruction has to be issued in
:>supervisor mode (I.e. by CP itself).
:>
:>This means a mod is needed in CP to do that (basically implementing a
:>new cp command that will issue a DIAG 8 with the additional parameters -
:>This is what has already been done on VM/370 with the 'HCP' command).
:>
:>The P/390 has a little different method (which involves a special CCW
:>code to issue mounts). This is probably something that needs to be
:>implemented somehow (it has to be a optional feature because of the
:>security issues involved).. Furthermore, for tape mounts, this would
:>probably be a MUCH BETTER solution than diag 8 (as it restricts scope to
:>the tape drive itself - and lets CP deals with the difference between
:>virtual device address & real device address).
:>
:>>
:>> Or is there a better way to do this? I was looking at the
:>> doc for the "@" files thinking maybe I could create an
:>> "@tapes" file containing all of the volsers of a "virtual
:>> tape library", but that doesn't seem to be the way it works -
:>> the "@" file would just simulate a cartridge stacker and
:>> mount the HET files listed sequentially like a 3480 autoloader.
:>>
:>> -TIA
:>>
:>> -Mike
:>
:>This is absolutelly correct.. The '@' file is nothing else but a tape
:>stacker.. (and even then, it's less evolved than a 3480 AL as there is
:>no 'system' mode for it - It only operates in standalone mode where a
:>new tape is loaded until the stacker is exhausted).
:>
:>- --Ivan
:>
:>
:>
:>
:>Community email addresses:
:> Post message: hercules-390-***@public.gmane.org
:> Subscribe: hercules-390-subscribe-***@public.gmane.org
:> Unsubscribe: hercules-390-unsubscribe-***@public.gmane.org
:> List owner: hercules-390-owner-***@public.gmane.org
:>
:>Files and archives at:
:> http://groups.yahoo.com/group/hercules-390
:>
:>Get the latest version of Hercules from:
:> http://www.conmicro.cx/hercules
:>Yahoo! Groups Links
:>
:>
:>
:>
--
Binyamin Dissen <bdissen-***@public.gmane.org>
http://www.dissensoftware.com
Director, Dissen Software, Bar & Grill - Israel
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com. Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/W4wwlB/TM
---------------------------------------------------------------------~->