Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
What u have to declare in db2 if we are declaring an Varchar

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
karthikuma

New User


Joined: 29 Mar 2005
Posts: 62

PostPosted: Wed Jun 08, 2005 10:27 am    Post subject: What u have to declare in db2 if we are declaring an Varchar
Reply with quote

hi,

wat u have to declare,in db2 if we are declaring an varchar,wat will be the cobol declaration in dclgen.

regards,
kumar
Back to top
View user's profile Send private message

j_prameela2000

New User


Joined: 01 Jun 2005
Posts: 28
Location: Chennai

PostPosted: Wed Jun 08, 2005 10:56 am    Post subject: Re: on db2
Reply with quote

Let us consider an example ename varchar(20). If you declare the field as ename with datatype varchar(20) then in cobol declaration I hope it will be
02 ename.
49 ename-txt pic x(20).
49 ename-len pic s9(4) comp.
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 -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Low values Results from VARCHAR FORMAT balaji81_k DB2 10 Thu Oct 20, 2016 1:18 am
No new posts Only text from varchar Seppe DB2 8 Thu Apr 21, 2016 10:42 pm
No new posts Declaration of varchar in cobol s.saranya srinivasan COBOL Programming 6 Fri Sep 25, 2015 11:43 am
No new posts Updating data in VARCHAR field sunny_io DB2 2 Fri Dec 19, 2014 8:49 pm
No new posts How to insert data in VARCHAR(32000) ... dilpreet DB2 1 Tue May 13, 2014 9:07 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us