Thanks 
The only thing STORAGE shouldn't return zero
If the address space is swapped out

Thanks

Sent from my iPhone

> On Jan 4, 2016, at 5:12 AM, Rob Scott <[email protected]> wrote:
> 
> Search the archives for IBM-Main as this has been discussed several times.
> 
> Using CHKEAX=NO on ALESERV is not to be encouraged (to say the least) and 
> will NOT work reliably for swappable address spaces.
> 
> If you are in control on both address spaces, there are documented and 
> supported techniques to access memory in either address spaces from the other 
> - see the extended addressability manual.
> 
> If your program is an uninvited "snooper" into a foreign address space - then 
> using an SRB is typically the preferred option, however you have to 
> understand the implications of what you are doing.
> 
> 
> 
> -----Original Message-----
> From: IBM Mainframe Discussion List [mailto:[email protected]] On 
> Behalf Of michealbutz
> Sent: Thursday, December 31, 2015 11:47 PM
> To: [email protected]
> Subject: Acessing storage in a other address space
> 
> Hi
> 
> 
> 
> I am trying to access storage in a other address space
> 
> 
> 
> I am logged on to TSOA and am running the following code under TESTAUTH
> 
> 
> 
>          L     R5,0(,R5)
> 
>          USING ASCB,R5
> 
>          L     R6,ASCBASSB
> 
>          USING ASSB,R6
> 
>          MVC   STOKENC,ASSBSTKN   Get the job's STOKEN
> 
>          MODESET KEY=ZERO,MODE=SUP
> 
>          XR     R1,R1
> 
> 
> 
> 
> 
> 
> 
>          ALESERV ADD,                                                  X
> 
>                STOKEN=STOKENC,                                         X
> 
>                CHKEAX=NO,                                              X
> 
>                ACCESS=PUBLIC,                                          X
> 
>                ALET=ALET,                                              X
> 
> 
> 
> 
> 
>         LA      R0,111
> 
>         STORAGE OBTAIN,                                               X
> 
>               LENGTH=(R0),                                            X
> 
>               ADDR=(R9),                                              X
> 
>               SP=0,                                                   X
> 
>               BNDRY=DBLWD,                                            X
> 
>               ALET=ALET
> 
> 
> 
> LATER ON I go to into access register mode
> 
> SAC 512
> 
> 
> 
>    And Move data to the storage area
> 
>    after doing so I versify the move under TESTAUTH
> 
> 
> 
> Via
> 
> 
> 
> L 9R? AR(9) L(111) XC
> 
> 
> 
> However in the target address space using TASID Storage View Option
> 
> the data I see at the address is not there, I am still under TESTAUTH at this
> 
> point (meaningthe task hasn't ended) in the first address space
> 
> 
> 
> both ALESERV and Storage have return code zeros
> 
> 
> 
> Thanks in Advance
> 
> 
> 
> 
> 
> 
> ----------------------------------------------------------------------
> For IBM-MAIN subscribe / signoff / archive access instructions, send email to 
> [email protected] with the message: INFO IBM-MAIN
> ================================
> Rocket Software, Inc. and subsidiaries ■ 77 Fourth Avenue, Waltham MA 02451 ■ 
> +1 800.966.3270 ■ +1 781.577.4321
> Unsubscribe From Commercial Email – [email protected]
> Manage Your Subscription Preferences - 
> http://info.rocketsoftware.com/GlobalSubscriptionManagementEmailFooter_SubscriptionCenter.html
> Privacy Policy - http://www.rocketsoftware.com/company/legal/privacy-policy
> ================================
> 
> This communication and any attachments may contain confidential information 
> of Rocket Software, Inc. All unauthorized use, disclosure or distribution is 
> prohibited. If you are not the intended recipient, please notify Rocket 
> Software immediately and destroy all copies of this communication. Thank you.
> 
> ----------------------------------------------------------------------
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to [email protected] with the message: INFO IBM-MAIN

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to