Information icon IBM InfoSphere DataStage and InfoSphere QualityStage, Version 8.5
space Feedback

Space Function

Returns a string containing the specified number of blank spaces.

Syntax

Space (spaces)

spaces specifies the number of spaces in the string. If spaces is a null value, it generates a runtime error.

Example

This is an example of the Space function used to generate a string with a variable number of spaces:

MyStr = Space(20 - Len(Arg1)):Arg1 
* pad with spaces on left

PDFThis topic is also in the IBM InfoSphere DataStage Server Job Developer's Guide.

Update timestamp Last updated: 2010-09-30