×

Good News Everybody!

The new search engine is LIVE!

Please report any problems to david (at) midrange.com.




For just the simple name of the LPAR (not the number) create this
command named "HU" on every LPAR
It takes a single line in the command source
CMD PROMPT('Who am I signed on as')

And the CL program below HUC is the CPP of the command HU.

/* HU *cmd HUC *clp */
/* retrieve info from session */
PGM
DCL &DEV *CHAR 10
DCL &USER *CHAR 10
DCL &SYSTEM *CHAR 10 /* RTVNETA */
DCL &MSGDTA *CHAR 81

MONMSG CPF0000 EXEC(GOTO ENDPGM )

RTVJOBA JOB(&DEV) USER(&USER)
RTVNETA SYSNAME(&SYSTEM)

CHGVAR &MSGDTA ('Signed on as' *BCAT &USER *BCAT 'at' *BCAT +
&DEV *BCAT 'on' *BCAT &SYSTEM )

SNDPGMMSG MSGID(CPF9898) MSGF(QCPFMSG) MSGDTA(&MSGDTA) +
TOPGMQ(*PRV) MSGTYPE(*COMP)
ENDPGM: ENDPGM

Which gives the following message when HU is typed on the command line:
"Signed on as USERNAME at DEVICE on BOX"


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2026 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 [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.