RNF2565 - Keyword INDDS is not allowed with this file

By kimot, 24 December, 2022

Using keyword INDARA in display file allow us to use more readable syntax in HLL programs

Snippet of DDS source (display file)

A        DSPSIZ(24 80 *DS3)                   
A        REF(*LIBL/WTCHTGLOG)                
A        INDARA                               
A        CF12(12 'End of job indication for all displays in file') 
... 

with INDARA you can use for example Dsp.Wtchtgsts in this RPG code 

dcl-f wtchtg_scr workstn indds(Dspf) sfile(SUBFILE:Z1RRN) ; 
                                                             
dcl-ds Dspf qualified ;    
  Exit ind pos(3) ;        
  Refresh ind pos(5) ;     
  Wtchtgsts ind pos(40) ;  
end-ds;
...

if result = 'OK' ;        
   Dspf.Wtchtgsts = *on;   
else ;                    
    Dspf.Wtchtgsts = *off;  
endif;