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

Query on updating the control cards.


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
abdulrafi

Active User


Joined: 14 Sep 2009
Posts: 184
Location: Coimbatore

PostPosted: Tue Feb 26, 2019 2:23 pm
Reply with quote

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
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2455
Location: Hampshire, UK

PostPosted: Tue Feb 26, 2019 2:38 pm
Reply with quote

Why are your passwords even in control statements? This is a serious security breach.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue Feb 26, 2019 3:41 pm
Reply with quote

How many times will this same question be asked, apparently by different users icon_eyes.gif

@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
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 -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Cobol-db2 : SQL query is running for ... DB2 3
No new posts Reading subsequent rows in a query. DB2 12
No new posts PV041 UNEQUAL VOLUME CONTROL CA Products 4
No new posts Updating endevor JCLs CA Products 5
No new posts SYSIBM Tables Query DB2 8
Search our Forums:

Back to Top