> How do the C language and LE prepare a SVC99 I would *guess* that LE and/or the C library are prepending the userid before issuing SVC 99 -- I have no other explanation.
> do you use the same files to include when compiling? Not sure what you mean. Do you mean "am I including exactly the same code in all four or so of my C programs that open z/OS datasets by name?" No, each was coded more or less from scratch, with some reference back and forth. I really let myself get confused by code that clearly "expects" no prepending of userids but apparently that path never gets exercised. > can you compile your program and see what Assembler instructions are > generated? Yes, but I expect you would just see a library call and so would not learn much. > compare it with your working programs. I am now utterly convinced that all of the programs work utterly consistently and exactly as predicted by the documentation in Chapter 10 of the XLC P/G. Charles -----Original Message----- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of Elardus Engelbrecht Sent: Monday, September 17, 2012 4:31 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: C and LE -- when prepend userid on file names? Charles Mills wrote: >I guess I AM losing my mind. No, you are NOT losing your mind. I'm following your excellent thread, but I am wondering about one thing: >If I had my druthers the C library would not be doing me this "favor" at all. >If I issue fopen("FOO.BAR", then try to open FOO.BAR, not some other file. > "how I would re-design MVS" > They could universally (including DSN=) have made ".FOO.BAR" mean absolute > FOO.BAR but "FOO.BAR" mean userid.FOO.BAR. All of above lets me wonder about one thing: How do the C language and LE prepare a SVC99 (Allocation routine) or alternative, prepare an OPEN macro before calling those routines? I'm asking, because I know that those routines are calling RACF ('always call') upon receiving whatever DSN name and other attributes from the caller in your C program. Charles, do you use the same files to include when compiling? Or can you compile your program and see what Assembler instructions are generated? This is so you can compare it with your working programs. ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN