Skip to Content
0
Former Member
Apr 15, 2010 at 01:14 PM

Execute 2 or more LGF

42 Views

Hi Experts, i try to reply data from application to another through LGF Scrip Logic, but when i execute the following script and run the package, this fail show a message "This key is already associated with an element of this collection"

*DESTINATION_APP=EERR

*RENAME_DIM ENTITY1 = ENTITY2

*RENAME_DIM ACCOUNT = USERDIM2

*ADD_DIM USERDIM1= Comerce

*WHEN ENTITY1.ATRIBUTE1

*IS "Family_Comerce"

*REC(FACTOR = 1)

*ENDWHEN

*CLEAR_DESTINATION

*PUT USERDIM1= Manufacture

*WHEN ENTITY1.ATRIBUTE1

*IS "Family_manufacture"

*REC(FACTOR = 1)

*ENDWHEN

I try to copy the same structure Destination_App after the first "ENDWHEN, but have the same error.

Other option was alter on the Dynamic package Script of the package adding on the task a new LOGINFILE wich call the other LGF file so this package execute 2 LOGIN FILE, but when i execute the package only execute the second LGF file.

Any idea about its is posible to execute two LGF in the same package or else how i can change the value of *ADD_DIM?

Thanks in advance