quote:
Originally posted by dhagen:
You don't have to write anything. All the logging is already done for you.
From the DMC, goto: Workspace/Logs and Traces/DataMigrator Log and Statistics
Actually...my requirement is to create a separate audit table which captures some log information.
so i tried to create a separate procedure which logs data into the audit table.
It is giving some silly error.
-SET &&DATA_FLOW_END_TIME=FPRINT(HGETC(8,'HYYMDS'),'HYYMDS','A');
-SET &&ETLLOG_LAST_SEQ_NO=1;
-SET &&STATUS= IF &&CM__RETURN NE 0 THEN 'ERROR' ELSE 'SUCCESS';
-*SQL SQLMSS SET SERVER CJICLOCAL
ENGINE SQLMSS SET DEFAULT_CONNECTION CON01
SQL SQLMSS
INSERT INTO druganalytics.dbo.audit_table (Serial_No.,Flow_Name,Status,Records_Inserted) VALUES
('1','hi','succ','60');
END
-RUN
-SET &&DATA_FLOW_NAME='hi';
-SET &&DATA_FLOW_START_TIME=&&DATA_FLOW_END_TIME;
-SET &&DATA_FLOW_END_TIME='time';
I tried to insert hard coded value but it gives the following error,
09/18/2017 17:02:13 DEVNODE 0 ERROR AT OR NEAR LINE 6 IN PROCEDURE sreejith/flow_demo
09/18/2017 17:02:13 DEVNODE (FOC295) A VALUE IS MISSING FOR: &&CM__RETURN
How can &&CM_RETURN value is missing.?
confused!!
WF8206,Windows 7,8,10
HTM,PDF,EXCEL