Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need passwd for multi sessions in seperate file

Status
Not open for further replies.

StarSearcher

Technical User
Nov 17, 2003
5
US
I currently have several sessions that I use at any given time (CICS, TSO, etc.). I have written macros to get me in but unfortunately each one has my userid & passwd contained in the macro. I would like to isolate that info to it's own place and call for it when needed. This would keep me from having to edit multiple macros whenever I reset my password. Any suggestions would be appreciated.
 
Make a text file that you can read. Store it in a convenient location and refer to it.

Open "C:\MyInfo.txt" for input as #1
Input #1, UserName
Input #1, MyPassword
Close #1

Where MyInfo.txt is a text file that looks like this:
Username
Password

You can then use these variables in your macros.

calculus
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top