View previous topic :: View next topic |
Author |
Message |
jagfit Beginner
Joined: 27 Sep 2003 Posts: 5 Topics: 2
|
Posted: Mon Dec 29, 2003 5:25 am Post subject: Invoking a jcl from Unix |
|
|
Hi ,
We are planning to submit a JCL in OS390 using a perl-script from a unix box.The JCL will be hard-coded in the script.As per my understanding, it is required to provide a suitable racf-id & password along with the Jobcard of the JCL for the successful submission of the JCL. Please confirm this understanding.
Assuming that the above understanding is correct, then the ID and Password will be visible to anyone who can see the perl script and any one who can see the job in the spool . I have two questions here :
1)Is there any way to encrypt the racf password while providing it to the job card ?
2)Or is there any way to submit the JCL other than the method which I have described ?
Hope I have explained the problem clearly. Please let me know if you need more details to help me out. _________________ Regards,
Jagfit |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12376 Topics: 75 Location: San Jose
|
Posted: Mon Dec 29, 2003 8:00 am Post subject: |
|
|
Jagfit,
There are many ways to accomplish the task. One of them is to FTP the JCL from Unix directly to JES INTRDR thru FTP parameter site filetype=jes. If you have any scheduler package at your shop then you can trigger the job by FTP.
To answer your queries FTP must have a RACF userid/password, so create a generic racf userid with minimal authority.
I am not real sure if we can encrypt the password. Your sysout will not availble to everyone except for the system's programmers.
Hope this helps...
cheers
kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
|
jagfit Beginner
Joined: 27 Sep 2003 Posts: 5 Topics: 2
|
Posted: Tue Dec 30, 2003 3:57 am Post subject: |
|
|
Kolusu,
Thanks for the reply. I will try this out . _________________ Regards,
Jagfit |
|
Back to top |
|
|
bvsbabu Beginner
Joined: 30 Dec 2003 Posts: 2 Topics: 1
|
Posted: Wed Mar 03, 2004 3:56 am Post subject: |
|
|
Hi,
I am very new to perl. I have to write a perl program to ftp a repot from unix machine to other machine and I need to run the JCL, there. I think this requirement is exctly similar to the one you posted long back.
Please send me some sample script for this requirement. |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12376 Topics: 75 Location: San Jose
|
Posted: Wed Mar 03, 2004 10:12 am Post subject: |
|
|
bvsbabu,
I am not an expert in PERL , but here is a sample script to FTP
Code: |
#! /usr/bin/perl -w
use strict;
my $ftp="/usr/bin/ftp";
my $tmp='filename.txt';
my $afile="somefile.pl";
my $host = "xx.xx.xx.xx";
my $dir = "sampledir";
open(FTP, "| $ftp -n $host >$tmp");
print FTP "user username\n";
print FTP "-password\n";
print FTP "ls\n";
print FTP "cd $dir\n";
print FTP "get $afile\n";
print FTP "binary\n";
print FTP "quit\n";
close(FTP); #re-use the fileHandle
|
Hope this helps...
Cheers
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
|
|
|