On 09 May 2012 12:22, Stone, Joel wrote:
On the command line, I key: MMAIL/EMLSTMF2
Then F4 shows the info below.
Where does the command magically get my email address? Can I use a
RTV type command to grab this myself?
E-mail stream files (EMLSTMF2)
'Sender's e-mail address' . . . 'Joel.Stone@xxxxxxxxxx'
The request to DSPCMD MMAIL/EMLSTMF2 will presumably show that there
is a "Prompt override program" (PMTOVRPGM parameter; on CRTCMD and
CHGCMD) defined for that *CMD object.
Whatever that named program does, is how the value is provided for
the pre-filled "Sender's e-mail address" parameter. That program may
obtain the information in the "directory" (WRKDIRE) information.
Perhaps using the following:
Search System Directory (QOKSCHD) API
To obtain what the command's prompt override program will effect,
rather than doing the work [perhaps based on an assumption of what] that
Prompt Override Program would do, then perhaps using the following:
Retrieve Prompt Override (QPTRTVPO) API
This mailing list archive is Copyright 1997-2019 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact