Skip to Main Content

GoldenGate

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

I have macro with params, but I want to pass some params not all.

User_C50GFJun 15 2021

sometimes I want to pass only 3 params in macro, how can I do that?

Macro #sync_exception
PARAMS (#SCHEMA_NAME,#MAP_TABLE,#TABLE_NAME,#TABLE_CODE, #key1,#key2,#key3,#key4,#key5,#key6,#key7)
BEGIN,
MAP #SCHEMA_NAME.#MAP_TABLE, TARGET CORE_NAT.GG_SYNC_ERR_LOG,
EXCEPTIONSONLY,
INSERTALLRECORDS
COLMAP(
ID = @COLSTAT(NULL),
TABLE_NAME = #TABLE_NAME,
KEY1 = #key1,
KEY2 = #key2,
KEY3 = #key3,
KEY4 = #key4,
KEY5 = #key5,
KEY6 = #key6,
KEY7 = #key7,
ERROR_CODE = @GETENV ('LASTERR', 'DBERRNUM'),
ERROR_MSG = @GETENV ('LASTERR', 'DBERRMSG'),
CREATED_DATE = @DATENOW (),
TABLE_CODE = #TABLE_CODE,
ERR_DETAILS = @GETENV ('LASTERR', 'OPTYPE'));
END;

Comments

ORASCN

Hi ,
Check the below,

macro #ggexception
params (#source_schema, #table_name, #target_schema, #exception_table)
begin
map #source_schema.#table_name, TARGET #target_schema.#excception_table,
exceptionsonly, insertallrecords
colmap
(usedefaults,
gg_hostname = @getenv('ggenvironment','hostname'),
gg_db_name = @getenv('ggfileheader','dbname'));
end;

Regards,
Veera

1 - 1

Post Details

Added on Jun 15 2021
1 comment
86 views