15.17 General Template Variables

15.22.5 Special Template Variable Notes

15.22 Tips for Template Programming

                                                                      

Variable

Description

Type

Len

Dec

@@COMPANY

Name of current company / organization

A

30

 

@@DATE

Date in installation format (xx/xx/xx)

A

8

 

@@DATE8

Date in installation format (xx/xx/xxxx or xxxx/xx/xx)

A

10

 

@@DECIMAL

Decimal format ('.' or ',')

A

1

 

@@FUNCDES

Current LANSA function description

A

40

 

@@FUNCTION

Current LANSA function name

A

7

 

@@GENNAME/xx/yy/zzzzzz

Generate field names

A

Variable

 

@@INDEXii

Numeric value of index ii

N

2

0

@@JOBNAME

Current IBM i job name

A

10

 

@@JOBNBR

Current IBM i job number

A

6

 

@@PRODREL

Current LANSA release level

A

4

 

@@PROCDES

Current LANSA process description

A

40

 

@@PROCESS

Current LANSA process name

A

10

 

@@PRODUCT

Product name (i.e.: LANSA)

A

5

 

@@TIME

Current time (xx:xx:xx)

A

8

 

@@USER

Current IBM i user identity

A

10

 

 

 

Note:

        DEF_LINE NAME(#LINEDATA) FIELDS(@@GENNAME/01/06/#TOT )

 

            would result in this RDML code in a template:

        DEF_LINE NAME(#LINEDATA) FIELDS( #TOT0101 #TOT0102

                 #TOT0103 #TOT0104 #TOT0105 #TOT0106 )