Entering code

You can enter or edit code for a routine on the Code page in the Server Routine dialog box.

The first field on this page displays the routine name and the argument names. If you want to change these properties, you must edit the fields on the General and Arguments pages.

The main part of this page contains a multiline text entry box, in which you must enter your code. To enter code, click in the box and start typing. You can use the following standard Windows edit functions in this text box:

  • Delete using the Del key
  • Cut using Ctrl-X
  • Copy using Ctrl-C
  • Paste using Ctrl-V
  • Go to the end of the line using the End key
  • Go to the beginning of the line using the Home key
  • Select text by clicking and dragging or double-clicking

Some of these edit functions are included in a shortcut menu which you can display by right clicking. You can also cut, copy, and paste code using the buttons in the toolbar.

Your code must only contain BASIC functions and statements supported by IBM® InfoSphere® DataStage®.

If NLS is enabled, you can use non-English characters in the following circumstances:

  • In comments
  • In string data (that is, strings contained in quotation marks)

The use of non-English characters elsewhere causes compilation errors.

If you want to format your code, click the Format button on the toolbar.

The return field on this page displays the return statement for the function or subroutine. You cannot edit this field.