View previous topic :: View next topic
|
Author |
Message |
psriv20 Currently Banned New User
Joined: 25 May 2009 Posts: 19 Location: Pune
|
|
|
|
HI,
I want to replace DCLGEN variable with field WL-DCLGEN.
For example.
I want to replace below decleration
01 DCLGEN-DATE.
10 DCLGN1-CURRENT-BUSS-DT.
10 DCLGEN1-NEXT-BUSS-DT.
as
01 WL-DCLGEN-DATE.
10 WL-DCLGN1-CURRENT-BUSS-DT.
10 WL-DCLGEN1-NEXT-BUSS-DT.
I need it because i am using more than 50 table in my pgm.And database changes are in progress .so it it very difficult to change the varialbe every time.If we make it dynamic then our problem will be resolve.
Thanks |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
What do you mean by "dynamic". . .
I'm probably too simplistic but i'd just change to the new names it that was what i wanted. . .
Probably, there is something i misunderstand. |
|
Back to top |
|
|
Rijit
Active User
Joined: 15 Apr 2010 Posts: 168 Location: Pune
|
|
|
|
Hi,
You can probably use the 'WL-' as a field name prefix and run the DCLGEN in DB2I..It will prefix all the variables with the 'WL-'. And use this new structure in your program.. |
|
Back to top |
|
|
|