Path: utzoo!mnetor!uunet!husc6!rutgers!sdcsvax!ucbvax!MGHCCC.HARVARD.EDU!saganich%frodo.DECnet From: saganich%frodo.DECnet@MGHCCC.HARVARD.EDU ("FRODO::SAGANICH") Newsgroups: comp.os.vms Subject: Using the $trnlnm system service from c Message-ID: <8801162115.AA16557@ucbvax.Berkeley.EDU> Date: 16 Jan 88 15:50:00 GMT Sender: daemon@ucbvax.BERKELEY.EDU Reply-To: "FRODO::SAGANICH" Organization: The ARPA Internet Lines: 39 Dear InfoVaxers, This is my third try at this so my apologys is it comes thru more then once. My mailer is somewhat braindead and keeps coming back and telling me it doesn't know where to send messages if it can't find send my message. Ow well, here goes nothing. Its friday and maybe thats why I can't figure this out but maybe someone else can help. I am trying to use the system service sys$trnlnm to translate a logical name. However, how to define the struct for the itemlst eludes me. All I want to do is have in my hot little hands a pointer to a string containing the translated logical. Can anyone help? Thanks Al Saganich, Systems Analyst, Mass General Hosp. Saganich%frodo.decnet@mghccc.harvard.edu heres what I'm trying to do. #include #include /* the system reurn codes */ #include /* the descriptor definitions */ #include /* the attributes to $trnlnm */ /* translate the give logical name and print the translation */ main() { int sys$trnlnm(); $DESCRIPTOR(Log_nam,"EDTINI"); $DESCRIPTOR(Tab_nam,"PROCESS"); sys$trnlnm(NULL,&Tab_nam,$Log_nam,NULL,&itemlst) printf("%s\n",somestringpointer} ------