# User exit 2 - PLOG extents

**URL:** <https://techcommunity.softwareag.com/t/user-exit-2-plog-extents/90599>\
**Category:** Forum\
**Tags:** Adabas-Natural, Adabas, Adabas-on-Linux, Adabas-Installation-and-Setup-on-Open-Systems\
**Created:** [July 2, 2009, 10:07am UTC](https://techcommunity.softwareag.com/t/user-exit-2-plog-extents/90599 "2009-07-02T10:07:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Graeme\_Lane1](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/graeme_lane1/32/20968_2.png) [@Graeme\_Lane1](https://techcommunity.softwareag.com/u/Graeme_Lane1)\
**Post date:** [July 2, 2009, 10:07am UTC](https://techcommunity.softwareag.com/t/user-exit-2-plog-extents/90599/1 "2009-07-02T10:07:26Z")

</div>

Hi,

I’m trying to set up Adabas user exit 2 to archive PLOGs to TSM as they are closed.

My C skills are rudimentary but I have managed to modify the supplied example C program to call a script passing the file name of the closed PLOG as a parameter.

This works fine if the PLOG is for a complete session but if it is an extent (eg log switch without ET-sync) where the file name has the (n) extension, I can’t work out a way to build and pass the file name. Does anyone else have a working example they would be willing to share that caters for this situation?

Regards,

Graeme Lane

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [July 3, 2009, 1:24pm UTC](https://techcommunity.softwareag.com/t/user-exit-2-plog-extents/90599/2 "2009-07-03T13:24:27Z")

</div>

Hi Graeme,

The parameter logname contains also the information on the PLOG extent; its value is, for example, “PLG.5(2)”.

Regards,  
Wolfgang

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 2:57pm UTC](https://techcommunity.softwareag.com/t/user-exit-2-plog-extents/90599/3 "2021-04-02T14:57:13Z")

</div>


