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
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.