MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Invoking a jcl from Unix

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
jagfit
Beginner


Joined: 27 Sep 2003
Posts: 5
Topics: 2

PostPosted: Mon Dec 29, 2003 5:25 am    Post subject: Invoking a jcl from Unix Reply with quote

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
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12376
Topics: 75
Location: San Jose

PostPosted: Mon Dec 29, 2003 8:00 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
jagfit
Beginner


Joined: 27 Sep 2003
Posts: 5
Topics: 2

PostPosted: Tue Dec 30, 2003 3:57 am    Post subject: Reply with quote

Kolusu,

Thanks for the reply. I will try this out .
_________________
Regards,
Jagfit
Back to top
View user's profile Send private message
bvsbabu
Beginner


Joined: 30 Dec 2003
Posts: 2
Topics: 1

PostPosted: Wed Mar 03, 2004 3:56 am    Post subject: Reply with quote

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
View user's profile Send private message Yahoo Messenger
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12376
Topics: 75
Location: San Jose

PostPosted: Wed Mar 03, 2004 10:12 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group