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

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

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.

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

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

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:

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

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

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.)

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

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

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

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

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

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

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

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)

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

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

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

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,

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

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

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

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

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

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

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

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