Re: EXEC PGM=??? to issue operator commands from the JCL stream?

2008-10-27 Thread Bond, Richard
Good example of why this facility should be disabled for batch jobs (JES2 - 
JOBCLASS(*)  COMMAND=IGNORE,).   We had a DB2 job that wanted to 
'quiesce' something in DB2 (sorry, I'm not a DB2 person so I don't remember 
what the 'something' was).  Anyway, the JCL should have said //* QUIESCE 

but the '*' was mistakenly omitted which resulted in the LPAR being quiesced.

Dick Bond
HFHS Mainframe Administration

> -Original Message-
> From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] On Behalf
> Of Chase, John
> Sent: Tuesday, October 21, 2008 9:25 AM
> To: IBM-MAIN@BAMA.UA.EDU
> Subject: Re: EXEC PGM=??? to issue operator commands from the JCL stream?
>
> > -Original Message-
> > From: IBM Mainframe Discussion List On Behalf Of Todd Burch
> >
> > Thanks to everyone.
> >
> > I implemented Raymond's suggestion for // COMMAND 'blah' last night,
> and it
> > works great.  The unsynchronized behavior is fine for the immediate
> need at
> > hand.  I needed to refresh WLM.
> >

==
CONFIDENTIALITY NOTICE: This email contains information from the sender that 
may be CONFIDENTIAL, LEGALLY PRIVILEGED, PROPRIETARY or otherwise protected 
from disclosure. This email is intended for use only by the person or entity to 
whom it is addressed. If you are not the intended recipient, any use, 
disclosure, copying, distribution, printing, or any action taken in reliance on 
the contents of this email, is strictly prohibited. If you received this email 
in error, please contact the sending party by reply email, delete the email 
from your computer system and shred any paper copies.
 
Note to Patients: There are a number of risks you should consider before using 
e-mail to communicate with us. See our Privacy Policy and Henry Ford My Health 
at www.henryford.com for more detailed information. If you do not believe that 
our policy gives you the privacy and security protection you need, do not send 
e-mail or Internet communications to us.

==

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html



Re: EXEC PGM???? to issue operator commands from the JCL stream?

2008-10-23 Thread Shmuel Metz (Seymour J.)
In <[EMAIL PROTECTED]>, on 10/20/2008
   at 07:09 PM, Todd Burch <[EMAIL PROTECTED]> said:

>What utility program (or proc) is available that will allow me to enter
>operator commands via a batch job? 

That depends on the software that you're running and on how it's
configured. There are several flavors of in-stream commands and there are
facilities for issuing commands from within REXX. My preference is to use
the CONSOLE facility in REXX and retrieve the command output.

You need to discuss your requirements with your systems and security
staffs. If they support more than one option, you'll need to determine
which best suits your needs.
 
-- 
 Shmuel (Seymour J.) Metz, SysProg and JOAT
 ISO position; see  
We don't care. We don't have to care, we're Congress.
(S877: The Shut up and Eat Your spam act of 2003)

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html



Re: EXEC PGM=??? to issue operator commands from the JCL stream?

2008-10-23 Thread John McKown
On Wed, 22 Oct 2008 14:09:58 -0500, Patrick O'Keefe
<[EMAIL PROTECTED]> wrote:

>
>A couple shops I've been in have disabled issuing commands
>through JCL, but already had a program that issued commands.
>In both cases the program did security validation before issuing
>the commands.

I would think that this would be unnecessary, if the OPERCMDS and JESSPOOL
classes are active and have the correct profiles defined.

>
>I think that is a pretty common situation.   The details are different
>for each shop, of course.
>
>Pat O'Keefe

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html



Re: EXEC PGM=??? to issue operator commands from the JCL stream?

2008-10-22 Thread George Fogg
> On Wed, 22 Oct 2008 05:08:02 -0400, Kenneth J. Kripke
> <[EMAIL PROTECTED]> wrote:
>
>>If your site has restrictions on entering Commands via inline jcl or
> Console is not authorized for REXX, the other option is to
>>write your own MGCR or MGCRE assembler program to read and
> process commands.  This method would require your program to be
> APF authorized and you would need
>>to do a modeset to get into Supervisor State, Key Zero.
>>...
>
> A couple shops I've been in have disabled issuing commands
> through JCL, but already had a program that issued commands.
> In both cases the program did security validation before issuing
> the commands.
>
> I think that is a pretty common situation.   The details are different
> for each shop, of course.
>
I agree. We don't allow users to use "// COMMAND " but they can use the
JCL shown by John McKown in his post:

