I found Andrew Guidroz’s template in the June 2001 issue for the article “Creating #AT Statements The Easy Way”. It appears to be based on Lee’s template above with maybe some changes for ABC. I attached article PDF and TPL.
EmbedInfo_ABC.tpl (1.8 KB)
Article PDF
cmag-2001-06_Pages4-6.pdf (67.1 KB)
#!
#TEMPLATE(EmbedDefs_ABC,'Embed definitions'),FAMILY('ABC')
#! https://clarionmag.jira.com/wiki/download/attachments/399455/cmag-2001-06.pdf?api=v2
#!-----------------------------------------------------------------------------
#CODE(Embed_Info_ABC,'Embed definition and info ABC Andrew Guidroze')
#DISPLAY('From ClarionMag June 2001')
#DISPLAY('Article: Creating #AT Statements The Easy Way')
#DISPLAY('By Andrew Guidroz')
#!
#!Original name was Embeds.TPW in download cmag-2001-06.zip v3n6embeds.zip
#!-----------------------------------------------------------------------------
#DECLARE(%TwoParams,LONG)
#DECLARE(%ThirdParams,LONG)
#DECLARE(%ParamString,STRING)
#IF(%EmbedParameters)
#CLEAR(%TwoParams)
#SET(%TwoParams,INSTRING(',',%EmbedParameters,1,1))
#IF(%TwoParams)
#IF(SUB(%EmbedParameters,(%TwoParams+2),1) <> '(')
#SET(%ThirdParams,INSTRING(',',%EmbedParameters,1,%TwoParams+2))
#SET(%ParamString,'''' & SUB(%EmbedParameters,1,(%TwoParams-1)) & ''',''' & SUB(%EmbedParameters,(%TwoParams+2),((%ThirdParams) - (%TwoParams+2))) & ''',''' & SUB(%EmbedParameters,(%ThirdParams+2),LEN(%EmbedParameters)) & '''')
#ELSE
#SET(%ParamString,'''' & SUB(%EmbedParameters,1,(%TwoParams-1)) & ''',''' & SUB(%EmbedParameters,(%TwoParams+2),LEN(%EmbedParameters)) & '''')
#END
!>> #AT(%EmbedID,%ParamString),PRIORITY( ???? )
#ELSE
!>> #AT(%EmbedID,'%EmbedParameters'),PRIORITY( ???? )
#ENDIF
#ELSE
!>> #AT(%EmbedID),PRIORITY( ???? )
#ENDIF
!>> !! What follows is debugging info
!>> EmbedID........... = %EmbedID
!>> EmbedParameters... = %EmbedParameters
!>> Description....... = %EmbedDescription
!>> Process........... = %ProcessType
!>> Object............ = %ThisObjectName
!>> TwoParams ........ = %TwoParams
!>> ThreeParams....... = %ThirdParams
Both templates in use. The #AT() is the same (in this example), more comments in the newer template.
