Hi,
Below are some notes.
If you are at ESP 11.4 the WEBPORT is the only option. This is a port in the Workstation server. Let me know if you need help with this.
I do not have a Python example but you should be able to modify the syntax from either the curl or Perl examples.
In the examples below substitute the command that is shown for an AJ(APPLJOB) command with the correct syntax. The link is below. The difficult part is how to make sure that the job in the correct application generation is held. This generation number could be passed down into the script.
https://techdocs.broadcom.com/content/broadcom/techdocs/us/en/ca-mainframe-software/automation/ca-workload-automation-esp-edition/12-0/reference/commands/appljob-aj-command-control-applications.htmlcurl curl -X POST -u POWDO03:An0ther -i --basic --data '{"info":{"status":"req","cont":"eom","type":"command"},"data":{"request":"PASSWORD UPDATE USER(useridhere) PASSWORD(passwordhere)"}}'
http://mainfame.xx.com:6167/commandPerl#!/usr/bin/perl
use LWP::UserAgent;
use JSON;
#use Data::Dumper;
$ua = LWP::UserAgent->new;
my $req = HTTP::Request->new(
POST => 'http://system:6167/command');
$req->authorization_basic('useridhere', 'passwordhere');
$req->content_type('application/json');
$req->content('{"info":{"status":"req","cont":"eom","type":"command"},"data":{"request":"AGENT - LIST"}}');
my $res =
my $res = $ua->request($req);
my $result = decode_json($res->content);
print "status " . $result->{'info'}->{'status'} . "\n" ;
for $i ( 0 .. $#{$result->{'data'}->{'list'}} ) {
print "$i " . $result->{'data'}->{'list'}[$i] . "\n" ;
}
print "\n";
********************************************************************************************************************
Note:
In ESP 12.0 there is a new restful interface but this functionality is not enabled yet.
Let me know if you have questions
2¢
Don
Original Message:
Sent: 05-12-2020 09:12 AM
From: Kiran Sai
Subject: How to put ESP job on hold
How can I hold a ESP job using Python or mainframes, may I get the code or command related to it.