Issuing a Hercules command from CMS

View: New views
7 Messages — Rating Filter:   Alert me  

Issuing a Hercules command from CMS

by Robert O'Hara :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I would like to be able to issue a command to Hercules from within a CMS EXEC.

I observe that Hercules provides the capability to issue a command via Diagnose 8.  Thus it should be possible to create a CP command that issues that Diagnose 8, and the CP command can be called from an EXEC.

Has anyone already implemented this?

Thanks, Bob


Re: Issuing a Hercules command from CMS

by Ivan Warren :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Robert O'Hara wrote:
> I would like to be able to issue a command to Hercules from within a CMS EXEC.
>
> I observe that Hercules provides the capability to issue a command via Diagnose 8.  Thus it should be possible to create a CP command that issues that Diagnose 8, and the CP command can be called from an EXEC.
>
> Has anyone already implemented this?
>
> Thanks, Bob
>
>  
There is a HCP command for VM/370 floating around (should be in the file
area)..

This CP command issues a DIAG 8 with the command arguments to the
underlying system (hercules or the previous level of VM if running a 2nd
level VM).

Depending on where you got your copy of VM/370 from, it may already be
in there.

--Ivan

 

smime.p7s (4K) Download Attachment

RE: Issuing a Hercules command from CMS

by Dave Wade :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Bob,
Its in the 4/5/6 pack. I think it's the HCP command. Note it has to be a CP
command not a CMS command....
Dave

-----Original Message-----
From: H390-VM@... [mailto:H390-VM@...] On Behalf Of
Robert O'Hara
Sent: 07 July 2009 23:39
To: H390-VM@...
Subject: [H390-VM] Issuing a Hercules command from CMS

I would like to be able to issue a command to Hercules from within a CMS
EXEC.

I observe that Hercules provides the capability to issue a command via
Diagnose 8.  Thus it should be possible to create a CP command that issues
that Diagnose 8, and the CP command can be called from an EXEC.

Has anyone already implemented this?

Thanks, Bob



------------------------------------

Yahoo! Groups Links




RE: Issuing a Hercules command from CMS

by Dave Wade :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

P.S. its NOT Class "G" either, and make sure you have an "up-to-date"
Hercules as until recently it mis-calculated the return length and could
return one byte too many giving a FRE013 if the command output exceeded 4k
...

Bob,
Its in the 4/5/6 pack. I think it's the HCP command. Note it has to be a CP
command not a CMS command....
Dave

-----Original Message-----
From: H390-VM@... [mailto:H390-VM@...] On Behalf Of
Robert O'Hara
Sent: 07 July 2009 23:39
To: H390-VM@...
Subject: [H390-VM] Issuing a Hercules command from CMS

I would like to be able to issue a command to Hercules from within a CMS
EXEC.

I observe that Hercules provides the capability to issue a command via
Diagnose 8.  Thus it should be possible to create a CP command that issues
that Diagnose 8, and the CP command can be called from an EXEC.

Has anyone already implemented this?

Thanks, Bob



------------------------------------

Yahoo! Groups Links




Re: Issuing a Hercules command from CMS

by kerravon86 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

--- In H390-VM@..., "Dave Wade" <g4ugm@...> wrote:
>
> P.S. its NOT Class "G" either, and make sure you have an
> "up-to-date" Hercules as until recently it mis-calculated
> the return length and could return one byte too many giving
> a FRE013 if the command output exceeded 4k

When was this fixed please? If you can refer me
to a message or date I can try to find the code
change.

Thanks.  Paul.



Re: Re: Issuing a Hercules command from CMS

by Ivan Warren :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

kerravon86 wrote:
> When was this fixed please? If you can refer me
> to a message or date I can try to find the code
> change.
>
>  
http://www.ivansoftware.com/cgi-bin/viewvc.cgi?view=rev&revision=5271

--Ivan

 

smime.p7s (4K) Download Attachment

Re: Issuing a Hercules command from CMS

by kerravon86 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

--- In H390-VM@..., Ivan Warren <ivan@...> wrote:
>
> kerravon86 wrote:
> > When was this fixed please? If you can refer me
> > to a message or date I can try to find the code
> > change.
> >
> >  
> http://www.ivansoftware.com/cgi-bin/viewvc.cgi?view=rev&revision=5271

Thanks Ivan.

BFN.  Paul.