How can Template #AT %DatasectionBeforeReport insert a variable def if not already declared?

This should work:

#Group(%BPInjectLocVarRptHdr),AUTO
    #EQUATE(%LocRptHeader, 'LocRptHeader')
    #IF(~INLIST(%LocRptHeader, %LocalData))
%[20]LocRptHeader STRING('%Procedure')
    #ENDIF

INLIST( Item , Multi-Valued Symbol ) is one of the Built-in Template Procedures

2 Likes