View previous topic :: View next topic
|
Author |
Message |
rambabu Currently Banned New User
Joined: 18 Apr 2005 Posts: 67
|
|
|
|
hello,
i want to declare the variables(sql) with out using dclgen?how to write it in cobol db2 program? |
|
Back to top |
|
|
priya
Moderator
Joined: 24 Jul 2003 Posts: 568 Location: Bangalore
|
|
|
|
Code: |
Smallint - S9(4) COMP or S9(4) COMP-4
Integer - S9(9) COMP or S9(9) COMP-4
Char(N) - PIC X(N)
Varchar(N) - 01 VARNAME
49 VARNAME-LEN PIC S9(4) USAGE COMP.
49 VARNAME-TEXT PIC X(N).
DECIMAL(P,S) - If p<19: S9(p-s)V9(s) COMP-3
Float - USAGE COMP-2
Date - pic x(10).
Timestamp - pic x(26). |
|
|
Back to top |
|
|
|