If you have the RPG xTools, you can use the GetSysName() procedure to return
the system name. If not, call the API for Network Attributes others have
suggested. I prefer to use the MATMATR MI instruction which is what xTools'
GetSysName() uses, since it is faster. If speed isn't an issue, the CL
command returns it as well, however you wanted it from within RPG IV.

-Bob Cozzi
www.RPGxTools.com
If everything is under control, you are going too slow.
- Mario Andretti


-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx]
On Behalf Of Dave Murvin
Sent: Tuesday, June 14, 2005 4:10 PM
To: rpg400-l@xxxxxxxxxxxx
Subject: Easy way to get System name from ILE RPG?

Hi,

I'm looking for an easy way to get the system name for a report.  Was 
hoping for something like SYSNAME for display files, but don't see anything 
like this for printer files.  Didn't see it in the feedback areas 
either.  I'm drawing a blank, but will be looking for APIs.

Anything out there easier than APIs?

Thanks

Dave Murvin
DRM Enterprises, Inc.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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

This mailing list archive is Copyright 1997-2025 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.