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

DCLGEN Replace


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
psriv20
Currently Banned

New User


Joined: 25 May 2009
Posts: 19
Location: Pune

PostPosted: Fri Aug 27, 2010 3:01 pm
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Fri Aug 27, 2010 7:21 pm
Reply with quote

Hello,

What do you mean by "dynamic". . . icon_confused.gif

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
View user's profile Send private message
Rijit

Active User


Joined: 15 Apr 2010
Posts: 168
Location: Pune

PostPosted: Fri Aug 27, 2010 8:02 pm
Reply with quote

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
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 -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts replace word 'MONTH' with current mon... SYNCSORT 11
No new posts To replace jobname in a file with ano... SYNCSORT 12
No new posts Conditional replace values in output ... DFSORT/ICETOOL 3
Search our Forums:

Back to Top