Hi Pieter,

would you really do that? without serialization?
I hope you're using CS on the ST of the pointer to the obtained area.

And then release the storage in case the CS fails ...

Most areas that are shared have a documented serialization requirement.
The CS I suggested might be inappropriate if another mechanism is
documented.

Kind regards,
Abe Kornelis.
===========


Op 08/07/2023 om 12:17 schreef Pieter Wiid:
> If a work area is shared among exits, I would expect one of those exits to 
> getmain the area and store the address.
>
> Consider this:
>       LT Rx,IFAEXITP
>       JNZ ALLOCATED
>       STORAGE OBTAIN.....
> ALLOCATED DC 0H
>
>
> -----Original Message-----
> From: IBM Mainframe Assembler List [mailto:[email protected]] 
> On Behalf Of Guillaume Boesel
> Sent: Saturday, 08 July 2023 10:51
> To: [email protected]
> Subject: IEFU86 WorkArea use ?
>
> Hi,
> I'm testing IEFU86 exit to be able to write on syslog the SMF record number 
> on the fly. 
> It's just for educational purpose.
>
> When I use the workarea (retrieved from IFAEXITP) to store my WTO, SMF 
> record,etc it works pretty well.
> I am able to WTO the SMF records number in syslog. 
> But when I login/logoff, it fails with S0C4-11 (I don't use getmain/freemain 
> storage obtain/release in my code).
>
> When I use STORAGE OBTAIN/release to store my stuffs and don't use IEFU86 
> workarea, it works well. No more S0C4-11 when I login/logoff.
>
> According to this thread :
>
>  
> https://bit.listserv.ibm-main.narkive.com/cIdJ48RP/smf-exit-iefu086-work-area-size#post16
>
> the workarea seems shared (maybe why it fails for me ?) If it is the case, 
> what is the utility of the workarea ?
>
> Thank you for your help
> Guillaume
>
>

Reply via email to