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
 

 

Usage of NETRC for FTP step in JCL

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Usage of NETRC for FTP step in JCL
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: 1445
Location: Azeroth

PostPosted: Fri Jul 17, 2015 5:30 pm    Post subject:
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: 7914
Location: Bellevue, IA

PostPosted: Fri Jul 17, 2015 5:55 pm    Post subject:
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 User


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

PostPosted: Fri Jul 17, 2015 6:12 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Converting multiple VB files to FB fi... Viswanath Reddy JCL & VSAM 6 Mon Aug 08, 2016 11:49 pm
This topic is locked: you cannot edit posts or make replies. JCL MULTIPLE STEP EXECUTION QUERY Susanta JCL & VSAM 18 Sat Jul 30, 2016 1:17 pm
No new posts Single step utility for compare and u... ramprakashn JCL & VSAM 5 Fri Apr 29, 2016 3:43 pm
No new posts How can amount of the Storage Usage b... esduman61 CICS 6 Wed Mar 09, 2016 1:19 pm
No new posts Compilation Error in Translation Step. amitc23 CICS 4 Tue Mar 01, 2016 12:24 pm


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