× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Please define 'quits working'.

Also, are you interested in a database name or the server name?
If database, would
SELECT CATALOG_NAME INTO :SysName FROM SYSCATALOGS WHERE CATALOG_TYPE =
'LOCAL'
work instead?
If server name, RTVNETA CL command may work for your needs:
RTVNETA SYSNAME(&SYSTEMNAME)

Elvis

Celebrating 11-Years of SQL Performance Excellence on IBM i, i5/OS and
OS/400
www.centerfieldtechnology.com


-----Original Message-----
Subject: System Name - SQL current server

I couldn't find it in the recent archives (July/Aug), but I remembered
seeing this trick to get the system name.

C/exec sql
C+ values current server
C+ into :SysName
C/end-exec

It works great on the system it is compiled on. But when I move the
program object to production, it quits working.

I've moved the object using the following methods, none work:
1) Implementer (David ??)
2) ASNET (SSA product)
3) Save program to a *SAVF and use SNDNETF.

Sending the source to the production box and compiling is the only way
I've gotten it to work.

Anyone know any tricks to get around this. Compiling on a production
box is not long term solution.

Thanks
Ron



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

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

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