We have processes in AJS that are not scheduled, on hold, but run on demand via SBMJOBJS called from another process.
One of the reasons is if that process always needs to run under a certain user, for SSH.
Works great.
Paul
-----Original Message-----
From: MIDRANGE-L [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Christopher Bipes
Sent: Tuesday, March 27, 2018 9:47 AM
To: 'Midrange Systems Technical Discussion'
Subject: RE: Call RPGLE program on another iSeries
Sounds good but the bank batches are created multiple times a time via job scheduler and ad hoc. How would that fit into an auto start job?
Chris Bipes
Director of Information Services
CrossCheck, Inc.
-----Original Message-----
From: MIDRANGE-L <midrange-l-bounces@xxxxxxxxxxxx> On Behalf Of Steinmetz, Paul
Sent: Tuesday, March 27, 2018 6:40 AM
To: 'Midrange Systems Technical Discussion' <midrange-l@xxxxxxxxxxxx>
Subject: RE: Call RPGLE program on another iSeries
Chris,
Another simple option may be to use AJS with the SBMRMTCMD.
With AJS, you can either schedule the process or call the process by doing a SMBJOBJS.
The AJS job will wait until the remote process is complete.
Paul
-----Original Message-----
From: MIDRANGE-L [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Christopher Bipes
Sent: Tuesday, March 27, 2018 9:30 AM
To: 'Midrange Systems Technical Discussion'
Subject: RE: Call RPGLE program on another iSeries
Well the problem I am trying to solve is TLS1.2 connections. The primary server does not handle it. Stuck at V6R1 for hardware limitations. (Working on that solution as well.) However, I need to post to a bank that will shut down TLS1.0 shortly. I have another iSeries at V7R2 that can and does speak with the bank. All the files and programs are on the old system. The program currently builds these large XML files, calls a program to post to the bank, then processes the return file. I just want to post these files by calling the post program on another system. The posting program is a module that accepts 5 parameters, two of which are 256 byte IFS file paths + name. I was hoping to modify this to call the program on a remote system, just modifying the path to be a shared path between the two systems.
I do not know JAVA or PYTHON or any Web stuff. The remote system does not have any web services running outside of the IBM Admin stuff.
Thinking of the data queue method as I am really familiar with them but that involves writing another service program to sit at the data queue all the time. The RPC or SQL seems the best solution for this project. Anyone done remote procedure calls? My SQL is weak but we have other programmers that can do that. I just need to give them the correct direction.
Chris Bipes
Director of Information Services
CrossCheck, Inc.
-----Original Message-----
From: MIDRANGE-L <midrange-l-bounces@xxxxxxxxxxxx> On Behalf Of Rob Berendt
Sent: Tuesday, March 27, 2018 4:34 AM
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>
Subject: RE: Call RPGLE program on another iSeries
Ok Chris, based on Buck's responses, with the addition of Jim's data queue suggestion, which of the following do you (and I realize this may be a shot from the hip) think may do the trick?
Buck:
SQL stored procedure
Remote Procedure Call
SBMNETJOB
SBMRMTCMD
Trigger on a 'special' table on the remote system
Jim:
Data queues
Others (sorry but I deleted many of my responses):
Web Services
My initial shot from the hip would be anything with SBM in it's name would not be the interactive response you're looking for.
The trigger idea would also not be a good command/response pair.
My initial two picks would be SQL Stored Procedures and Data queues. I plead ignorance on remote procedure calls. Web Services may be a fun learning experience and something to add to the tool box but I'd have to have a lot more information to justify going down that road. At Dekko we do some serving, and consuming, of web services. But is done by others who do more day-to-day coding in RPG.
Rob Berendt
--
IBM Certified System Administrator - IBM i 6.1 Group Dekko Dept 1600 Mail to: 2505 Dekko Drive
Garrett, IN 46738
Ship to: Dock 108
6928N 400E
Kendallville, IN 46755
http://www.dekko.com
From: Christopher Bipes <chris.bipes@xxxxxxxxxxxxxxx>
To: "'midrange-l@xxxxxxxxxxxx'" <midrange-l@xxxxxxxxxxxx>
Date: 03/26/2018 04:53 PM
Subject: RE: Call RPGLE program on another iSeries
Sent by: "MIDRANGE-L" <midrange-l-bounces@xxxxxxxxxxxx>
Thank you,
Yes, the program needs to wait for the remote call to complete and then continue on to process the response.
Basically the program creates and XML file for processing, the remote system processes the file, then the local system processes the response file.
The files are on the initiating systems IFS. It can be shared so the remote system can read / write to the directory.
Chris Bipes
Director of Information Services
CrossCheck, Inc.
-----Original Message-----
From: MIDRANGE-L <midrange-l-bounces@xxxxxxxxxxxx> On Behalf Of Buck
Calabro
Sent: Monday, March 26, 2018 1:37 PM
To: midrange-l@xxxxxxxxxxxx
Subject: Re: Call RPGLE program on another iSeries
On 3/26/2018 4:28 PM, Christopher Bipes wrote:
How can one call a RPGLE program that resides on another iSeries? They
are on the same LAN. They are connected via Any Net / Enterprise
Extenders.
Starting the discussion:
SQL stored procedure
Remote Procedure Call
SBMNETJOB
SBMRMTCMD
Trigger on a 'special' table on the remote system
The solution set varies if the caller needs an answer, or if it only
needs to kick off a remote process.
As an Amazon Associate we earn from qualifying purchases.