Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ 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
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    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

priya

Moderator


Joined: 24 Jul 2003
Posts: 568
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
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Protection Exception while move 0 to ... Kevin Vaz CICS 10 Tue Oct 18, 2016 4:19 pm
No new posts Is it possible to pass variables of s... Csongor CLIST & REXX 2 Fri Jun 10, 2016 7:33 pm
No new posts TWS 'global' or 'local' variables Steve Coalbran IBM Tools 2 Thu Mar 17, 2016 7:40 pm
No new posts Unable to view Unloaded file using DC... Rohit Umarjikar DB2 4 Thu Dec 31, 2015 6:46 pm
No new posts Using different values for Skeleton d... venksiv CLIST & REXX 8 Thu Sep 03, 2015 5:28 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us