Bob, For SAS/C it also depends on whether the C program has been compiled RENT or NORENT (the default). For RENT, see the doc at:
http://support.sas.com/documentation/onlinedoc/sasc/doc750/html/clug/zrocreen.htm#zameshar eBob.com wrote: > > Thanks Dave. I am using SAS/C. But whatever my RENT-type options might be > I will not be able to change them. I think that I am going to have to come > up with another approach. > > Thanks, Bob > > "Thomas David Rivers" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > > > Hi Bob > > > > Is your C code compiled with the RENT option (-frent in Systems/C), if > > so, the extern character array is actually a DXD value, and would be > > referenced from the assembly language code via a Q-CON. > > > > If you want to reference the assembler symbol from C, in Systems/C > > you would either compile the program as no-rent, or use the __norent > > keyword, as in: > > > > extern __norent char XXXXXXXD[]; > > > > I believe IBM C has a #pragma which is similar. > > > > And - you might need to be careful about double levels of indirection > > in the assembly code... > > > > > > - Dave Rivers - > > > > > > > > eBob.com wrote: > >> I have no problem calling Assembler code from C. But I have been unable > >> to find out how to simply find something in Assembler code from C code. > >> I've tried several variations on the following but nothing works. I find > >> no errors in the clink and linkedit. > >> > >> C code: > >> > >> extern char XXXXXXXD??(??); /* ??( and ??) are "trigraphs" for [ and ] > >> */ > >> > >> printf("date for whatever is %s\n",XXXXXXXD); > >> > >> > >> Assembler code: > >> * > >> ENTRY XXXXXXXD > >> XXXXXXXD DC A(MYDATE) > >> MYDATE DC C'&SYSDATE',X'00' > >> > >> > >> Any help would sure be appreciated. > >> > >> Thanks, Bob > > > > > > -- > > [EMAIL PROTECTED] Work: (919) 676-0847 > > Get your mainframe programming tools at http://www.dignus.com -- Don Poitras - zSeries R & D - SAS Institute Inc. - SAS Campus Drive mailto:[EMAIL PROTECTED] (919)531-5637 Fax:677-4444 Cary, NC 27513 ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html

