Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Query on updating the control cards.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
abdulrafi

Active User


Joined: 14 Sep 2009
Posts: 171
Location: Coimbatore

PostPosted: Tue Feb 26, 2019 2:23 pm    Post subject: Query on updating the control cards.
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: 2180
Location: Hampshire, UK

PostPosted: Tue Feb 26, 2019 2:38 pm    Post subject: Reply to: Query on updating the control cards.
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: 8782
Location: Welsh Wales

PostPosted: Tue Feb 26, 2019 3:41 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Verify WITH UR present inside program... priyankakir CLIST & REXX 23 Wed Jun 12, 2019 3:37 pm
This topic is locked: you cannot edit posts or make replies. Query on updating the control cards. abdulrafi JCL & VSAM 2 Mon Feb 25, 2019 7:43 pm
No new posts Build SQL query using SORT balaji81_k DFSORT/ICETOOL 15 Mon Feb 18, 2019 9:56 am
No new posts General Query on DB2 table design subratarec DB2 3 Thu Feb 14, 2019 12:49 pm
No new posts Query on summing up the fields abdulrafi DFSORT/ICETOOL 10 Mon Jan 21, 2019 7:18 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us