Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
Declare the variables without using DCLGEN

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
Author Message
rambabu
Currently Banned

Active User


Joined: 18 Apr 2005
Posts: 67

PostPosted: Fri Jun 17, 2005 3:53 pm    Post subject: Declare the variables without using DCLGEN
Reply with quote

hello,
i want to declare the variables(sql) with out using dclgen?how to write it in cobol db2 program?
Back to top
View user's profile Send private message
References
priya

Moderator


Joined: 24 Jul 2003
Posts: 624
Location: Bangalore

PostPosted: Sun Jun 19, 2005 12:14 am    Post subject:
Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1