Re: Data space addressability
Thanks to Bob, Ed, Roland, Gil, and Dave for their very helpful answers! John - Original Message - From: "Dave Cartwright" <[EMAIL PROTECTED]> Newsgroups: bit.listserv.ibm-main To: Sent: Wednesday, October 12, 2005 2:40 PM Subject: Re: Data space addressability > On Tue, 11 Oct 2005 23:41:33 +0200, John Krew <[EMAIL PROTECTED]> > wrote: > > >Someone who is well versed in Unix and less so in the mainframe world has > asked me a question which > >sounds preposterous on the face of it. He asked if it would be at all > feasible for a C program to > >establish addressabilty to memory contained in a data space. > > > > > > I just came across this product; > > http://www.exspans.com/Matrix.html > > On initial reading it may help you. > > Courtesy of; > ttp://dmoz.org/Computers/Software/Operating_Systems/Mainframe/IBM/Freeware/ > Which is a link off the CBT site. > DC > > -- > 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 > -- 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
Re: Data space addressability
On Tue, 11 Oct 2005 23:41:33 +0200, John Krew <[EMAIL PROTECTED]> wrote: >Someone who is well versed in Unix and less so in the mainframe world has asked me a question which >sounds preposterous on the face of it. He asked if it would be at all feasible for a C program to >establish addressabilty to memory contained in a data space. > > I just came across this product; http://www.exspans.com/Matrix.html On initial reading it may help you. Courtesy of; ttp://dmoz.org/Computers/Software/Operating_Systems/Mainframe/IBM/Freeware/ Which is a link off the CBT site. DC -- 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
Re: Data space addressability
John, It is feasible for a C program to address memory in a data space using Cell Pool Services. Member CSRCPC in SYS1.SAMPLIB provides all the definitions you need. Cell Pool services require you to be in AR-mode and know the ALET of the data space. Every CP service receives the ALET as a parameter, there is no real need to handle the ARs yourself. So you would need a small ASM program to change to AR-mode and issue DSPSERV and ALESERV to create a data space and an ALET for it then return the ALET. After that you can do all the data manipulation from C only. HTH, Gil. On 10/11/05, John Krew <[EMAIL PROTECTED]> wrote: > > Someone who is well versed in Unix and less so in the mainframe world has > asked me a question which > sounds preposterous on the face of it. He asked if it would be at all > feasible for a C program to > establish addressabilty to memory contained in a data space. > > Considering the need to manipulate access registers, and not seeing any > way to reliably set an > access register from a C program (or reliably pair it with a GPR > containing the pointer), I told > him "no". Am I overlooking anything that anybody is aware of? > > John Krew > -- 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
Re: Data space addressability
Point him to the z/OS Window Service which is available for most HLL like Cobol, PL/1 and C/C++ Also with the z/OS R6 C/C+ Compiler there is native support for 64 bit and no longer need for data spaces. Roland -Original Message- From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] On Behalf Of John Krew Sent: Tuesday, October 11, 2005 11:42 PM To: IBM-MAIN@BAMA.UA.EDU Subject: Data space addressability Someone who is well versed in Unix and less so in the mainframe world has asked me a question which sounds preposterous on the face of it. He asked if it would be at all feasible for a C program to establish addressabilty to memory contained in a data space. Considering the need to manipulate access registers, and not seeing any way to reliably set an access register from a C program (or reliably pair it with a GPR containing the pointer), I told him "no". Am I overlooking anything that anybody is aware of? John Krew -- 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
Re: Data space addressability
The SAS/C Systems Programming Environment supports it. Bob John Krew wrote: Someone who is well versed in Unix and less so in the mainframe world has asked me a question which sounds preposterous on the face of it. He asked if it would be at all feasible for a C program to establish addressabilty to memory contained in a data space. Considering the need to manipulate access registers, and not seeing any way to reliably set an access register from a C program (or reliably pair it with a GPR containing the pointer), I told him "no". Am I overlooking anything that anybody is aware of? John Krew -- 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
Re: Data space addressability
John Krew wrote: Someone who is well versed in Unix and less so in the mainframe world has asked me a question which sounds preposterous on the face of it. He asked if it would be at all feasible for a C program to establish addressabilty to memory contained in a data space. Considering the need to manipulate access registers, and not seeing any way to reliably set an access register from a C program (or reliably pair it with a GPR containing the pointer), I told him "no". Am I overlooking anything that anybody is aware of? Yes. You're overlooking Systems/C at http://www.dignus.com/dcc/ -- - | Edward E. Jaffe|| | Mgr, Research & Development| [EMAIL PROTECTED]| | Phoenix Software International | Tel: (310) 338-0400 x318 | | 5200 W Century Blvd, Suite 800 | Fax: (310) 338-0801| | Los Angeles, CA 90045 | http://www.phoenixsoftware.com | - -- 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
Data space addressability
Someone who is well versed in Unix and less so in the mainframe world has asked me a question which sounds preposterous on the face of it. He asked if it would be at all feasible for a C program to establish addressabilty to memory contained in a data space. Considering the need to manipulate access registers, and not seeing any way to reliably set an access register from a C program (or reliably pair it with a GPR containing the pointer), I told him "no". Am I overlooking anything that anybody is aware of? John Krew -- 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