IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Declare the variables without using DCLGEN


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
rambabu
Currently Banned

New User


Joined: 18 Apr 2005
Posts: 67

PostPosted: Fri Jun 17, 2005 3:53 pm
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
priya

Moderator


Joined: 24 Jul 2003
Posts: 568
Location: Bangalore

PostPosted: Sun Jun 19, 2005 12:14 am
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
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts JCL with variables JCL & VSAM 1
No new posts JCL Variables JCL & VSAM 1
No new posts reset/clear ALL application profile v... TSO/ISPF 3
No new posts REXX - Adding variables CLIST & REXX 8
No new posts using based or defined variables PL/I & Assembler 2
Search our Forums:

Back to Top