Re: Coding IF statement in BPXBATCH shell

2022-02-11 Thread David Crayford
I forgot to mention. The Co:Z toolkit also provides a plethora of useful 
shell utilities for copying files between the MVS file system and z/OS 
UNIX that blow away what IBM ship with the base OS. We use them 
extensively where I work and at my previous company. There is also the 
port of SFTP which supports MVS data sets and the JES spool. It also 
supports file tagging in the file system so I've dumped FTP for good.


On 12/2/22 10:02 am, David Crayford wrote:
My advice is not to use BPXBATCH, it's garbage! Run, don't walk, over 
to Dovetailed Softwares website and download their Co:Z toolkit. There 
is a batch utility called COZBATCH which allows you to run shell 
scripts from data sets, including inline JCL.


Co:Z toolkit is free with optional paid support.

https://dovetail.com/products/cozbatch.html


On 12/2/22 4:20 am, Billy Ashton wrote:
Hey everyone...I am having a tough time with a shell script I am 
writing for my BPXBATCH step. All I want to do is run one of two 
commands depending on a variable that is passed to the script.


I have tried coding
if [ "$pet" == "DOG" ] ; then
   commands...
else
   other commands
fi

and I have tried
if [[  ]]
if [ ... = ... ]

all with the same result:
+ DOG == DOG
DOG: /tmp/bpxshel.sh 48: FSUM7351 not found or
..: (I think these are the two square brackets) or
.: (this is the one square bracket)

So, how in the world do I code an IF statement in this BPXBATCH 
script to do a simple string compare?


Thank you and best regards,
Billy Ashton

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: Fwd: Log4j hearing: 'Open source is not the problem'

2022-02-11 Thread David Crayford

On 12/2/22 4:56 am, Radoslaw Skorupka wrote:

Well, who said it is not a problem???


I do. I maintain that proprietary code has just as many vulnerabilities 
as open source. In fact, I would suggest that open source code is better 
as the standard of engineer tends to be much higher than your average 
Joe coder working for a bank. Also, the code is in the open and can be 
scrutinized by millions of people. Who do you think develops open source 
software? Is it hobbyists, enthusiasts, students, academics etc? The 
truth is it's mostly engineers from big tech who are getting paid to 
develop open source. Check out the authors of Apache Commons components 
and it's IBMers 
https://github.com/apache/commons-bsf/blob/master/AUTHORS.txt. IBM were 
the organization that stumped up the cash and resources to develop 
Eclipse. A huge amount of Apache open source code is written and 
maintained by IBM and it's used extensively in their products.



It sounds like "open source is free of bugs". However I have never 
heard such claim.


Nobody is saying that. That would be ignorant and stupid. All software 
has bugs.



More: companies use some kind of whitelisting open source software. In 
many cases software developer is not allowed to use "fancy, shining 
code" just because there some requirements are on met. It can be 
community, reputation, maturity, etc.


How can a company whitelist open source software if they purchase a 
product from a vendor or IBM that uses open source? As our products are 
sold and marketed by IBM we provide them with a Certificate of 
Originality which is a bill of materials that lists all of the open 
source software (with versions) that we use. We scan all of our products 
as part of our DevOps pipeline. There are three types of scans:


SCA (Software Composition Analysis) detects open source libraries with 
known vulnerabilities. Also checks for license violations against 
policies such as forbidding GPL licensed software. It's interesting that 
nobody has posted about the JNDI vulnerability [1] found in the H2 
database which was similar to Log4Shell. As soon as the CVE was lodged 
our infosec team had scanned the Blackduck bill of materials data base 
and contacted all product owners that were using h2. A thread was also 
started in Slack so we could collaborate. SCA does not require source 
code. We use Blackduck.


SAST (Static Application Security Testing) scans source code and detects 
vulnerabilities in proprietary code, written in house. Shifts security 
left to detect vulnerabilities as early as possible. SAST scans provide 
a lot of false of false positives but it can find flaws. I regard it 
highly. We use Polaris.


DAST (Dynamic Application Security Testing) black box testing which can 
try to find vulnerabilities at runtime such as MITM attacks, SQL 
injection, DOM injection etc. We use Veracode.


Customers also scan our code using their tools. We took a case from a 
bank who had used Veracode to scan some of our HTTP client code and it 
discovered we were defaulting to TLSv1.1 for secure TCP connections. 
They wanted us to fix it to default to TLSV1.3, which we did.



[1] 
https://jfrog.com/blog/the-jndi-strikes-back-unauthenticated-rce-in-h2-database-console/




--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: Coding IF statement in BPXBATCH shell

2022-02-11 Thread Paul Gilmartin
On Sat, 12 Feb 2022 10:02:16 +0800, David Crayford  wrote:

>...  COZBATCH which allows you to run shell scripts from
>data sets, including inline JCL.
> 
Do you mean JCL in a here- document?  To what end?  Or
a script in an instream data set?

>Co:Z toolkit is free with optional paid support.
> 
Many IT admins deem deem that price unacceptable.

>https://dovetail.com/products/cozbatch.html
>
Less restrictive alternatives include AOPBATCH,
a component of the separately priced but popular
Infoprint and BPXWUNIX (Rexx driver required;
easier with z/OS 2.5 support of instream Rexx.)

-- 
gil

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: Coding IF statement in BPXBATCH shell

2022-02-11 Thread David Crayford
My advice is not to use BPXBATCH, it's garbage! Run, don't walk, over to 
Dovetailed Softwares website and download their Co:Z toolkit. There is a 
batch utility called COZBATCH which allows you to run shell scripts from 
data sets, including inline JCL.


Co:Z toolkit is free with optional paid support.

https://dovetail.com/products/cozbatch.html


On 12/2/22 4:20 am, Billy Ashton wrote:
Hey everyone...I am having a tough time with a shell script I am 
writing for my BPXBATCH step. All I want to do is run one of two 
commands depending on a variable that is passed to the script.


I have tried coding
if [ "$pet" == "DOG" ] ; then
   commands...
else
   other commands
fi

and I have tried
if [[  ]]
if [ ... = ... ]

