FTP Plug-in

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
Rajendran
Participant
Posts: 16
Joined: Wed Jul 28, 2004 7:56 am
Location: Dubai

FTP Plug-in

Post by Rajendran »

Hi,

Can anyone explain what is the use of NullString Properties in FTP Plug-in Stage :?: .

By,
Rajendran.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

It defines a string with which NULL is represented in the data stream to be transferred via FTP. For example, the remote file might represent NULL as the string "<NULL>".
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Rajendran
Participant
Posts: 16
Joined: Wed Jul 28, 2004 7:56 am
Location: Dubai

Post by Rajendran »

ray.wurlod wrote:It defines a string with which NULL is represented in the data stream to be transferred via FTP. For example, the remote file might represent NULL as the string "<NULL>".
Can u give me an example how to pass Null string
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

You can extract one from a database table, where the column contains a NULL.
The concept of null is irrelevant to text files. It is mainly text files that you pass using FTP. Therefore, you can decide any convention you like for passing null values.
In general there are two strategies.
  • Choose some string that will never appear in data, such as "<NULL>", and use that to represent null.

    If your data are fixed width, allow one space preceding each column, and use some character (for example "%") placed there to indicate that the data in the column following it should be ignored, and null used instead.
Within DataStage you can generate NULL for loadig into a database by using the system variable @NULL.

There is also a system variable @NULL.STR, which is a string representation of the internal storage of NULL in DataStage (and can participate in expressions, functions, and so on, without returning NULL).
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply