Problem:
Can MFDAS pass a userid and password via a command line?
Resolution:
Yes, see sample code below.
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.
#EnterpriseDeveloper
#MFDS