BASIC Programming

These topics provide a programmer's reference guide for the IBM® InfoSphere® DataStage® BASIC programming language.

The InfoSphere DataStage BASIC described here is the subset of BASIC commands most commonly used in InfoSphere DataStage. You are not limited to the functionality described here, however, you can see BASIC Language Reference for more information. Some areas need care. The main points to watch are as follows:

  • Do not use any command, function, statement, or subroutine that requires any user input.
  • To stop a running job, use the DSLogFatal subroutine. If you use a Stop or Abort statement, the job might be left in an irrecoverable condition.
  • Avoid using the Print statement. Use a call to DSLogInfo to write to the job log file instead.
  • Avoid using the Execute statement to execute server engine commands. Use a call to DSExecute instead.