Hi All,
My question sounds simple to you all but I could not find the answer for this in my search here.
I am converting a cobol program to basic routine and this is my first
datastage project....my question is
how can i declare a basic variable of length 200 and datatype is CHAR
Starter
Variable declaration in BASIC
Moderators: chulett, rschirm, roy
It's not like COBOL. There's no "working storage" and variables do not need to be explicitly declared. Also, there is no size or type associated with variables. Best to initialize them to a value so they start off live in a known state, however.
Are you sure you need to go this route, however? Are you sure the COBOL program shouldn't be converted to a DataStage job?
Are you sure you need to go this route, however? Are you sure the COBOL program shouldn't be converted to a DataStage job?
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers
There are no declarations required. There are no data types. Variables automatically cast when necessary. Dates are text strings. Dynamic arrays (notated with < and > instead of parenthesis) need declaration to "" as in
Read your DS BASIC manual on the Start button and learn about these functions: ICONV, OCONV, FMT, INDEX, COUNT, SUBSTR, LEFT, RIGHT, FIELD.
Code: Select all
myarray = ""
Kenneth Bland
Rank: Sempai
Belt: First degree black
Fight name: Captain Hook
Signature knockout: right upper cut followed by left hook
Signature submission: Crucifix combined with leg triangle
Rank: Sempai
Belt: First degree black
Fight name: Captain Hook
Signature knockout: right upper cut followed by left hook
Signature submission: Crucifix combined with leg triangle