//DOCMDS EXEC PGM=IEBGENER
//SYSPRINT DD SYSOUT=*
//SYSIN DD DUMMY
//SYSUT2 DD SYSOUT=(*,INTRDR)
//SYSUT1 DD DATA,DLM='$$'
/*$VS,'D A,L'
$$
Security wise, JES2 does a third party REQUEST=AUTH UTOKEN=user_token where
the user_token is the address of the submitter's RACF token to see if they
have CONTROL access to the OPERCMDS profile "JESx.VS" for the $VS JES2
command.

 Then JES2 does a second party REQUEST=AUTH ACEE=user_acee_address where the
submitter's ACEE is used to check to see if the user has READ authority to
OPERMCDS profile "MVS.DISPLAY".
George Fogg

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html



Re: EXEC PGM=??? to issue operator commands from the JCL stream?

2008-10-22 Thread Patrick O'Keefe
On Wed, 22 Oct 2008 05:08:02 -0400, Kenneth J. Kripke 
<[EMAIL PROTECTED]> wrote:

>If your site has restrictions on entering Commands via inline jcl or 
Console is not authorized for REXX, the other option is to
>write your own MGCR or MGCRE assembler program to read and 
process commands.  This method would require your program to be 
APF authorized and you would need
>to do a modeset to get into Supervisor State, Key Zero.
>...

A couple shops I've been in have disabled issuing commands 
through JCL, but already had a program that issued commands.  
In both cases the program did security validation before issuing
the commands.

I think that is a pretty common situation.   The details are different 
for each shop, of course.

Pat O'Keefe 

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html



Re: EXEC PGM=??? to issue operator commands from the JCL stream?

2008-10-22 Thread Kenneth J. Kripke
If your site has restrictions on entering Commands via inline jcl or Console is 
not authorized for REXX, the other option is to 
write your own MGCR or MGCRE assembler program to read and process commands.  
This method would require your program to be APF authorized and you would need 
to do a modeset to get into Supervisor State, Key Zero.  

Ken Kripke
[EMAIL PROTECTED]

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html



Re: EXEC PGM=??? to issue operator commands from the JCL stream?

2008-10-22 Thread Rafa Pereira
On Tue, 21 Oct 2008 08:26:08 -0500, John McKown <[EMAIL PROTECTED]> wrote:

>On Tue, 21 Oct 2008 08:10:55 -0500, Todd Burch <[EMAIL PROTECTED]> wrote:
>
>>John, what processes the "/*$VS" piece of that?
>>
>>Todd
>
>$VS is a JES2 command which basically tells JES2 to issue an MVS command.
>Although it is issued by the JES2 address space, the command is processed as
>if it were issued by the RACF id under which the job is executing.
>

Also, if the only purpose of the job is to execute commands, the JOB and
EXEC cards are not needed. In my shop, a pds member with just these two records:

/*$VS,'D A,L'
/*$VS,'D T'

can be successfully submitted.

Regards,

Rafa.

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html



Re: EXEC PGM=??? to issue operator commands from the JCL stream?

2008-10-21 Thread Roger Bolan
On my JES2 system, nothing special is needed.  To issue commands that do 
not have to coordinate with job steps, you can just stick them at the top 
of any job. 

For example, when running a testcase that requires me to use a special 
writer proc and destination for a certain printer, I can just insert the 
following lines right above my job card: 

/*$PPRT619 
/*$T FSSDEF(WTRES600),PROC=WTRESRJB 
/*$TPRT619,ROUTECDE=RJB619 
/*$SPRT619 

That stops PRT619, changes the proc, changes the routecde (for DEST), and 
then starts the printer for me.

Since those commands are not synchronized with the job steps, I have a 
separate similar job with an IEFBR14 step to put the printer back to the 
original values.

--Roger 

IBM Mainframe Discussion List  wrote on 10/20/2008 
06:09:47 PM:

> What utility program (or proc) is available that will allow me to enter
> operator commands via a batch job? 
> 
> 
> 
> Thanks, Todd  (trying to avoid writing one.) 
> 
> 
> 
> 
> --
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
> Search the archives at http://bama.ua.edu/archives/ibm-main.html
> 

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html



Re: EXEC PGM=??? to issue operator commands from the JCL stream?

2008-10-21 Thread Lindy Mayfield
File19, a program called COMMAND.

-Original Message-
From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] On
Behalf Of Jan MOEYERSONS
Sent: 21. lokakuuta 2008 15:42
To: IBM-MAIN@BAMA.UA.EDU
Subject: Re: EXEC PGM=??? to issue operator commands from the JCL
stream?

On Tue, 21 Oct 2008 08:00:53 -0400, Martinez, Frank J <[EMAIL PROTECTED]>

wrote:

>I could send you the code for an old utility program that issues an
operator 
command (no idea who wrote it, but it works like a charm.)

I am sure there is something on the CBT tape. 
Search http://cbttape.org for command and batch

Cheers,

Jantje.

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html



Re: EXEC PGM=??? to issue operator commands from the JCL stream?

2008-10-21 Thread Jon Brock
We use a program from the CBT tape for this very thing.  

Todd's original need has been satisfied for the moment, as he didn't
need to synchronize commands within a job stream.  Even so, I prefer to
use the program, as differing security parameters at our installation
mean the IEFBR14 method works on the development system but not in
production.

I can't remember exactly which file had the program we use, but I know
it was one from CBT.


Jon





I am sure there is something on the CBT tape. 
Search http://cbttape.org for command and batch


--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html



Re: EXEC PGM=??? to issue operator commands from the JCL stream?

2008-10-21 Thread Hal Merritt
I've used REXX with good results as well as the various JCL solutions
posted by others. 

The JCL solutions are quick and easy and work well. I use REXX when I
need logic, variables, and/or time delays.

-Original Message-
From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] On
Behalf Of Todd Burch
Sent: Monday, October 20, 2008 7:10 PM
To: IBM-MAIN@BAMA.UA.EDU
Subject: EXEC PGM=??? to issue operator commands from the JCL stream?

What utility program (or proc) is available that will allow me to enter
operator commands via a batch job?  

 

Thanks, Todd  (trying to avoid writing one.)  

 


--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

NOTICE: This electronic mail message and any files transmitted with it are 
intended
exclusively for the individual or entity to which it is addressed. The message, 
together with any attachment, may contain confidential and/or privileged 
information.
Any unauthorized review, use, printing, saving, copying, disclosure or 
distribution 
is strictly prohibited. If you have received this message in error, please 
immediately advise the sender by reply email and delete all copies.

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html



Re: EXEC PGM=??? to issue operator commands from the JCL stream?

2008-10-21 Thread John McKown
On Tue, 21 Oct 2008 08:10:55 -0500, Todd Burch <[EMAIL PROTECTED]> wrote:

>John, what processes the "/*$VS" piece of that?
>
>Todd

$VS is a JES2 command which basically tells JES2 to issue an MVS command.
Although it is issued by the JES2 address space, the command is processed as
if it were issued by the RACF id under which the job is executing.

This is documented somewhere in the JES2 manuals. Of course, I'm being a bit
parochial in assuming a JES2 system.

--
John 

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html



Re: EXEC PGM=??? to issue operator commands from the JCL stream?

2008-10-21 Thread Chase, John
> -Original Message-
> From: IBM Mainframe Discussion List On Behalf Of Todd Burch
> 
> Thanks to everyone.
> 
> I implemented Raymond's suggestion for // COMMAND 'blah' last night,
and it
> works great.  The unsynchronized behavior is fine for the immediate
need at
> hand.  I needed to refresh WLM.
> 
> John, do you have an example of an IEFBR14 job that would do this?

// 
//STEP01   EXEC PGM=IEFBR14
// COMMAND ''
// COMMAND ''
// ...
// COMMAND ''

-jc-

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html



Re: EXEC PGM=??? to issue operator commands from the JCL stream?

2008-10-21 Thread Todd Burch
John, what processes the "/*$VS" piece of that?  

Todd

> -Original Message-
> From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] On
> Behalf Of John McKown
> Sent: Tuesday, October 21, 2008 8:08 AM
> To: IBM-MAIN@BAMA.UA.EDU
> Subject: Re: EXEC PGM=??? to issue operator commands from the JCL stream?
> 
> 
> The simplest way, but which requires that the INTRDR be set up correctly,
> is
> to do something like:
> 
> //DOCMDS EXEC PGM=IEBGENER
> //SYSPRINT DD SYSOUT=*
> //SYSIN DD DUMMY
> //SYSUT2 DD SYSOUT=(*,INTRDR)
> //SYSUT1 DD DATA,DLM='$$'
> /*$VS,'D A,L'
> /*$VS,'F CICS*,CEMT PER SHUT IMMED'
> $$
> 
> --
> John

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html



Re: EXEC PGM=??? to issue operator commands from the JCL stream?

2008-10-21 Thread Todd Burch
Thanks to everyone. 

I implemented Raymond's suggestion for // COMMAND 'blah' last night, and it
works great.  The unsynchronized behavior is fine for the immediate need at
hand.  I needed to refresh WLM.

John, do you have an example of an IEFBR14 job that would do this?  

I've used PGM=COMMAND before - I wasn't sure of the origin... probably the
CBTTAPE.

Again, thanks all.

Todd


> -Original Message-
> From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] On
> Behalf Of J R
> Sent: Tuesday, October 21, 2008 7:59 AM
> To: IBM-MAIN@BAMA.UA.EDU
> Subject: Re: EXEC PGM=??? to issue operator commands from the JCL stream?
> 
> It depends if you want the commands synchronized
> with a particular step, or not.
> 
> If you don't require step synchronization, you can
> simply include the commands in the JCL, either
> directly or as operands of the COMMAND statement.
> 
> However, if you do require step synchronization, you
> will need a program.  Check the CBT tape.
> 

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html



Re: EXEC PGM=??? to issue operator commands from the JCL stream?

2008-10-21 Thread John McKown
On Tue, 21 Oct 2008 08:58:36 -0400, J R <[EMAIL PROTECTED]> wrote:

>It depends if you want the commands synchronized 
>with a particular step, or not.  
> 
>If you don't require step synchronization, you can 
>simply include the commands in the JCL, either 
>directly or as operands of the COMMAND statement.  
> 
>However, if you do require step synchronization, you 
>will need a program.  Check the CBT tape.  
> 

The simplest way, but which requires that the INTRDR be set up correctly, is
to do something like:

//DOCMDS EXEC PGM=IEBGENER
//SYSPRINT DD SYSOUT=*
//SYSIN DD DUMMY
//SYSUT2 DD SYSOUT=(*,INTRDR)
//SYSUT1 DD DATA,DLM='$$'
/*$VS,'D A,L'
/*$VS,'F CICS*,CEMT PER SHUT IMMED'
$$

--
John

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html



Re: EXEC PGM=??? to issue operator commands from the JCL stream?

2008-10-21 Thread J R
It depends if you want the commands synchronized 
with a particular step, or not.  
 
If you don't require step synchronization, you can 
simply include the commands in the JCL, either 
directly or as operands of the COMMAND statement.  
 
However, if you do require step synchronization, you 
will need a program.  Check the CBT tape.  
 
> Date: Mon, 20 Oct 2008 19:09:47 -0500
> From: [EMAIL PROTECTED]
> Subject: EXEC PGM=??? to issue operator commands from the JCL stream?
> To: IBM-MAIN@BAMA.UA.EDU
> 
> What utility program (or proc) is available that will allow me to enter
> operator commands via a batch job? 
> 
> 
> 
> Thanks, Todd (trying to avoid writing one.) 
 
 
_
When your life is on the go—take your life with you.
http://clk.atdmt.com/MRT/go/115298558/direct/01/
--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html



Re: EXEC PGM=??? to issue operator commands from the JCL stream?

2008-10-21 Thread Jan MOEYERSONS
On Tue, 21 Oct 2008 08:00:53 -0400, Martinez, Frank J <[EMAIL PROTECTED]> 
wrote:

>I could send you the code for an old utility program that issues an operator 
command (no idea who wrote it, but it works like a charm.)

I am sure there is something on the CBT tape. 
Search http://cbttape.org for command and batch

Cheers,

Jantje.

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html



Re: EXEC PGM=??? to issue operator commands from the JCL stream?

2008-10-21 Thread Martinez, Frank J
I could send you the code for an old utility program that issues an operator 
command (no idea who wrote it, but it works like a charm.)

[EMAIL PROTECTED]

Frank

-Original Message-
From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] On Behalf Of Todd 
Burch
Sent: Monday, October 20, 2008 8:10 PM
To: IBM-MAIN@BAMA.UA.EDU
Subject: EXEC PGM=??? to issue operator commands from the JCL stream?

What utility program (or proc) is available that will allow me to enter
operator commands via a batch job?  

 

Thanks, Todd  (trying to avoid writing one.)  

 


--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html



Re: EXEC PGM=??? to issue operator commands from the JCL stream?

2008-10-21 Thread Chase, John
> -Original Message-
> From: IBM Mainframe Discussion List On Behalf Of Todd Burch
> 
> What utility program (or proc) is available that will allow me to
enter
> operator commands via a batch job?

We use IEFBR14.

-jc-

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html



Re: EXEC PGM=??? to issue operator commands from the JCL stream?

2008-10-20 Thread Raymond Noal
Todd,

You can use the 'COMMAND' JCL statement. See the JCL Reference manual.

EX:  //___COMMAND'S_VTAM'__comments (where underscores are blanks)

HITACHI
 DATA SYSTEMS 
Raymond E. Noal 
Senior Technical Engineer 
Office: (408) 970 - 7978 

-Original Message-
From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] On Behalf Of Todd 
Burch
Sent: Monday, October 20, 2008 5:10 PM
To: IBM-MAIN@BAMA.UA.EDU
Subject: EXEC PGM=??? to issue operator commands from the JCL stream?

What utility program (or proc) is available that will allow me to enter
operator commands via a batch job?  

 

Thanks, Todd  (trying to avoid writing one.)  

 


--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html