If by netname you mean VTAM secondary LU name here's an example.
/* REXX */
SYSTERMID = sysvar("SYSTERMID")
say "LU name is" SYSTERMID
exit
Gives:
LU name is MYLUNAME
This will usually be a TN3270 SLU name or an SLU name in your multi-session
application if you have one. It does not directly get you an IP address.
See here of other sysvar() options in TSO REXX.
https://www.ibm.com/support/knowledgecenter/SSLTBW_2.3.0/com.ibm.zos.v2r3.ikja300/sysvarr.htm
Mike Wawiorko
-Original Message-
From: IBM Mainframe Discussion List On Behalf Of
Steff Gladstone
Sent: 16 March 2021 12:28
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Finding the NETNAME within TSO
This message originated from outside our organisation and is from web based
email - steff.gladst...@gmail.com
How can I discover the netname of a TSO user from within TSO? Either directly
in REXX or via a called assembler subroutine?
Thanks,
Steff Gladstone
--
For IBM-MAIN subscribe / signoff / archive access instructions, send email to
lists...@listserv.ua.edu with the message: INFO IBM-MAIN
This e-mail and any attachments are confidential and intended solely for the
addressee and may also be privileged or exempt from disclosure under applicable
law. If you are not the addressee, or have received this e-mail in error,
please notify the sender immediately, delete it from your system and do not
copy, disclose or otherwise act upon any part of this e-mail or its attachments.
Internet communications are not guaranteed to be secure or virus-free. The
Barclays Group does not accept responsibility for any loss arising from
unauthorised access to, or interference with, any Internet communications by
any third party, or from the transmission of any viruses. Replies to this
e-mail may be monitored by the Barclays Group for operational or business
reasons.
Any opinion or other information in this e-mail or its attachments that does
not relate to the business of the Barclays Group is personal to the sender and
is not given or endorsed by the Barclays Group.
Barclays Execution Services Limited provides support and administrative
services across Barclays group. Barclays Execution Services Limited is an
appointed representative of Barclays Bank UK plc, Barclays Bank plc and
Clydesdale Financial Services Limited. Barclays Bank UK plc and Barclays Bank
plc are authorised by the Prudential Regulation Authority and regulated by the
Financial Conduct Authority and the Prudential Regulation Authority. Clydesdale
Financial Services Limited is authorised and regulated by the Financial Conduct
Authority.
--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN