DSRMessage

Archive of postings to DataStageUsers@Oliver.com. This forum intended only as a reference and cannot be posted to.

Moderators: chulett, rschirm

Locked
admin
Posts: 8720
Joined: Sun Jan 12, 2003 11:26 pm

DSRMessage

Post by admin »

What does the function DSRMessage do? I cant find any reference to it.

Thanks,

Kenny
admin
Posts: 8720
Joined: Sun Jan 12, 2003 11:26 pm

Post by admin »

You can find out by examining source code, for example the source code for ExecTCL. Its not really intended for public use, although I do use it. AFAIK its purpose is to construct a message in the correct language. It is called with the key (token), a variable to receive the message, and a default message in case the local language message does not exist or the resource file is inaccessible etc. Its DEFFUN is in DSINCLUDE/DSR_COMCONST.H, where you will note that it is not catalogued locally; its in the system, or global, catalogue. Its also used to add parameters to printf style messages, for example for the log file. Examine the dictionary of a DataStage log file for FULL.TEXT, whose expression is
SUBR("*DataStage*DSR_MESSAGE",@ID,MSG.TEXT,RAISE(MSG.ARGS))


-----Original Message-----
From: Salstrom, Kenneth [mailto:Kenneth.Salstrom@msnyuhealth.org]
Sent: Friday, 18 May 2001 04:02
To: DataStage List (E-mail)
Subject: DSRMessage


What does the function DSRMessage do? I cant find any reference to it.

Thanks,

Kenny
Locked