IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Usage of NETRC for FTP step in JCL


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Vineetha_123

New User


Joined: 17 Jul 2015
Posts: 1
Location: iNDIA

PostPosted: Fri Jul 17, 2015 3:24 pm
Reply with quote

We have requirement to dynamically have the server name / user id & password to be provided into the FTP Control card

Can we use NETRC option to pass the user id / password dynamically to the FTP step

Is it like with NETRC option we need to always provide the id/password in the NETRC dataset or can ID/PWD be provided at a application level instead of providing at the dataset level
Back to top
View user's profile Send private message
vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1742
Location: Tirupur, India

PostPosted: Fri Jul 17, 2015 5:30 pm
Reply with quote

Quote:
or can ID/PWD be provided at a application level instead of providing at the dataset level

Could you explain this a bit more?

Quote:
Can we use NETRC option to pass the user id / password dynamically to the FTP step

Yes, Have a first step write a single record with USERID PASSWORD into a dataset say WELLS.NETRC.DATASET.PS

On the second step(FTP) use the WELLS.NETRC.DATASET.PS dataset under //NETRC ddname.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Fri Jul 17, 2015 5:55 pm
Reply with quote

Quote:
Is it like with NETRC option we need to always provide the id/password in the NETRC dataset
The whole point of the NETRC data set is to provide the user id and password in a data set that can be secured using RACF (or whatever security package is used at the site) so this sensitive data is not in the JCL.

As long as the user id and password exist in the data set when your FTP job step executes, how you put them in it and when is up to you.
Back to top
View user's profile Send private message
steve-myers

Active Member


Joined: 30 Nov 2013
Posts: 917
Location: The Universe

PostPosted: Fri Jul 17, 2015 6:12 pm
Reply with quote

If I were an auditor and caught this practice I'd write it up immediately. Bad, bad idea.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Return codes-Normal & Abnormal te... JCL & VSAM 7
No new posts How to append a PS file into multiple... JCL & VSAM 3
No new posts convert file from VB to FB and use tr... DFSORT/ICETOOL 8
No new posts STEM usage in REXX CLIST & REXX 14
No new posts Forcing a step to run (even if abended) JCL & VSAM 8
Search our Forums:

Back to Top