Re: Some UNIX file usage questions

2022-06-23 Thread David Crayford
There's a more complete example here https://github.com/zsystems/java-samples/blob/master/MvsConsoleInteraction.java. Using Object.wait()/notify() is a bit hairy. A more modern implementation would use Condition.await()/signal() but it's fine for this use case. On 23/06/2022 12:16 pm,

Re: Highlighted Console Messages

2022-06-23 Thread Brian Westerman
That's almost the same thing, right? :) On Thu, 23 Jun 2022 06:56:29 -0400, David Spiegel wrote: >HI Brian, >In Ontario, OPP=Ontario Provincial Police. > >Regards, >David > >On 2022-06-22 23:35, Brian Westerman wrote: >> Please excuse the marketing aspect of this, but our SyzMPF/z product can

Re: BPXBATCH and PGM invocation

2022-06-23 Thread Seymour J Metz
Whoops! I missed that you didn't have the same left hand part. Yes, bpxmtext is a lot easier than trying to find it in the documentation. -- Shmuel (Seymour J.) Metz http://mason.gmu.edu/~smetz3 From: IBM Mainframe Discussion List

Re: BPXBATCH and PGM invocation

2022-06-23 Thread Steve Smith
The first example run worked perfectly; it was meant to print the explanation for one error code, and it did. It did NOT experience that error. I used that particular program because it would cause maximum confusion. JK, it was just a convenient program that produced a convenient amount of

Re: BPXBATCH and PGM invocation

2022-06-23 Thread Clifford McNeill
I suspect the Dir not found was the output of the bpxmtext command.     Cliff McNeill On 6/23/2022 1:01 PM, Seymour J Metz wrote: I suspect that the not found directory was ' (apostrophe). -- Shmuel (Seymour J.) Metz http://mason.gmu.edu/~smetz3

Re: SFTP JOB Data parameter

2022-06-23 Thread Michael Oujesky
One way, presuming the job runs once per day: //SFTPB24E JOB (7330),MSGCLASS=X,CLASS=P,NOTIFY=,USER=STCSYS //GETYEST EXEC PGM=IKJEFT01,REGION=0M //SYSEXEC DD DISP=SHR,DSN=SYS1.SBPXEXEC //OUTPUT DD SYSOUT=* //SYSTSPRT DD SYSOUT=* //SYSTSIN DD DISP=OLD,DSN=MYHLQ.YESTFILE.CMD

Re: BPXBATCH and PGM invocation

2022-06-23 Thread Paul Gilmartin
On Thu, 23 Jun 2022 18:04:02 +, Seymour J Metz wrote: >Why did you put the reason code 0594003D in the command string instead of >SPWNPGM1? > As I Read The Fine Manual: , I see: To determine the

Re: BPXBATCH and PGM invocation

2022-06-23 Thread Seymour J Metz
Why did you put the reason code 0594003D in the command string instead of SPWNPGM1? -- Shmuel (Seymour J.) Metz http://mason.gmu.edu/~smetz3 From: IBM Mainframe Discussion List [IBM-MAIN@LISTSERV.UA.EDU] on behalf of Steve Smith [sasd...@gmail.com]

Re: BPXBATCH and PGM invocation

2022-06-23 Thread Seymour J Metz
I suspect that the not found directory was ' (apostrophe). -- Shmuel (Seymour J.) Metz http://mason.gmu.edu/~smetz3 From: IBM Mainframe Discussion List [IBM-MAIN@LISTSERV.UA.EDU] on behalf of Paul Gilmartin

Re: SFTP JOB Data parameter

2022-06-23 Thread saurabh khandelwal
Hello, Paul, I, could not get you . Can you please help us to understand what exactly you are looking On Thu, Jun 23, 2022, 13:33 Paul Gilmartin < 042bfe9c879d-dmarc-requ...@listserv.ua.edu> wrote: > On Thu, 23 Jun 2022 09:58:30 +0300, saurabh khandelwal wrote: > > > >1) Mainframe is

Re: BPXBATCH and PGM invocation

2022-06-23 Thread Seymour J Metz
As documented is "Specifies that the program that is identified by the command_string parameter is invoked directly from BPXBATCH."; that says nothing about shell-like handling of apostrophes. From: IBM Mainframe Discussion List on behalf of Paul

Re: BPXBATCH and PGM invocation

2022-06-23 Thread Paul Gilmartin
On Thu, 23 Jun 2022 11:36:55 -0400, Steve Smith wrote: >I just ran a test. PARM='PGM /bin/bpxmtext 0594003D' works. stdout has: >BPXFVLKP 04/27/18 > >JRDirNotFound: A directory in the pathname was not found > I'm slightly surprisd. The OP's command was: //JSTEP EXEC

Re: [EXTERNAL] How To Handle RACROUTE logic

