Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Protecting of PERL Scripts

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
View previous topic :: :: View next topic  
Author Message
t5590ag

Active User


Joined: 21 May 2009
Posts: 139
Location: United States

PostPosted: Wed Mar 06, 2013 2:11 am    Post subject: Protecting of PERL Scripts
Reply with quote

All,

i have a following PERL SCRIPT which looks like -

Code:
//STEP015 EXEC PGM=REXEC, TIME=NOLIMIT,                           
// PARM='/-l aaaaaa -p log001 111.1.111.222 updInspct.pl INSPCT'
//SYSTCPD   DD DSN=SYS1.TCPPARMS(TCPDATA),DISP=SHR               
//SYSPRINT  DD SYSOUT=*                                           
//*                                                               


is there a way i can put it in a dataset(protect it) so that its not hard coded like this and pass that dataset as sysin to this utility.
Back to top
View user's profile Send private message

enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10211
Location: italy

PostPosted: Wed Mar 06, 2013 2:15 am    Post subject: Reply to: Protecting of PERL Scripts
Reply with quote

what You posted is just plain ole JCL
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7936
Location: Bellevue, IA

PostPosted: Wed Mar 06, 2013 2:21 am    Post subject:
Reply with quote

Look at NETRC in the Communciations Server bookshelf; NETRC works with REXEC and will provide you the protection you are wanting (if you get your security group to secure the NETRC data set).

And as Enrico said, what you posted is NOT a Perl script; it is JCL that executes something (which could be a Perl script) on a remote machine.
Back to top
View user's profile Send private message
t5590ag

Active User


Joined: 21 May 2009
Posts: 139
Location: United States

PostPosted: Wed Mar 06, 2013 5:05 am    Post subject:
Reply with quote

Thanks a lot Rob/Enrico, for checking it out. I found resolution most likely by using the NETRC dataset as Rob suggested to protect the user id and pw.
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Wed Mar 06, 2013 10:08 am    Post subject:
Reply with quote

I got a similar request by one of my known as well, some time back. Though they talked about hiding IP/password from JCL itself... . If you want to hide IP and password from JCL, possibly a stupid trick can be as follows:
Code:
// JCLLIB ORDER=HLQ.PARAMTER.JCL               
//*                                               
//  INCLUDE MEMBER=HIDEIT                         
//*                                               
//STEP015 EXEC PGM=REXEC,TIME=NOLIMIT,           
//  PARM='&PRM1'                                 
//*                                               
//SYSTCPD   DD DSN=SYS1.TCPPARMS(TCPDATA),DISP=SHR
//SYSPRINT  DD SYSOUT=*                           
//*                                               
and HIDEIT will have

Code:
// SET PRM='/-l aaaaaa -p log001 111.1.111.222 updInspct.pl INSPCT'

However, using all this if we manage to "hide" this data in the source, it would be visible to anyone with access to the job queue. The ideal solution to use the NETRC facility, as Robert has said. This will allow us to use the NETRC data file which can be secured. However, that will require one to talk to site support group and have the site security person secure it as required. Depending upon where the FTP is going, the security may be fairly loose or very restrictive but that’s whatyou should be doing.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Perl books Pandora-Box General Talk & Fun Stuff 13 Mon May 06, 2013 10:10 pm
No new posts Extracting the View scripts of a table Bhuvanesh Subburajan DB2 2 Thu Mar 14, 2013 3:26 pm
No new posts Please share the User manual on DMS s... hey_its_me JCL & VSAM 2 Sun Dec 23, 2012 1:37 am
No new posts Invoking AIX Scripts from Mainframes. rockish JCL & VSAM 6 Thu May 31, 2012 8:01 pm
No new posts Protecting a dataset janani vs All Other Mainframe Topics 2 Fri Jun 25, 2010 3:48 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us