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 -> JCL & VSAM
Post new topic   This topic is locked: you cannot edit posts or make replies.
View previous topic :: View next topic  
Author Message
abdulrafi

Active User


Joined: 14 Sep 2009
Posts: 184
Location: Coimbatore

PostPosted: Mon Feb 25, 2019 7:43 pm
Reply with quote

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

Global Moderator


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

PostPosted: Mon Feb 25, 2019 8:19 pm
Reply with quote

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
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:42 am
Reply with quote

Seems to be the same query as posted in the beginners forum. This one locked.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   This topic is locked: you cannot edit posts or make replies. View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts RC query -Time column CA Products 3
No new posts Using Dynamic file handler in the Fil... COBOL Programming 2
No new posts Dynamically pass table name to a sele... DB2 2
No new posts Query on edit primary command CLIST & REXX 5
No new posts Query on edit primary command CLIST & REXX 1
Search our Forums:

Back to Top