If you really like living dangerously I'll show you a basic hack.
Run this command:
WRKSRVTBLE
While on the list of entries press Sys-Req and take option 3. On PC
keyboards this is often mapped to Shift-Esc
14. Display open files, if active
The open file with a member name of SERVICES (not the file name!) is the
one you want.

IBM protects you from directly updating the file yourself, irregardless of
what level of security you have. If you do a DSPFD on the file you will
see
Allow read operation . . . . . . . . . . . : Yes
Allow write operation . . . . . . . . . . . : No
Allow update operation . . . . . . . . . . : ALWUPD *NO
Allow delete operation . . . . . . . . . . : ALWDLT *NO
So, the only way to update it is to use the provided APIs like ADDSRVTBLE

Here's another clue:
SELECT *
FROM QSYS2.SYSCOLUMNS
WHERE COLUMN_NAME IN('SERVICE', 'PORT', 'PROTOCOL')
ORDER BY TABLE_NAME, COLUMN_NAME;
It's one of the tables with all three.


Rob Berendt

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-2021 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.