CC_MSG_LEVEL ENVIRONMENT VARIABLE FOR CONNECTOR LOG HANDLING IN DATASTAGE

CC_MSG_LEVEL-DATASTAGE

CC_MSG_LEVEL is a environment variable in DataStage and you can set this at job level and mostly it will be helpful to debug the issue that you are facing with connectors in DataStage parallel jobs.

Whenever you report the issue to IBM support related to stages/connectors, IBM team will ask you to run the parallel job by enabling CC_MSG_LEVEL to some severity level and asks you to provide the exported run logs.

I was able to resolve the issue related to Greenplum connector in our DataStage tool by enabling this CC_MSG_LEVEL environment variable and identified that Greenplum connector is applying ROLLBACK at the end of transaction even though user is not issuing ROLLBACK command.

Set this environment variable to specify the minimum severity of the messages that the connector reports in the log file. At the default value of 3, informational messages and messages of a higher severity are reported to the log file.

The following table contains the valid values:

ValueDescription
0Disable
1Trace
2Debug
3Informational
4Warning
5Error
6Fatal

If you want to disable the usage of CC_MSG_LEVEL, you have to keep as CC_MSG_LEVEL=0.

Read also: DataStage Interview Questions-1

For example, to set the CC_MSG_LEVEL environment variable in the DataStage Designer, follow the steps below:

  1. Right-click on the job and select Properties.
  2. On the Job Properties dialog, select the Parameters tab.
  3. Click the Add Environment Variable button.
  4. On the Choose environment variable dialog, click on the (New…) text at the top of the dialog.
  5. In the Create new environment variable dialog, enter “CC_MSG_LEVEL” into both the Name and Prompt fields, and click OK.
  6. In the Choose environment variable dialog, under the User Defined section, click on the newly created CC_MSG_LEVEL text. (This should add a row for CC_MSG_LEVEL to the table on the Parameters tab.)
  7. On the Job Properties dialog click OK.
  8. Compile the job
  9. Run the job from the Director and, when prompted, enter “1” for the value of CC_MSG_LEVEL.

The debugging/tracing information will appear in the DataStage Director log output.

Read below articles if you are interested:

  1. When should we use Sparse Lookup or Join in DataStage?
  2. DataStage Certification 000-421 Sample Questions and Answers
  3. DataStage Scenario Based Question – Separate Numbers and Alphabets
  4. Capture unmatched records from join in datastage

Comments

comments

Leave a Reply

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

%d bloggers like this: