Page 1 of 1

Need help in creating a Basic Program

Posted: Wed Dec 28, 2005 4:02 pm
by Titto
while i am reading thru the Basic programming document, i found this example to edit or create a Basic program, but I am little confused can any one guide me to create a basic program using Unix/ DataStage prompt.

Code: Select all

Editing Programs in DataStage
On UNIX systems you can invoke vi from the DataStage system prompt
using this syntax:
VI pathname
pathname is the relative or absolute pathname of the program you want to
edit. For example, the program PAYROLL is stored as a record in the file
BP. To edit it with vi, enter:
>VI BP/PAYROLL
If you want to use vi, or any other editor, directly from DataStage, you can
create a VOC entry that invokes your chosen editor. For example, this VOC
entry calls edit from DataStage on Windows NT:
EDIT
001 V
002 \win25\edit.com
003 PR

Posted: Wed Dec 28, 2005 4:16 pm
by WoMaWil
That is a relict from Universe times. It should work but does not make much sense any more doing it this way. Write you Basic programms in DataStage whether as Routine or in your job.

Wolfgang

Posted: Wed Dec 28, 2005 4:20 pm
by Titto
Hi,
You mean to say use routine or use JobControl area to create a Basic program is it?

Posted: Wed Dec 28, 2005 5:03 pm
by ray.wurlod
DataStage does not support stand-alone BASIC programs - in DataStage you must only create routines that can be invoked by other DataStage components. Yes, you do this in the Routines branch or in the Job Control tab of job properties.

Posted: Thu Dec 29, 2005 8:02 am
by Titto
Thank Ray!!!

Posted: Thu Dec 29, 2005 9:04 am
by kduke
They do not support BASIC in this way but it will work in you know how to make it work.