2022-06-23 Thread Pommier, Rex
Hi Paul, No extra checking is needed. You give RACF the userID and resource you want checked and it handles the rest. RACF has a well-documented flowchart it goes through, where it checks the userID first and if that doesn't grant specific access, it moves to the groups the user is a member

Re: How To Handle RACROUTE logic

2022-06-23 Thread Ituriel do Neto
Hi, I don't think you should do extra checking. If the user is a member of a group and is not explicitly defined to access a specific profile, but the group he belongs is allowed to access it, then RACROUTE should succeed. Best Regards Ituriel do Nascimento Neto z/OS System Programmer

How To Handle RACROUTE logic

2022-06-23 Thread esst...@juno.com
Hello, . I'm not a RACF person. . I'm developing two routines to check a userids authority to access a resource in a RACF Facility Class. . One routine issues RACROUTE REQUEST=FATSAUTH, and the other issues RACROUTE REQUEST=AUTH. Both requests work well when checking for an individual user. .

Re: BPXBATCH and PGM invocation

2022-06-23 Thread Steve Smith
I just ran a test. PARM='PGM /bin/bpxmtext 0594003D' works. stdout has: BPXFVLKP 04/27/18 JRDirNotFound: A directory in the pathname was not found Action: One of the directories specified was not found. Verify that the name specified is spelled correctly. And PARM='PGM ''/bin/bpxmtext

Re: BPXBATCH and PGM invocation

2022-06-23 Thread Paul Gilmartin
On Thu, 23 Jun 2022 14:49:41 +, Seymour J Metz wrote: >I believe that BPXBATCH does not support quoting the path; if true that would >explain the not found return code. What happens with PARM='PGM >/u///SPWNPGM1'? > BPXBATCH does't care about special characters. It

Re: BPXBATCH and PGM invocation

2022-06-23 Thread Seymour J Metz
I believe that BPXBATCH does not support quoting the path; if true that would explain the not found return code. What happens with PARM='PGM /u///SPWNPGM1'? -- Shmuel (Seymour J.) Metz http://mason.gmu.edu/~smetz3 From: IBM Mainframe

Re: An ooRexx sample for the Java sample program ... (Re: Some UNIX file usage questions

2022-06-23 Thread Rony G. Flatscher
Hi Andrew, On 23.06.2022 01:42, Andrew Rowley wrote: On 22/06/2022 9:44 pm, Rony G. Flatscher wrote:    /* ... do whatever you need to do, if anything ... */        /* now wait until the stop event gets received in rexxCallBack */    rexxCallBack~waitForStop   /* invocation will block */

Re: BPXBATCH and PGM invocation

2022-06-23 Thread Paul Gilmartin
On Thu, 23 Jun 2022 09:45:40 -0400, Kenneth J. Kripke wrote: >Thank you to all that had responded. I was able to accomplish what I wanted >to get done using BPXWUNIX within a REXX. > Certainly a more powerful alternative. You can issue several commands and process status and output from each.

BPXBATCH and PGM invocation

2022-06-23 Thread Kenneth J. Kripke
Thank you to all that had responded. I was able to accomplish what I wanted to get done using BPXWUNIX within a REXX. The purpose of this exercise is to test Automation rules to bring down various OMVS processes during a system shutdown for an IPL. Kenneth J. Kripke

Re: Highlighted Console Messages

2022-06-23 Thread Seymour J Metz
AFAIK it has always been legitimate to mention a product that directly relates with what a list member has asked about. IMHO your message is entirely appropriate. -- Shmuel (Seymour J.) Metz http://mason.gmu.edu/~smetz3 From: IBM Mainframe Discussion

Re: Some UNIX file usage questions

2022-06-23 Thread Seymour J Metz
What alternatives did IBM have given that spawned processes can reside in other address spaces? -- Shmuel (Seymour J.) Metz http://mason.gmu.edu/~smetz3 From: IBM Mainframe Discussion List [IBM-MAIN@LISTSERV.UA.EDU] on behalf of Tony Harminc

Re: Highlighted Console Messages

2022-06-23 Thread David Spiegel
HI Brian, In Ontario, OPP=Ontario Provincial Police. Regards, David On 2022-06-22 23:35, Brian Westerman wrote: Please excuse the marketing aspect of this, but our SyzMPF/z product can notify via email, sms text message, or TSO notify any person or persons that are interested in any message

Re: SFTP JOB Data parameter

2022-06-23 Thread Paul Gilmartin
On Thu, 23 Jun 2022 09:58:30 +0300, saurabh khandelwal wrote: > >1) Mainframe is getting file from windows. So, few of the files in >windows having today’s date and few of them having yesterday’s date( today-1) . > So there are multiple files ("few"). Do you know a priori which have

Re: SFTP JOB Data parameter

2022-06-23 Thread saurabh khandelwal
Dear Team, Thanks for reply and helping me to resolve this issue. 1) Mainframe is getting file from windows. So, few of the files in windows having today’s date and few of them having yesterday’s date( today -1) . 2) For today’s date below code is the solution you all suggested