View previous topic :: View next topic
|
Author |
Message |
raman.k
New User
Joined: 26 Feb 2007 Posts: 24 Location: chennai
|
|
|
|
Hi
I want know the COBOL Db2 programme
In db2 one VARCHAR varibale is there. Now I declared the COBOL equailent. Like
EMP VARCHAR(20).
in COBOL
01 EMP.
49 Len s9(6) comp.
49 name x(20).
Why we need to use length. Can we change any other level number instead of 49.
Please tell describe me
Thanks |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
raman.k wrote: |
01 EMP.
49 Len s9(6) comp.
49 name x(20).
Why we need to use length. Can we change any other level number instead of 49. |
After a quick stop off at the FM, I found that it has to be 49. Why we need the length? What do you thing the definition of "variable" is? |
|
Back to top |
|
|
|