all with the same result:
+ DOG == DOG
DOG: /tmp/bpxshel.sh 48: FSUM7351 not found or
..: (I think these are the two square brackets) or
.: (this is the one square bracket)

So, how in the world do I code an IF statement in this BPXBATCH script 
to do a simple string compare?


Thank you and best regards,
Billy Ashton

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: Coding IF statement in BPXBATCH shell

2022-02-11 Thread Paul Gilmartin
On Fri, 11 Feb 2022 23:03:08 +, Farley, Peter x23353 wrote:

>PMFJI, but isn't the shell script string equality compare operator a double 
>equal sign, "==", following the C convention?
>
No: 


-- 
gil

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: Coding IF statement in BPXBATCH shell

2022-02-11 Thread Farley, Peter x23353
PMFJI, but isn't the shell script string equality compare operator a double 
equal sign, "==", following the C convention?

-Original Message-
From: IBM Mainframe Discussion List  On Behalf Of 
Paul Gilmartin
Sent: Friday, February 11, 2022 5:51 PM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: Coding IF statement in BPXBATCH shell

On Fri, 11 Feb 2022 18:33:41 -0400, Kurt J. Quackenbush  wrote:
>
>Try like this:
>
>pet=dog;
>if [ $pet -eq "dog" ]; then
>
"-eq" compares numbers; "=" compares strings. Example:
537 $ [ 00042 -eq 42 ]; echo $?
0
538 $ [ 00042 =   42 ]; echo $?
1
539 $ 

And "$pet" needs to be quoted lest a user sneak in:
pet="Tasmanian Devil"

>  echo "feed dog";
>else
>  echo "feed cat";
>fi;

-- 


This message and any attachments are intended only for the use of the addressee 
and may contain information that is privileged and confidential. If the reader 
of the message is not the intended recipient or an authorized representative of 
the intended recipient, you are hereby notified that any dissemination of this 
communication is strictly prohibited. If you have received this communication 
in error, please notify us immediately by e-mail and delete the message and any 
attachments from your system.


--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: Coding IF statement in BPXBATCH shell

2022-02-11 Thread Paul Gilmartin
On Fri, 11 Feb 2022 18:33:41 -0400, Kurt J. Quackenbush  wrote:
>
>Try like this:
>
>pet=dog; 
>if [ $pet -eq "dog" ]; then
>
"-eq" compares numbers; "=" compares strings. Example:
537 $ [ 00042 -eq 42 ]; echo $?
0
538 $ [ 00042 =   42 ]; echo $?
1
539 $ 

And "$pet" needs to be quoted lest a user sneak in:
pet="Tasmanian Devil"

>  echo "feed dog"; 
>else 
>  echo "feed cat"; 
>fi; 

--
gil

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: Coding IF statement in BPXBATCH shell

2022-02-11 Thread Kurt J. Quackenbush
> Hey everyone...I am having a tough time with a shell script I am writing 

> for my BPXBATCH step. All I want to do is run one of two commands 
> depending on a variable that is passed to the script.
> 
> I have tried coding
> if [ "$pet" == "DOG" ] ; then
> commands...
> else
> other commands
> fi

Try like this:

pet=dog; 
if [ $pet -eq "dog" ]; then;
  echo "feed dog"; 
else 
  echo "feed cat"; 
fi; 

Kurt Quackenbush -- IBM, z/OS SMP/E and z/OSMF Software Management
Chuck Norris never uses CHECK when he applies PTFs.



--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: Coding IF statement in BPXBATCH shell

2022-02-11 Thread Paul Gilmartin
On Fri, 11 Feb 2022 20:20:04 +, Billy Ashton wrote:

>Hey everyone...I am having a tough time with a shell script I am writing 
>for my BPXBATCH step. All I want to do is run one of two commands 
>depending on a variable that is passed to the script.
>
(This might be more topical on MVS-OE.)
(You'd do better to test scripts interactively before introducing
the complexity of BPXBATCH.)

>I have tried coding
>if [ "$pet" == "DOG" ] ; then
>commands...
>else
>other commands
>fi
>
See:


My attempt:
536 $ cat comp
#! /bin/sh -x
if [ "DOG" = "$pet" ] ; then
echo commands...
else
echo other commands
fi
537 $ 
Results:
534 $ pet=DOG ./comp
comp 2+ '[' DOG = DOG ']'
comp 3+ echo commands...
commands...
535 $ 
535 $ pet=cat ./comp
comp 2+ '[' DOG = cat ']'
comp 5+ echo other commands
other commands
536 $ 

Pro tip:  Code the constant first lest the value of a variable
be mistaken for a prefix operator.

-- 
gil

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: Fwd: Log4j hearing: 'Open source is not the problem'

2022-02-11 Thread Radoslaw Skorupka

Well, who said it is not a problem???
It sounds like "open source is free of bugs". However I have never heard 
such claim.
More: companies use some kind of whitelisting open source software. In 
many cases software developer is not allowed to use "fancy, shining 
code" just because there some requirements are on met. It can be 
community, reputation, maturity, etc.



--
Radoslaw Skorupka
Lodz, Poland



W dniu 09.02.2022 o 20:24, Mark Regan pisze:

https://www.networkworld.com/article/3649003/log4j-hearing-open-source-is-not-the-problem.html

marktre...@gmail.com

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: Where is the DFPISMKD utility to run the DFPMKDIR EXEC?

2022-02-11 Thread Gibney, Dave
Agreed. Doing these and others the way I always have. PGM=IKJEFT1A  


> -Original Message-
> From: IBM Mainframe Discussion List  On
> Behalf Of Steve Smith
> Sent: Friday, February 11, 2022 12:37 PM
> To: IBM-MAIN@LISTSERV.UA.EDU
> Subject: Re: Where is the DFPISMKD utility to run the DFPMKDIR EXEC?
> 
> Both are members of SYS1.SAMPLIB.  Calling DFPISMKD a "utility" is pretty
> far reach.
> 
> sas
> 
> --
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: Where is the DFPISMKD utility to run the DFPMKDIR EXEC?

