View previous topic :: View next topic
|
Author |
Message |
abdulrafi
Active User
Joined: 14 Sep 2009 Posts: 184 Location: Coimbatore
|
|
|
|
Hi,
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.
I am trying to write a cobol program to compare the username's of both input files and update it but we do have the control cards in pds. Hnece I am
trying to convert all pds to ps 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.
Code: |
Input:
servername
abdulrafi paswsword
inputfile1 F1.txt
Input1:
abdulrafi password1
Output
servername
abdulrafi password1
inputfile1 F1.txt
|
I do have 1000 control cards like this to be updated every 6 months. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
You really do need to give us something useful to try to help you with, unfortunately psychic day isn't until Friday this week.
Also, if you suggest a DFSORT solution, why have you posted in the VSAM & JCL area, rather than the DFSORT srea.
You have shown us what is in ONE of the input files, how about a clue to what is in the second input file.
Updating the whole PDS could easily be performed by a REXX program, but without knowing much detail ..... who knows.
Please explain in DETAIL the two input files and how they relate to each other and then we can possibly help you. |
|
Back to top |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2455 Location: Hampshire, UK
|
|
|
|
Seems to be the same query as posted in the beginners forum. This one locked. |
|
Back to top |
|
|
|