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

Including DCLGEN variables in SQL statements


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
poongs
Warnings : 1

New User


Joined: 24 Jan 2007
Posts: 28
Location: pune

PostPosted: Wed Aug 01, 2007 4:37 pm
Reply with quote

Hi ppl,

Have some doubt reg the DCLGEN variables using in Embedded SQL statements.In my System,one of the field in some XXX table has a declaration of char(4096).But the DCLGEN declaration for that field is having only char(4018).Now i gotto move 4096 length text to that field.Can i directly give any external variable(of length 4096) instead of that DCLGEN variable(of length 4018) for that particular field?


Thanks In advance.
Keep the gud work Goinon.
Back to top
View user's profile Send private message
saiprasadh

Active User


Joined: 20 Sep 2006
Posts: 154
Location: US

PostPosted: Wed Aug 01, 2007 5:03 pm
Reply with quote

Hi,

Yes you can give an external varaiable instead of DCLGEN variable.

Thanks
Sai
Back to top
View user's profile Send private message
Suryanarayana.tadala

New User


Joined: 03 Nov 2005
Posts: 43
Location: St.Louis

PostPosted: Fri Aug 03, 2007 12:24 am
Reply with quote

It should not be a problem..but please check of why the DCLGEN variable size and the table filed sizes vary.

Thanks
Back to top
View user's profile Send private message
View previous topic : : View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Substitution of JCL variables CLIST & REXX 10
No new posts Dynamically build unload and load sta... DB2 14
No new posts Repeat n times by substuting SEQNUM i... DFSORT/ICETOOL 2
No new posts Preserve changes to ISPF Panel Variables TSO/ISPF 5
No new posts Dynamically build sort control statem... SYNCSORT 18
Search our Forums:


Back to Top