2022-02-11 Thread Steve Smith
Both are members of SYS1.SAMPLIB.  Calling DFPISMKD a "utility" is pretty
far reach.

sas

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: Where is the DFPISMKD utility to run the DFPMKDIR EXEC?

2022-02-11 Thread Carmen Vitullo
Dave, Usually I find the scripts in the SMP MTS IIRC if not in the PTS, 
I was in the same place you were, since they provided both options I 
opted for the easy route :)


On 2/11/2022 2:34 PM, Gibney, Dave wrote:

About to do that 


-Original Message-
From: IBM Mainframe Discussion List  On
Behalf Of Carmen Vitullo
Sent: Friday, February 11, 2022 12:32 PM
To:IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: Where is the DFPISMKD utility to run the DFPMKDIR EXEC?

I've had to do this, I just created them by hand with the correct
permissions

Carmen

On 2/11/2022 2:26 PM, Gibney, Dave wrote:

Probably something new in the new zOMF fun world?


This support requires that the following directories be created
prior to applying this PTF. This can be done either by executing
the DFPISMKD utility to run the DFPMKDIR EXEC from an SMP/E
temporary directory, or by issuing the appropriate mkdir command
to create the directories and then issuing chmod to set the
directory permissions to 755. See the DFPISMKD utility for more
information.

/usr/lpp/dfsms/gdk
/usr/lpp/dfsms/gdk/providers
/usr/lpp/dfsms/gdk/samples
/usr/lpp/dfsms/gdk/samples/providers

This support requires that the following directories be created
   prior to applying this PTF. This can be done either by executing
   the DFPISMKD utility to run the DFPMKDIR EXEC from an SMP/E
   temporary directory, or by issuing the appropriate mkdir command
   to create the directories and then issuing chmod to set the
   directory permissions to 755. See the DFPISMKD utility for more
   information.

   /usr/lpp/dfsms/hsm/config/
   /usr/lpp/dfsms/hsm/var/
   /usr/lpp/dfsms/hsm/samples/
   /usr/lpp/dfsms/hsm/IBM/

   /usr/lpp/dfsms/dss/config/
   /usr/lpp/dfsms/dss/var/
   /usr/lpp/dfsms/dss/samples/
   /usr/lpp/dfsms/dss/IBM/



Dave Gibney
Information Technology Services
Washington State University


--
For IBM-MAIN subscribe / signoff / archive access instructions,
send emailtolists...@listserv.ua.edu   with the message: INFO IBM-MAIN



--
/I am not bound to win, but I am bound to be true. I am not bound to
succeed, but I am bound to live by the light that I have. I must stand
with anybody that stands right, and stand with him while he is right,
and part with him when he goes wrong. *Abraham Lincoln*/

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email tolists...@listserv.ua.edu  with the message: INFO IBM-MAIN

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email tolists...@listserv.ua.edu  with the message: INFO IBM-MAIN



--
/I am not bound to win, but I am bound to be true. I am not bound to 
succeed, but I am bound to live by the light that I have. I must stand 
with anybody that stands right, and stand with him while he is right, 
and part with him when he goes wrong. *Abraham Lincoln*/


--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: Where is the DFPISMKD utility to run the DFPMKDIR EXEC?

2022-02-11 Thread Gibney, Dave
About to do that 

> -Original Message-
> From: IBM Mainframe Discussion List  On
> Behalf Of Carmen Vitullo
> Sent: Friday, February 11, 2022 12:32 PM
> To: IBM-MAIN@LISTSERV.UA.EDU
> Subject: Re: Where is the DFPISMKD utility to run the DFPMKDIR EXEC?
> 
> I've had to do this, I just created them by hand with the correct
> permissions
> 
> Carmen
> 
> On 2/11/2022 2:26 PM, Gibney, Dave wrote:
> > Probably something new in the new zOMF fun world?
> >
> >
> > This support requires that the following directories be created
> > prior to applying this PTF. This can be done either by executing
> > the DFPISMKD utility to run the DFPMKDIR EXEC from an SMP/E
> > temporary directory, or by issuing the appropriate mkdir command
> > to create the directories and then issuing chmod to set the
> > directory permissions to 755. See the DFPISMKD utility for more
> > information.
> >
> > /usr/lpp/dfsms/gdk
> > /usr/lpp/dfsms/gdk/providers
> > /usr/lpp/dfsms/gdk/samples
> > /usr/lpp/dfsms/gdk/samples/providers
> >
> > This support requires that the following directories be created
> >   prior to applying this PTF. This can be done either by executing
> >   the DFPISMKD utility to run the DFPMKDIR EXEC from an SMP/E
> >   temporary directory, or by issuing the appropriate mkdir command
> >   to create the directories and then issuing chmod to set the
> >   directory permissions to 755. See the DFPISMKD utility for more
> >   information.
> >
> >   /usr/lpp/dfsms/hsm/config/
> >   /usr/lpp/dfsms/hsm/var/
> >   /usr/lpp/dfsms/hsm/samples/
> >   /usr/lpp/dfsms/hsm/IBM/
> >
> >   /usr/lpp/dfsms/dss/config/
> >   /usr/lpp/dfsms/dss/var/
> >   /usr/lpp/dfsms/dss/samples/
> >   /usr/lpp/dfsms/dss/IBM/
> >
> >
> >
> > Dave Gibney
> > Information Technology Services
> > Washington State University
> >
> >
> > --
> > For IBM-MAIN subscribe / signoff / archive access instructions,
> > send email tolists...@listserv.ua.edu  with the message: INFO IBM-MAIN
> >
> >
> --
> /I am not bound to win, but I am bound to be true. I am not bound to
> succeed, but I am bound to live by the light that I have. I must stand
> with anybody that stands right, and stand with him while he is right,
> and part with him when he goes wrong. *Abraham Lincoln*/
> 
> --
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: Where is the DFPISMKD utility to run the DFPMKDIR EXEC?

2022-02-11 Thread Carmen Vitullo
I've had to do this, I just created them by hand with the correct 
permissions


Carmen

On 2/11/2022 2:26 PM, Gibney, Dave wrote:

Probably something new in the new zOMF fun world?


