How to modify the default enrichment of a field

Posted by

(to be used in a version)

STANDARD.SELECTION

Create  an I-desc that contains the new enrichment DX.CONTRACT.MASTER 15. 5 USR.FIELD.NAME. SHORT.NAME.SIZE

 16. 5 USR.TYPE....... I
 17. 5. 1 USR.FIELD.NO SHORT.NAME;
 17. 5. 2 USR.FIELD.NO CONTRACT.SIZE;
 17. 5. 3 USR.FIELD.NO @1:" - Contract Size: ":@2
 20. 5 USR.DISPLAY.FMT 50L
 24. 5 USR.SINGLE.MULT S

Create a subroutine to modify the enrichmentExample :

SUBROUTINE V.DXT.CONT.SIZE
$INSERT I_F.DX.CONTRACT.MASTER
 CHECKFILE(DX.TRA.CONTRACT.CODE) = 'DX.CONTRACT.MASTER':FM:'SHORT.NAME.SIZE'
  1. Attach this routine in the field #75 of the version:

VERSION DX.TRADE,FUT.INP 75. 1 CHECK.REC.RTN.. @V.DXT.CONT.SIZE

When you launch the version, it will give:

 Contract..... 10309        SMI FUTURE - Contract Size: 10

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.