Mephansteras
MIS
I'm really not sure if this is more a mainframe question or an issue with the perl package. But I'm stuck either way.
We have a job that gets run manually on the mainframe, and a perl job on a linux box that runs a little later and grabs the file off of the mainframe that is produced by the first program. I'm trying to automate this system, and not having much luck.
So, I found this package that is supposed to let me kick off jobs using FTP (The module is built on NET::FTP).
I can follow the steps of the package and it claims to have successfully submitted the job, but the job never actually runs on the mainframe. My attempts to get help from our mainframe group resulted in conversations like this:
"That's easy, just go to this screen and type in blah blah blah"
"No, I want to kick off the job using a program through ftp"
"Oh, I have no idea how you could do that. I'm not even sure it is possible"
So...no help there.
Has anyone used this package? Using it LOOKS easy. Here is the code, taken from my test script:
The SEQ file has this in it:
//logonid1 JOB account,'HACGHH',CLASS=A,MSGCLASS=T,MSGLEVEL=(1,1)
//*LOGONID HACGHH
//*PASSWORD HACGHH19
/*ROUTE PRINT node.logonid
//STEP001 EXEC PGM=IA000000.SW.LIB(SWRAPUP)
Any ideas?
Thanks!
We have a job that gets run manually on the mainframe, and a perl job on a linux box that runs a little later and grabs the file off of the mainframe that is produced by the first program. I'm trying to automate this system, and not having much luck.
So, I found this package that is supposed to let me kick off jobs using FTP (The module is built on NET::FTP).
I can follow the steps of the package and it claims to have successfully submitted the job, but the job never actually runs on the mainframe. My attempts to get help from our mainframe group resulted in conversations like this:
"That's easy, just go to this screen and type in blah blah blah"
"No, I want to kick off the job using a program through ftp"
"Oh, I have no idea how you could do that. I'm not even sure it is possible"
So...no help there.
Has anyone used this package? Using it LOOKS easy. Here is the code, taken from my test script:
Code:
use MVS::JESFTP;
my($host, $logonid, $password, $job, $jobname) =
('hfn2', 'xxxx', 'xxxx', './TestSW.SEQ', 'HACGHHSW');
my $timeout = 1200;
$jes = MVS::JESFTP->open($host, $logonid, $password) or die "not ok 2\n";
print "ok 2\n";
$jes->submit($job) or die "not ok 3\n";
print "ok 3\n";
$jes->quit or die "not ok 4\n";
print "ok 4\n";
The SEQ file has this in it:
//logonid1 JOB account,'HACGHH',CLASS=A,MSGCLASS=T,MSGLEVEL=(1,1)
//*LOGONID HACGHH
//*PASSWORD HACGHH19
/*ROUTE PRINT node.logonid
//STEP001 EXEC PGM=IA000000.SW.LIB(SWRAPUP)
Any ideas?
Thanks!