IDMS Queue initiated task for dialog not in default dictionary
search cancel

IDMS Queue initiated task for dialog not in default dictionary

book

Article ID: 58667

calendar_today

Updated On:

Products

IDMS IDMS - Database IDMS - ADS

Issue/Introduction

Can a mainline dialog in an application dictionary that is not the CV default dictionary be triggered by a queue record being written to the queue?

Environment

IDMS - All Supported Releases

Resolution

Define a queue in the SYSGEN to invoke a task. The name of this task must be the same as the mainline dialog name.

For example:

ADD QUEUE qname     
    ENABLED                
    INVOKES TASK dlgname  
    RETENTION IS 3         
    THRESHOLD IS 1         
    UPPER LIMIT IS 10.       
    .                      

The THRESHOLD IS 1 says the dialog will be invoked when one queue record is written.

The dialog name is dlgname and there is also a task defined as dlgname that invokes ADSORUN1.

For example:

ADD TASK dlgname                                         
    ENABLED                                                
    EXTERNAL                                               
    EXTERNAL WAIT IS SYSTEM                                
    INACTIVE INTERVAL IS SYSTEM                            
    INVOKES PROGRAM ADSORUN1                               
    NOINPUT                                                
    NOMAP                                                  
    ON COMMIT SYSTEM                                       
    ON ROLLBACK CONTINUE SYSTEM                            
    PRINT KEY IS SYSTEM                                    
    PRIORITY IS 100                                        
    RESOURCE TIMEOUT INTERVAL IS SYSTEM PROGRAM IS SYSTEM  
    SAVE                                                   
    LOCATION IS ANY                                        
    STORAGE LIMIT IS SYSTEM                                
    LOCK LIMIT IS SYSTEM                                   
    CALL LIMIT IS SYSTEM                                   
    DBIO LIMIT IS SYSTEM                                   
    MAXIMUM CONCURRENT THREADS IS OFF                      
    AREA ACQUISITION THRESHOLD IS DEFAULT                  
    PROTOCOL IS DEFRESP                                    
    QUIESCE WAIT IS SYSTEM                                 
    TRANSACTION SHARING IS SYSTEM                          
    .                                                      

In the default LOADLIST add an entry for the application.

For example:

 	DICTNAME IS APPLDICT 

where the dialog and application reside in APPLDICT.
Be sure to generate the SYSGEN.