This support requires that the following directories be created
prior to applying this PTF. This can be done either by executing
the DFPISMKD utility to run the DFPMKDIR EXEC from an SMP/E
temporary directory, or by issuing the appropriate mkdir command
to create the directories and then issuing chmod to set the
directory permissions to 755. See the DFPISMKD utility for more
information.

/usr/lpp/dfsms/gdk
/usr/lpp/dfsms/gdk/providers
/usr/lpp/dfsms/gdk/samples
/usr/lpp/dfsms/gdk/samples/providers

This support requires that the following directories be created
  prior to applying this PTF. This can be done either by executing
  the DFPISMKD utility to run the DFPMKDIR EXEC from an SMP/E
  temporary directory, or by issuing the appropriate mkdir command
  to create the directories and then issuing chmod to set the
  directory permissions to 755. See the DFPISMKD utility for more
  information.

  /usr/lpp/dfsms/hsm/config/
  /usr/lpp/dfsms/hsm/var/
  /usr/lpp/dfsms/hsm/samples/
  /usr/lpp/dfsms/hsm/IBM/

  /usr/lpp/dfsms/dss/config/
  /usr/lpp/dfsms/dss/var/
  /usr/lpp/dfsms/dss/samples/
  /usr/lpp/dfsms/dss/IBM/



Dave Gibney
Information Technology Services
Washington State University


--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email tolists...@listserv.ua.edu  with the message: INFO IBM-MAIN



--
/I am not bound to win, but I am bound to be true. I am not bound to 
succeed, but I am bound to live by the light that I have. I must stand 
with anybody that stands right, and stand with him while he is right, 
and part with him when he goes wrong. *Abraham Lincoln*/


--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Where is the DFPISMKD utility to run the DFPMKDIR EXEC?

2022-02-11 Thread Gibney, Dave
Probably something new in the new zOMF fun world?


This support requires that the following directories be created
prior to applying this PTF. This can be done either by executing
the DFPISMKD utility to run the DFPMKDIR EXEC from an SMP/E
temporary directory, or by issuing the appropriate mkdir command
to create the directories and then issuing chmod to set the
directory permissions to 755. See the DFPISMKD utility for more
information.

/usr/lpp/dfsms/gdk
/usr/lpp/dfsms/gdk/providers
/usr/lpp/dfsms/gdk/samples
/usr/lpp/dfsms/gdk/samples/providers

This support requires that the following directories be created
 prior to applying this PTF. This can be done either by executing
 the DFPISMKD utility to run the DFPMKDIR EXEC from an SMP/E
 temporary directory, or by issuing the appropriate mkdir command
 to create the directories and then issuing chmod to set the
 directory permissions to 755. See the DFPISMKD utility for more
 information.

 /usr/lpp/dfsms/hsm/config/
 /usr/lpp/dfsms/hsm/var/
 /usr/lpp/dfsms/hsm/samples/
 /usr/lpp/dfsms/hsm/IBM/

 /usr/lpp/dfsms/dss/config/
 /usr/lpp/dfsms/dss/var/
 /usr/lpp/dfsms/dss/samples/
 /usr/lpp/dfsms/dss/IBM/



Dave Gibney
Information Technology Services
Washington State University


--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Coding IF statement in BPXBATCH shell

2022-02-11 Thread Billy Ashton
Hey everyone...I am having a tough time with a shell script I am writing 
for my BPXBATCH step. All I want to do is run one of two commands 
depending on a variable that is passed to the script.


I have tried coding
if [ "$pet" == "DOG" ] ; then
   commands...
else
   other commands
fi

and I have tried
if [[  ]]
if [ ... = ... ]

all with the same result:
+ DOG == DOG
DOG: /tmp/bpxshel.sh 48: FSUM7351 not found or
..: (I think these are the two square brackets) or
.: (this is the one square bracket)

So, how in the world do I code an IF statement in this BPXBATCH script 
to do a simple string compare?


Thank you and best regards,
Billy Ashton

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Fwd: Tutorial to start Zowe in Kubernetes - Open Mainframe Project

2022-02-11 Thread Mark Regan
Just FYI.

https://www.openmainframeproject.org/blog/2022/02/11/tutorial-to-start-zowe-
in-kubernetes 

Regards,

Mark Regan, K8MTR General, EN80tg
CTO1 USNR-Retired (1969-1991)
Nationwide Insurance, Retired, 1986-2017
z/OS Network Software Consultant (z NetView, z/OS Communications Server)
Contractor, Checks & Balances, Inc.
Email: marktre...@gmail.com  
LinkedIn:  https://www.linkedin.com/in/mark-t-regan

 

 


--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Just FYI: Happy Free and Open Source Software Month | NSA

2022-02-11 Thread Mark Regan
As seen on FB today:

 

“At NSA, we want every American to be able to strengthen their own networks and 
systems. When our tech experts develop software capable of protecting critical 
U.S. information from cyberattacks that can also be used on a smaller scale, we 
share it. Happy Free and Open Source Software Month!”

 

https://code.nsa.gov

 

​Regards,

Mark Regan, K8MTR General, EN80tg
CTO1 USNR-Retired (1969-1991)
Nationwide Insurance, Retired, 1986-2017
z/OS Network Software Consultant (z NetView, z/OS Communications Server)
Contractor, Checks & Balances, Inc.
Email:   marktre...@gmail.com
LinkedIn:    
https://www.linkedin.com/in/mark-t-regan

 


--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: CICS/TS 4.1 3270 question

2022-02-11 Thread John McKown
On Fri, Feb 11, 2022, 13:17 Wendell Lovewell <
01e9c0ee0673-dmarc-requ...@listserv.ua.edu> wrote:

> Hi John.
>
> I'd look a different direction myself.  "All of a sudden" implies to me
> that something changed.  So...what changed?
>
> If nothing changed on the host, I'd maybe investigate to see if an
> automatic (or otherwise) update has happened on the PC emulator.
>

That's what I'm thinking now. Optum updates our "locked" laptops without
warning.


> Just my 2 cents.
>
> Wendell
>
> --
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
>

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: CICS/TS 4.1 3270 question

