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

What u have to declare in db2 if we are declaring an Varchar


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Low values Results from VARCHAR FORMAT DB2 10
No new posts Only text from varchar DB2 8
No new posts Declaration of varchar in cobol COBOL Programming 6
No new posts Updating data in VARCHAR field DB2 2
No new posts How to insert data in VARCHAR(32000) ... DB2 1
Search our Forums:

Back to Top