Send map parameters using Echo or other + Call external map

Formally known as "Mercator Inside Integrator 6.7", DataStage TX enables high-volume, complex transactions without the need for additional coding.

Moderators: chulett, rschirm

Post Reply
Zeek
Participant
Posts: 11
Joined: Tue Jun 21, 2005 6:32 am
Location: Geneva
Contact:

Send map parameters using Echo or other + Call external map

Post by Zeek »

Hi All,

Do you have any exemple using echo variable to be passed through maps ?
I creat a generic map that will be called by other map to insert log information into a hashed file. The map_start_log use an echo variable I want to change when I call the map using the run function.

Could you help me ?

Now, this generic map has been buid, may I able to call this map from an external map ? I saw that you may use the run function with the map.mmc definition, but it's not working. Any info or exemple ?

Rgds,
Zeek
janhess
Participant
Posts: 201
Joined: Thu Sep 18, 2003 2:18 am
Location: UK

Post by janhess »

VALID(
RUN("MERC_CL_04.mmc", ECHOIN(1,package(In1) ) + " " + ECHOIN(2,TABLE Fields:In2) +
" -OD1 '-MDQ " + MDQ Fields:In2 + " -DBNAME " + DBNAME Fields:In2 + " -TABLE" + "<SP>" + TABLE Fields:In2 + " -T+'"))
Zeek
Participant
Posts: 11
Joined: Tue Jun 21, 2005 6:32 am
Location: Geneva
Contact:

Post by Zeek »

Hi Janhess,

Thank you for your reply. You reply is more sofisticated than excpected.
I found how to use externam mmc map using the RUN finction
=Run("Map_Start_Log.mmc"," -IE1 1")

But with your reply, I may imagine what I will be able to do in the futur.
Thank you very much.

Rgds,
Zeek
Post Reply