2022-02-11 Thread Wendell Lovewell
Hi John. 

I'd look a different direction myself.  "All of a sudden" implies to me that 
something changed.  So...what changed?  

If nothing changed on the host, I'd maybe investigate to see if an automatic 
(or otherwise) update has happened on the PC emulator.

Just my 2 cents.

Wendell

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: Batch job elapsed time baseline and alerts

2022-02-11 Thread Wayne Bickerdike
I wrote something using SDSF REXX. It was a batch job that ran at intervals
and looked for any active job and grabbed the start time and compared it to
current time.  For non production it issued an MVS cancel. For production
it would send a WTO. The overhead was quite low.

On Sat, Feb 12, 2022, 03:55 Carmen Vitullo  wrote:

> I was thinking along those lines also, I know CA-7, based on prior run
> time can mark jobs LATE, I was not sure if the OP was wanting an alert
> for all batch jobs or scheduled job, which would make more sense, to
> alert for all batch jobs, you have to assume a jobname standard all the
> time and the same jobname used for the same program, process...it gets
> to be a mess.
>
> Carmen
>
> On 2/11/2022 10:47 AM, PINION, RICHARD W. wrote:
> > I think some automated schedulers will provide this kind of
> notification.  We use Zeke, and
> > our operators are notified when a job has not started, or is running too
> long.
> >
> > -Original Message-
> > From: IBM Mainframe Discussion List  On
> Behalf Of Rob Scott
> > Sent: Friday, February 11, 2022 11:41 AM
> > To:IBM-MAIN@LISTSERV.UA.EDU
> > Subject: Re: Batch job elapsed time baseline and alerts
> >
> > [External Email. Exercise caution when clicking links or opening
> attachments.]
> >
> > Rather than maintaining some sort of historical database, you could
> consider putting the "estimated elapsed time" responsibility back on the
> submitter/owner of the job.
> >
> > A cheap and cheerful solution could be something like :
> >
> > (1) Agree a local naming convention for the "UJOBCORR" keyword on the
> jobcard to place the job into an elapsed time bucket.
> > (2) Periodically examine the active jobs and compare elapsed time with
> the UJOBCORR value (if present) and issue warnings if not within the bucket
> time range.
> >
> > You could get the information for (2) easily using SDSF REXX
> >
> > Rob Scott
> > Rocket Software
> >
> >
> > -Original Message-
> > From: IBM Mainframe Discussion List  On
> Behalf Of Jantje.
> > Sent: 11 February 2022 16:19
> > To:IBM-MAIN@LISTSERV.UA.EDU
> > Subject: Batch job elapsed time baseline and alerts
> >
> > EXTERNAL EMAIL
> >
> >
> >
> >
> >
> > Esteemed listers,
> >
> > I have been tasked to put a procedure in place that will generate an
> alert when a batch job "takes longer than usual" to complete. Yes, I know,
> that is a rather vaguely stated requirement...
> >
> > I know I can find figures about the elapsed time of a batch job in one
> of the SMF records. I think I can build a database of historic runtimes and
> with a bit of thought, I am sure I can come up with a query that will list
> me the "outliers".
> >
> > But in order to generate an alert when a job takes too long, I will need
> some mechanism that gives me the information about that job while it is
> still running. And while I could perhaps interrogate the system (although I
> don't have a clear idea on how to actually do that) every so often about
> the running jobs and compare the time taken of each running job to the
> database, I am afraid that would take far too much resources. Indeed, with
> several hundreds if not thousands jobs running at any give time, the task
> of getting all the figures of these running jobs and comparing this to the
> database will definitely not be cheap in system resources.
> >
> > We don't have any budget for vendor products, I am afraid...
> >
> > And we're short of MSU's...
> >
> > Any suggestions?
> >
> > Thanks and very best regards,
> >
> > Jantje.
> >
> > --
> > For IBM-MAIN subscribe / signoff / archive access instructions, send
> email tolists...@listserv.ua.edu  with the message: INFO IBM-MAIN
> >
> > 
> > Rocket Software, Inc. and subsidiaries ■ 77 Fourth Avenue, Waltham MA
> 02451 ■ Main Office Toll Free Number: +1 855.577.4323 Contact Customer
> Support:
> https://urldefense.com/v3/__https://my.rocketsoftware.com/RocketCommunity/RCEmailSupport__;!!HnnddUIWDII9UQ!HD6WAgeJugsuU-Sc3Ff4fpqFa84_kwstTEwbxnEjK8fCfs0KnZEaptF4E7DTAl3PJWQ$
> > Unsubscribe from Marketing Messages/Manage Your Subscription Preferences
> -
> https://urldefense.com/v3/__http://www.rocketsoftware.com/manage-your-email-preferences__;!!HnnddUIWDII9UQ!HD6WAgeJugsuU-Sc3Ff4fpqFa84_kwstTEwbxnEjK8fCfs0KnZEaptF4E7DTk-uPid0$
> > Privacy Policy -
> https://urldefense.com/v3/__http://www.rocketsoftware.com/company/legal/privacy-policy__;!!HnnddUIWDII9UQ!HD6WAgeJugsuU-Sc3Ff4fpqFa84_kwstTEwbxnEjK8fCfs0KnZEaptF4E7DTSy_-Ab8$
> > 
> >
> > This communication and any attachments may contain confidential
> information of Rocket Software, Inc. All unauthorized use, disclosure or
> distribution is prohibited. If you are not the intended recipient, please
> notify Rocket Software immediately and destroy all copies of this
> communication. Thank you.
> >
> > 

Re: EXTERNAL: Re: Batch job elapsed time baseline and alerts

2022-02-11 Thread Usher, Darrold
Do you have a production batch job scheduling package (CA-7, Control-M) that 
tracks job execution history that you can compare against? 

-Original Message-
From: IBM Mainframe Discussion List  On Behalf Of Joe 
Monk
Sent: Friday, February 11, 2022 10:25 AM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: EXTERNAL: Re: Batch job elapsed time baseline and alerts

Thats what job management is for.

SMF records 30 contain job elapsed time.

Joe

On Fri, Feb 11, 2022 at 10:19 AM Jantje. < 
033acf17e42f-dmarc-requ...@listserv.ua.edu> wrote:

> Esteemed listers,
>
> I have been tasked to put a procedure in place that will generate an 
> alert when a batch job "takes longer than usual" to complete. Yes, I 
> know, that is a rather vaguely stated requirement...
>
> I know I can find figures about the elapsed time of a batch job in one 
> of the SMF records. I think I can build a database of historic 
> runtimes and with a bit of thought, I am sure I can come up with a 
> query that will list me the "outliers".
>
> But in order to generate an alert when a job takes too long, I will 
> need some mechanism that gives me the information about that job while 
> it is still running. And while I could perhaps interrogate the system 
> (although I don't have a clear idea on how to actually do that) every 
> so often about the running jobs and compare the time taken of each 
> running job to the database, I am afraid that would take far too much 
> resources. Indeed, with several hundreds if not thousands jobs running 
> at any give time, the task of getting all the figures of these running 
> jobs and comparing this to the database will definitely not be cheap in 
> system resources.
>
> We don't have any budget for vendor products, I am afraid...
>
> And we're short of MSU's...
>
> Any suggestions?
>
> Thanks and very best regards,
>
> Jantje.
>
> --
> For IBM-MAIN subscribe / signoff / archive access instructions, send 
> email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
>

--
For IBM-MAIN subscribe / signoff / archive access instructions, send email to 
lists...@listserv.ua.edu with the message: INFO IBM-MAIN

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: Batch job elapsed time baseline and alerts

2022-02-11 Thread Carmen Vitullo
I was thinking along those lines also, I know CA-7, based on prior run 
time can mark jobs LATE, I was not sure if the OP was wanting an alert 
for all batch jobs or scheduled job, which would make more sense, to 
alert for all batch jobs, you have to assume a jobname standard all the 
time and the same jobname used for the same program, process...it gets 
to be a mess.


Carmen

On 2/11/2022 10:47 AM, PINION, RICHARD W. wrote:

I think some automated schedulers will provide this kind of notification.  We 
use Zeke, and
our operators are notified when a job has not started, or is running too long.

-Original Message-
From: IBM Mainframe Discussion List  On Behalf Of Rob 
Scott
Sent: Friday, February 11, 2022 11:41 AM
To:IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: Batch job elapsed time baseline and alerts

[External Email. Exercise caution when clicking links or opening attachments.]

Rather than maintaining some sort of historical database, you could consider putting the 
"estimated elapsed time" responsibility back on the submitter/owner of the job.

A cheap and cheerful solution could be something like :

(1) Agree a local naming convention for the "UJOBCORR" keyword on the jobcard 
to place the job into an elapsed time bucket.
(2) Periodically examine the active jobs and compare elapsed time with the 
UJOBCORR value (if present) and issue warnings if not within the bucket time 
range.

You could get the information for (2) easily using SDSF REXX

Rob Scott
Rocket Software


-Original Message-
From: IBM Mainframe Discussion List  On Behalf Of 
Jantje.
Sent: 11 February 2022 16:19
To:IBM-MAIN@LISTSERV.UA.EDU
Subject: Batch job elapsed time baseline and alerts

EXTERNAL EMAIL





Esteemed listers,

I have been tasked to put a procedure in place that will generate an alert when a batch 
job "takes longer than usual" to complete. Yes, I know, that is a rather 
vaguely stated requirement...

I know I can find figures about the elapsed time of a batch job in one of the SMF 
records. I think I can build a database of historic runtimes and with a bit of thought, I 
am sure I can come up with a query that will list me the "outliers".

But in order to generate an alert when a job takes too long, I will need some 
mechanism that gives me the information about that job while it is still 
running. And while I could perhaps interrogate the system (although I don't 
have a clear idea on how to actually do that) every so often about the running 
jobs and compare the time taken of each running job to the database, I am 
afraid that would take far too much resources. Indeed, with several hundreds if 
not thousands jobs running at any give time, the task of getting all the 
figures of these running jobs and comparing this to the database will 
definitely not be cheap in system resources.

We don't have any budget for vendor products, I am afraid...

And we're short of MSU's...

Any suggestions?

Thanks and very best regards,

Jantje.

--
For IBM-MAIN subscribe / signoff / archive access instructions, send email 
tolists...@listserv.ua.edu  with the message: INFO IBM-MAIN


Rocket Software, Inc. and subsidiaries ■ 77 Fourth Avenue, Waltham MA 02451 ■ 
Main Office Toll Free Number: +1 855.577.4323 Contact Customer 
Support:https://urldefense.com/v3/__https://my.rocketsoftware.com/RocketCommunity/RCEmailSupport__;!!HnnddUIWDII9UQ!HD6WAgeJugsuU-Sc3Ff4fpqFa84_kwstTEwbxnEjK8fCfs0KnZEaptF4E7DTAl3PJWQ$
Unsubscribe from Marketing Messages/Manage Your Subscription Preferences 
-https://urldefense.com/v3/__http://www.rocketsoftware.com/manage-your-email-preferences__;!!HnnddUIWDII9UQ!HD6WAgeJugsuU-Sc3Ff4fpqFa84_kwstTEwbxnEjK8fCfs0KnZEaptF4E7DTk-uPid0$
Privacy Policy 
-https://urldefense.com/v3/__http://www.rocketsoftware.com/company/legal/privacy-policy__;!!HnnddUIWDII9UQ!HD6WAgeJugsuU-Sc3Ff4fpqFa84_kwstTEwbxnEjK8fCfs0KnZEaptF4E7DTSy_-Ab8$


This communication and any attachments may contain confidential information of 
Rocket Software, Inc. All unauthorized use, disclosure or distribution is 
prohibited. If you are not the intended recipient, please notify Rocket 
Software immediately and destroy all copies of this communication. Thank you.

--
For IBM-MAIN subscribe / signoff / archive access instructions, send email 
tolists...@listserv.ua.edu  with the message: INFO IBM-MAIN
Confidentiality notice:
This e-mail message, including any attachments, may contain legally privileged 
and/or confidential information. If you are not the intended recipient(s), or 
the employee or agent responsible for delivery of this message to the intended 
recipient(s), you are hereby notified that any dissemination, distribution, or 
copying of this e-mail message is strictly prohibited. If you have received 
this message in error, please 

Re: Batch job elapsed time baseline and alerts

2022-02-11 Thread PINION, RICHARD W.
I think some automated schedulers will provide this kind of notification.  We 
use Zeke, and
our operators are notified when a job has not started, or is running too long.

-Original Message-
From: IBM Mainframe Discussion List  On Behalf Of Rob 
Scott
Sent: Friday, February 11, 2022 11:41 AM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: Batch job elapsed time baseline and alerts

[External Email. Exercise caution when clicking links or opening attachments.]

Rather than maintaining some sort of historical database, you could consider 
putting the "estimated elapsed time" responsibility back on the submitter/owner 
of the job.

A cheap and cheerful solution could be something like :

(1) Agree a local naming convention for the "UJOBCORR" keyword on the jobcard 
to place the job into an elapsed time bucket.
(2) Periodically examine the active jobs and compare elapsed time with the 
UJOBCORR value (if present) and issue warnings if not within the bucket time 
range.

You could get the information for (2) easily using SDSF REXX

Rob Scott
Rocket Software


-Original Message-
From: IBM Mainframe Discussion List  On Behalf Of 
Jantje.
Sent: 11 February 2022 16:19
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Batch job elapsed time baseline and alerts

EXTERNAL EMAIL





Esteemed listers,

I have been tasked to put a procedure in place that will generate an alert when 
a batch job "takes longer than usual" to complete. Yes, I know, that is a 
rather vaguely stated requirement...

I know I can find figures about the elapsed time of a batch job in one of the 
SMF records. I think I can build a database of historic runtimes and with a bit 
of thought, I am sure I can come up with a query that will list me the 
"outliers".

But in order to generate an alert when a job takes too long, I will need some 
mechanism that gives me the information about that job while it is still 
running. And while I could perhaps interrogate the system (although I don't 
have a clear idea on how to actually do that) every so often about the running 
jobs and compare the time taken of each running job to the database, I am 
afraid that would take far too much resources. Indeed, with several hundreds if 
not thousands jobs running at any give time, the task of getting all the 
figures of these running jobs and comparing this to the database will 
definitely not be cheap in system resources.

We don't have any budget for vendor products, I am afraid...

And we're short of MSU's...

Any suggestions?

Thanks and very best regards,

Jantje.

--
For IBM-MAIN subscribe / signoff / archive access instructions, send email to 
lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Rocket Software, Inc. and subsidiaries ■ 77 Fourth Avenue, Waltham MA 02451 ■ 
Main Office Toll Free Number: +1 855.577.4323 Contact Customer Support: 
https://urldefense.com/v3/__https://my.rocketsoftware.com/RocketCommunity/RCEmailSupport__;!!HnnddUIWDII9UQ!HD6WAgeJugsuU-Sc3Ff4fpqFa84_kwstTEwbxnEjK8fCfs0KnZEaptF4E7DTAl3PJWQ$
Unsubscribe from Marketing Messages/Manage Your Subscription Preferences - 
https://urldefense.com/v3/__http://www.rocketsoftware.com/manage-your-email-preferences__;!!HnnddUIWDII9UQ!HD6WAgeJugsuU-Sc3Ff4fpqFa84_kwstTEwbxnEjK8fCfs0KnZEaptF4E7DTk-uPid0$
Privacy Policy - 
https://urldefense.com/v3/__http://www.rocketsoftware.com/company/legal/privacy-policy__;!!HnnddUIWDII9UQ!HD6WAgeJugsuU-Sc3Ff4fpqFa84_kwstTEwbxnEjK8fCfs0KnZEaptF4E7DTSy_-Ab8$


This communication and any attachments may contain confidential information of 
Rocket Software, Inc. All unauthorized use, disclosure or distribution is 
prohibited. If you are not the intended recipient, please notify Rocket 
Software immediately and destroy all copies of this communication. Thank you.

--
For IBM-MAIN subscribe / signoff / archive access instructions, send email to 
lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Confidentiality notice: 
This e-mail message, including any attachments, may contain legally privileged 
and/or confidential information. If you are not the intended recipient(s), or 
the employee or agent responsible for delivery of this message to the intended 
recipient(s), you are hereby notified that any dissemination, distribution, or 
copying of this e-mail message is strictly prohibited. If you have received 
this message in error, please immediately notify the sender and delete this 
e-mail message from your computer.


--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: Batch job elapsed time baseline and alerts

2022-02-11 Thread Rob Scott
Rather than maintaining some sort of historical database, you could consider 
putting the "estimated elapsed time" responsibility back on the submitter/owner 
of the job.

A cheap and cheerful solution could be something like :

(1) Agree a local naming convention for the "UJOBCORR" keyword on the jobcard 
to place the job into an elapsed time bucket.
(2) Periodically examine the active jobs and compare elapsed time with the 
UJOBCORR value (if present) and issue warnings if not within the bucket time 
range.

You could get the information for (2) easily using SDSF REXX

Rob Scott
Rocket Software


-Original Message-
From: IBM Mainframe Discussion List  On Behalf Of 
Jantje.
Sent: 11 February 2022 16:19
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Batch job elapsed time baseline and alerts

EXTERNAL EMAIL





Esteemed listers,

I have been tasked to put a procedure in place that will generate an alert when 
a batch job "takes longer than usual" to complete. Yes, I know, that is a 
rather vaguely stated requirement...

I know I can find figures about the elapsed time of a batch job in one of the 
SMF records. I think I can build a database of historic runtimes and with a bit 
of thought, I am sure I can come up with a query that will list me the 
"outliers".

But in order to generate an alert when a job takes too long, I will need some 
mechanism that gives me the information about that job while it is still 
running. And while I could perhaps interrogate the system (although I don't 
have a clear idea on how to actually do that) every so often about the running 
jobs and compare the time taken of each running job to the database, I am 
afraid that would take far too much resources. Indeed, with several hundreds if 
not thousands jobs running at any give time, the task of getting all the 
figures of these running jobs and comparing this to the database will 
definitely not be cheap in system resources.

We don't have any budget for vendor products, I am afraid...

And we're short of MSU's...

Any suggestions?

Thanks and very best regards,

Jantje.

--
For IBM-MAIN subscribe / signoff / archive access instructions, send email to 
lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Rocket Software, Inc. and subsidiaries ■ 77 Fourth Avenue, Waltham MA 02451 ■ 
Main Office Toll Free Number: +1 855.577.4323
Contact Customer Support: 
https://my.rocketsoftware.com/RocketCommunity/RCEmailSupport
Unsubscribe from Marketing Messages/Manage Your Subscription Preferences - 
http://www.rocketsoftware.com/manage-your-email-preferences
Privacy Policy - http://www.rocketsoftware.com/company/legal/privacy-policy


This communication and any attachments may contain confidential information of 
Rocket Software, Inc. All unauthorized use, disclosure or distribution is 
prohibited. If you are not the intended recipient, please notify Rocket 
Software immediately and destroy all copies of this communication. Thank you.

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: Batch job elapsed time baseline and alerts

2022-02-11 Thread Carmen Vitullo
Joe's suggestion would be the easiest and if you have MXG your JOBS.DB 
can be used to query prior or average elapsed times, do some compare and 
use your automation system, like CA-OPS, in my case to send an alert 
based on that compare


just thinking off the top of my head.

Carmen

On 2/11/2022 10:19 AM, Jantje. wrote:

Esteemed listers,

I have been tasked to put a procedure in place that will generate an alert when a batch 
job "takes longer than usual" to complete. Yes, I know, that is a rather 
vaguely stated requirement...

I know I can find figures about the elapsed time of a batch job in one of the SMF 
records. I think I can build a database of historic runtimes and with a bit of thought, I 
am sure I can come up with a query that will list me the "outliers".

But in order to generate an alert when a job takes too long, I will need some 
mechanism that gives me the information about that job while it is still 
running. And while I could perhaps interrogate the system (although I don't 
have a clear idea on how to actually do that) every so often about the running 
jobs and compare the time taken of each running job to the database, I am 
afraid that would take far too much resources. Indeed, with several hundreds if 
not thousands jobs running at any give time, the task of getting all the 
figures of these running jobs and comparing this to the database will 
definitely not be cheap in system resources.

We don't have any budget for vendor products, I am afraid...

And we're short of MSU's...

Any suggestions?

Thanks and very best regards,

Jantje.

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email tolists...@listserv.ua.edu  with the message: INFO IBM-MAIN



--
/I am not bound to win, but I am bound to be true. I am not bound to 
succeed, but I am bound to live by the light that I have. I must stand 
with anybody that stands right, and stand with him while he is right, 
and part with him when he goes wrong. *Abraham Lincoln*/


--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: Batch job elapsed time baseline and alerts

2022-02-11 Thread Joe Monk
Thats what job management is for.

SMF records 30 contain job elapsed time.

Joe

On Fri, Feb 11, 2022 at 10:19 AM Jantje. <
033acf17e42f-dmarc-requ...@listserv.ua.edu> wrote:

> Esteemed listers,
>
> I have been tasked to put a procedure in place that will generate an alert
> when a batch job "takes longer than usual" to complete. Yes, I know, that
> is a rather vaguely stated requirement...
>
> I know I can find figures about the elapsed time of a batch job in one of
> the SMF records. I think I can build a database of historic runtimes and
> with a bit of thought, I am sure I can come up with a query that will list
> me the "outliers".
>
> But in order to generate an alert when a job takes too long, I will need
> some mechanism that gives me the information about that job while it is
> still running. And while I could perhaps interrogate the system (although I
> don't have a clear idea on how to actually do that) every so often about
> the running jobs and compare the time taken of each running job to the
> database, I am afraid that would take far too much resources. Indeed, with
> several hundreds if not thousands jobs running at any give time, the task
> of getting all the figures of these running jobs and comparing this to the
> database will definitely not be cheap in system resources.
>
> We don't have any budget for vendor products, I am afraid...
>
> And we're short of MSU's...
>
> Any suggestions?
>
> Thanks and very best regards,
>
> Jantje.
>
> --
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
>

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Batch job elapsed time baseline and alerts

2022-02-11 Thread Jantje.
Esteemed listers,

I have been tasked to put a procedure in place that will generate an alert when 
a batch job "takes longer than usual" to complete. Yes, I know, that is a 
rather vaguely stated requirement...

I know I can find figures about the elapsed time of a batch job in one of the 
SMF records. I think I can build a database of historic runtimes and with a bit 
of thought, I am sure I can come up with a query that will list me the 
"outliers".

But in order to generate an alert when a job takes too long, I will need some 
mechanism that gives me the information about that job while it is still 
running. And while I could perhaps interrogate the system (although I don't 
have a clear idea on how to actually do that) every so often about the running 
jobs and compare the time taken of each running job to the database, I am 
afraid that would take far too much resources. Indeed, with several hundreds if 
not thousands jobs running at any give time, the task of getting all the 
figures of these running jobs and comparing this to the database will 
definitely not be cheap in system resources.

We don't have any budget for vendor products, I am afraid...

And we're short of MSU's...

Any suggestions?

Thanks and very best regards,

Jantje.

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


ICSF - crypto # to PCHID relationship

2022-02-11 Thread Radoslaw Skorupka
Every CryptoExpress engine has two identifiers: PCHID and number used in 
ICSF panels.

Both identifiers can be seen in SE.
PCHID number is not available in ICSF (why???)

However I'm wondering how the crypto numbers are assigned.
PCHID - it is determined by location of the card, as well as FICON or OSA.
However I observed two machines with same number of CryptoExpress cards, 
same PCHID numbers for the cards, but different crypto number 
assignments. Both machines are z15, ordered, delivered and installed 
together. No difference in model, microcode, features like FC 3863...

Any clue?

--
Radoslaw Skorupka
Lodz, Poland

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN