View previous topic :: View next topic
|
Author |
Message |
abdulrafi
Active User
Joined: 14 Sep 2009 Posts: 184 Location: Coimbatore
|
|
|
|
Hi,
I am posting it here again as per the moderator request and I have provided more details.
I have a requirement to update the FTP password in the control cards by comparing with another file. Can you please let me know a
solution.
For this, I am trying to write a cobol program to compare the username's of both input files and update the password. As we have the control cards in pds, I am trying to convert the pds (control card resides) to ps file and then fed it as input to the program. If there is any other way to achieve this via DFSORT or any other utility, please help me.
One challenge I am facing is, the username and password can be in different positions in the same line as shown below.
Production_control card(Input 1): It is the original production control card where the server and FTP (username and pwd) details are present.
New_control_card(Input 2): It has the username along with the new password.
Production_control card(Input 1): The output should have the new password updated as shown below back in the original production control card.
Code:
Code: |
Production_control card(Input 1):
servername
abdulrafi password
inputfile1 F1.txt
New_control_card(Input 2):
abdulrafi password1
Production_control card(Input 1): --> Output updated with new password back in the original prod control card.
servername
abdulrafi password1
inputfile1 F1.txt
|
I do have 1000 control cards like this to be updated every 6 months. |
|
Back to top |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2454 Location: Hampshire, UK
|
|
|
|
Why are your passwords even in control statements? This is a serious security breach. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
How many times will this same question be asked, apparently by different users
@The Poster Do you have multiple user ids on this forum and are you also posting on the beginners forum at the same time as posting here. |
|
Back to top |
|
|
|