# Purge predict files

**URL:** <https://techcommunity.softwareag.com/t/purge-predict-files/185132>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, Natural-Add-on-Products, Natural-Predict\
**Created:** [November 17, 2015, 12:45pm UTC](https://techcommunity.softwareag.com/t/purge-predict-files/185132 "2015-11-17T12:45:31Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gustavo\_Alcazar1](https://avatars.discourse-cdn.com/v4/letter/g/9de0a6/32.png) [@Gustavo\_Alcazar1](https://techcommunity.softwareag.com/u/Gustavo_Alcazar1)\
**Post date:** [November 17, 2015, 12:45pm UTC](https://techcommunity.softwareag.com/t/purge-predict-files/185132/1 "2015-11-17T12:45:31Z")

</div>

I need to remove many predict definition files.  
I can create a workplan which includes all files I want to be purged but I need to enter NEXT and PURGE commands for each file.

Is there any way to automatically remove all predict files or several predict files (userviews and adabas views) without prompting for delete confirmation?

---

<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:** [November 18, 2015, 12:01am UTC](https://techcommunity.softwareag.com/t/purge-predict-files/185132/2 "2015-11-18T00:01:45Z")

</div>

Hi Gustavo,

Have a look at using the Predict API. It is documented in the Administration manual.

Cheers, Graeme

---

<div class="post-metadata">

**Author:** ![Gustavo\_Alcazar1](https://avatars.discourse-cdn.com/v4/letter/g/9de0a6/32.png) [@Gustavo\_Alcazar1](https://techcommunity.softwareag.com/u/Gustavo_Alcazar1)\
**Post date:** [November 23, 2015, 2:17pm UTC](https://techcommunity.softwareag.com/t/purge-predict-files/185132/3 "2015-11-23T14:17:38Z")

</div>

Thanks Graeme.

I’ve created a program inside sysdic library with the following code:

Command ===\> Mode Struct Lib SYSDIC  
\*\*\*\*\*\* \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* top of data \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
000010 DEFINE DATA  
000020 LOCAL USING PALPUD42  
000030 \*  
000040 END-DEFINE  
000050 \*  
000060 MOVE ‘D’ TO #FUNCTION  
000070 MOVE ‘FI’ TO #OBJECT-TYPE  
000080 MOVE ‘FILE-NAME’ TO #OBJECT-ID  
000090 \*  
000100 CALLNAT ‘PALUD42’ #FUNCTION #OBJECT-TYPE #OBJECT-ID  
000110 \*  
000120 END  
\*\*\*\*\*\* \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* bottom of data \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

But when I try to run o stow it I receive the following error:

NAT0082 Invalid command, or LDA PALPUD42 does not exist in library. ?  
? VVVVVVVV ?  
?0020 LOCAL USING PALPUD42

I’m novice in Adabas and Natural, any idea about what’s the problem??

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![Ralph\_Zbrog](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/ralph_zbrog/32/78_2.png) [@Ralph\_Zbrog](https://techcommunity.softwareag.com/u/Ralph_Zbrog)\
**Post date:** [November 23, 2015, 10:45pm UTC](https://techcommunity.softwareag.com/t/purge-predict-files/185132/4 "2015-11-23T22:45:57Z")

</div>

If you haven’t misspelled the module’s name (PALPUD42), then try running your program from a different library. I’m guessing that the LDA is in SYSDICBE.

---

<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, 3:34pm UTC](https://techcommunity.softwareag.com/t/purge-predict-files/185132/5 "2021-04-02T15:34:41Z")

</div>


