Hi,
I am a newbie to BASIC programming in DataStage Server Edition 7.1.r1. I am unable to invoke the basic interpreter from the command line. I get an error saying unble to invoke .VOC file. Same error when I try to invoke CREATE.FILE. Any help will be appreciated. A basic idea about the command structures in BASIC would be helpful too.
Thanks.
Using Command line Basic to compile Basic Programs...
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 9
- Joined: Sat Feb 12, 2005 5:24 pm
-
- Participant
- Posts: 3337
- Joined: Mon Jan 17, 2005 4:49 am
- Location: United Kingdom
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
You're probably at the wrong command line. And it's not an interpreter - it's compiled BASIC.
The command line where you need to be is that of dssh.
Before you invoke this shell, make sure you are attached to your DataStage project directory. If ever you see the question "This directory is not an account, do you want to make it one?" always answer NO.
You also need to have executed the dsenv script, so that your library path includes the DataStage libraries, before invoking the dssh shell.
The dssh shell has a ">" character as its prompt (by default).
The command within dssh to compile DataStage BASIC source code is BASIC. This generates "object" code in a directory that is named the same as the source code's directory plus a ".O" suffix.
The "object" code must also be executed within the dssh environment; think of dssh as a DataStage run machine.
The command line where you need to be is that of dssh.
Before you invoke this shell, make sure you are attached to your DataStage project directory. If ever you see the question "This directory is not an account, do you want to make it one?" always answer NO.
You also need to have executed the dsenv script, so that your library path includes the DataStage libraries, before invoking the dssh shell.
The dssh shell has a ">" character as its prompt (by default).
The command within dssh to compile DataStage BASIC source code is BASIC. This generates "object" code in a directory that is named the same as the source code's directory plus a ".O" suffix.
The "object" code must also be executed within the dssh environment; think of dssh as a DataStage run machine.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
-
- Participant
- Posts: 9
- Joined: Sat Feb 12, 2005 5:24 pm
Thanks a LOT Ray.
I was not aware of dssh. I am able to compile and include my basic programs now.