# use print, write or display in trigger

**URL:** <https://techcommunity.softwareag.com/t/use-print-write-or-display-in-trigger/190019>\
**Category:** Forum\
**Tags:** Adabas-Natural, Adabas, Adabas-on-Mainframes, Adabas-Basics-on-Mainframes\
**Created:** [August 4, 2016, 1:55pm UTC](https://techcommunity.softwareag.com/t/use-print-write-or-display-in-trigger/190019 "2016-08-04T13:55:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thierry\_Couairon](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/thierry_couairon/32/300_2.png) [@Thierry\_Couairon](https://techcommunity.softwareag.com/u/Thierry_Couairon)\
**Post date:** [August 4, 2016, 1:55pm UTC](https://techcommunity.softwareag.com/t/use-print-write-or-display-in-trigger/190019/1 "2016-08-04T13:55:13Z")

</div>

Hello,

I wrote a trigger that made one thing : PRINT (“TRIGGER OK”)  
In trigger screen, i enabled all options in Active State and apply trigger on all fields on file  
At end, i wrote a samll pgm that made an update of this file

In AOS, the number of trigger passage increments for one in screen subsytem activity  
But, in Started task, i see only this

```auto

Page 1 16-08-04 09:53:40 
09:53:40 *****ERRORS DURING INITIALIZATION***** 16-08-04 
                             - List Errors -                                    
NAT3022 Invalid command IS. DB/FNR 00000/00000. Subcode 00000.                  
NAT3403 ADAMODE was changed from 2 to 0.                                        
*****ADABAS Triggers and Stored Procedures*****                               
      - NATURAL Subsystem Initialization -                                      
Program + Library Location ... STPPDRIV SYSSPT                                  
Task Initialization Time ..... 2016-08-04 09:54:33                              
Task Identification Info ..... 01 ( SVC 214 )                                   
Task Trigger DBnr and Fnr .... (12,8)                                           
Task User Identification ..... ADAB12T NUC012                                  
Trace Indicator .............. A                                                
*-----------------------------------------------*        
*****ADABAS Triggers and Stored Procedures*****        
      - NATURAL Subsystem Initialization -               
Program + Library Location ... STPUTRAK SYSSPT           
Task Initialization Time ..... 2016-08-04 09:54:33       
Task Identification Number ... 01                        
Task User Identification ..... ADAB12T NUC012           
```

but nothing about my trace

an idea ?  
Brgds

---

<div class="post-metadata">

**Author:** ![Ch\_Mark](https://avatars.discourse-cdn.com/v4/letter/c/58956e/32.png) [@Ch\_Mark](https://techcommunity.softwareag.com/u/Ch_Mark)\
**Post date:** [October 5, 2016, 6:53am UTC](https://techcommunity.softwareag.com/t/use-print-write-or-display-in-trigger/190019/2 "2016-10-05T06:53:55Z")

</div>

Trigger code is looking fine. Is you responding OK?

---

<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:36pm UTC](https://techcommunity.softwareag.com/t/use-print-write-or-display-in-trigger/190019/3 "2021-04-02T15:36:40Z")

</div>


