Page 1 of 1

Posted: Tue Feb 20, 2007 7:50 am
by kduke

Posted: Tue Feb 20, 2007 8:13 am
by ArndW
The compiler is called using the "BASIC" command. It is better to create the folder as type 19 so it doesn't do funky things with your filename. BASIC commands do not need to be terminated with a semicolon.

Posted: Tue Feb 20, 2007 8:18 am
by chulett
I'm just curious why you are taking this path rather than creating Routines in the Manager or coding in the Job Control tab of a Server job? :?

Posted: Tue Feb 20, 2007 8:56 am
by SteffenRdk
I analyse DataStage and consequently I need to analyse also BASIC.

Posted: Tue Feb 20, 2007 9:00 am
by chulett
Doesn't really answer the question, but... ok. Whatever. :?

Why not just 'analyse BASIC' by studying the supplied Routines? There are a plethora, documentation is decent and all you have to do is double-click on one to reveal the BASIC source code.

Posted: Tue Feb 20, 2007 1:24 pm
by ray.wurlod
The file you opened is the dictionary. It is (was) a hashed file. By overwriting it with text you have irretrievably damaged the hashed file structure, and therefore the file dictionary. What you needed to do was to open a file in the BASICCODE1 directory, not in D_BASICCODE1.

You need to undo your work, and begin again. Use the command DELETE.FILE BASICCODE1 so that the VOC entry is also deleted.

The next point is that "basic.exe" is not the BASIC compiler. The BASIC compiler MUST be invoked using the BASIC command from within the DataStage environment.

You need to read the early chapters of the DataStage BASIC manual thoroughly.