home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / os / vms / 22181 < prev    next >
Encoding:
Internet Message Format  |  1993-01-28  |  2.4 KB

  1. Path: sparky!uunet!charon.amdahl.com!pacbell.com!ames!haven.umd.edu!darwin.sura.net!newsserver.jvnc.net!yale.edu!ira.uka.de!math.fu-berlin.de!news.netmbx.de!Germany.EU.net!mcsun!sunic!seunet!seb!seb.se!s01964
  2. Newsgroups: comp.os.vms
  3. Subject: Re: Help with SYS$GETSYI please!
  4. Message-ID: <1993Jan27.132741.1@seb.se>
  5. From: s01964@seb.se
  6. Date: 27 Jan 93 13:27:41 +0100
  7. References: <davids.728101271@marloo.kowari.cpsg.com.au>
  8. Organization: S-E-Banken, Sweden
  9. Nntp-Posting-Host: sto009
  10. Nntp-Posting-User: s01964
  11. Lines: 62
  12.  
  13. In article <davids.728101271@marloo.kowari.cpsg.com.au>, davids@kowari.cpsg.com.au (David Schulz) writes:
  14. > Hello,
  15. > I am trying to use SYS$GETSYI to retrieve the local node name.  The call is
  16. > returning successfully, but the buffer is empty and return length is 
  17. > zero.  Any help will be greatly appreciated.  The code fragment below
  18. > shows what I'm trying to do.
  19. > Thanks in advance,
  20. > David
  21. > -----------------------------------------------------------------------------
  22. > #include     <syidef.h>
  23. > int
  24. > main()
  25. > {
  26. >     int        status;
  27. >     short    version_len, node_len;
  28. >     char    version[8];
  29. >     char    node_name[15];
  30. >     struct item_list {
  31. >         short        length;
  32. >         short        code;
  33. >         int            buf_addr;
  34. >         int            return_length;
  35. >     } itmlst[] =
  36. >     {
  37. >         {    8,    SYI$_VERSION,        &version,        &version_len    },
  38. >         {    15,    SYI$_NODENAME,        &node_name,        &node_len    },
  39. >         {    0,    0,                    0,                0    }
  40. >     };
  41. >     status = SYS$GETSYIW(0, 0, 0, &itmlst, 0, 0, 0);
  42. >     /* Returns version ok, but not node_name */
  43. >     printf("version = <%8s>, length = %d\r\n", version, version_len);
  44. >     printf("node = <%15s>, length = %d\r\n", node_name, node_len);
  45. > }
  46. > -----------------------------------------------------------------------------
  47. > davids@kowari.cpsg.com.au
  48. > -----------------------------------------------------------------------------
  49. --
  50. The item code SYI$_NODENAME is returning the sysgen parameter SCSNODE name.
  51. Instead, translate the system logical name SYS$NODE. That logical name is
  52. always defined on a node running DECnet.
  53.  
  54. On VAXcluster nodes is the sysgen parameter SCSNODE defined to be the same as
  55. the DECnet node name, SYS$NODE. On standalon nodes should/must ?? the SCSNODE
  56. name be defined if you run the new queue manager, in V5.5.
  57.  
  58. -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  59. Jonas Lindholm                Internet: jlh@seb.se
  60. R-M3                    Phone:      +46 8 639 1000
  61. S-106 40 Stockholm            Fax:      +46 8 639 3762
  62. SWEDEN
  63.