LSTSRV-L Archives

LISTSERV Site Administrators' Forum

LSTSRV-L

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Topic: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Wed, 30 Jan 2002 13:44:50 -0500
text/plain (31 lines)
We are running DBMS mail merge. A column of the table may be NULL.

We find that if we use the substitution for that column, and its value is
NULL, then the substitution is ignored.

For example:

 //TO DD *
 SELECT SALUTATION, FIRST_NAME, LAST_NAME FROM ....
 /*
 //DATA DD *,EOF
 ...
 Dear &SALUTATION; &FIRST_NAME; &LAST_NAME;,
 ...

This works fine when SALUTATION is not NULL. But when it is NULL, the
substitution text itself is printed, e.g.:

 Dear &SALUTATION; John Smith,

I tried using a .BB conditional block to check the value of SALUTATION but
it does not seem that I can check for NULL.

Seems to me this is a bug, or at least unfriendly behavior.

Is there any workaround for this (short of running two separate DISTRIBUTE
jobs)?

--
Dave Rubin

ATOM RSS1 RSS2