Problem:
We are using a MFDAS command line to download host files and the MFDAEMON is coming up each time prompting us for a userid and password. It comes up twice for each download. The password is not saved.
Resolution:
The interface for Mainframe Access to the host is the same for a MFDAS command
line as it is for the interactive Drag & Drop and Synchronization and Compare Monitor
components. But for a batch command line one needs to eliminate the constant logon
request caused by the Mainframe Access for each command executed. The reason
for the second prompt is that our XDBLink software is requesting a logon to the host
DB2 database. Removing the constant logon requests can be accomplished using a
special user exit named MFDASPWD. This is documented in the Mainframe Express
Online Help. Such a sample program follows:
Identification Division.
Program-Id. MFDASPWD.
****************************************************************
* Compile this program as a GNT using a Non-Mainframe dialect *
* from a Mainframe Express Command Prompt with this command: *
* cobol mfdaspwd dialect(mf) omf(gnt); *
* For Mainframe Express v3.1, Copy the GNT module into the *
* MFE\\BASE\\BIN directory *
****************************************************************
Environment Division.
Data Division.
Working-Storage Section.
1 Ws1 Pic X.
Linkage Section.
1 LsUserid Pic X(20).
1 LsPassword Pic X(20).
Procedure Division Using LsUserid LsPassword.
P1.
* supply the userid and password to logon to z/OS
Move 'LORINCE' to LsUserid
Move 'P081190' to LsPassword
Goback.
#MFDS
#EnterpriseDeveloper