Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

DCLGEN Replace

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
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    Post subject: DCLGEN Replace
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

Site Director


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

PostPosted: Fri Aug 27, 2010 7:21 pm    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Fileaid Update Replace with null string descann Compuware & Other Tools 4 Mon May 15, 2017 3:00 pm
No new posts Replace values in the input data Vikas Maharnawar DFSORT/ICETOOL 10 Thu May 11, 2017 2:18 pm
No new posts Replace repeated JCL with looping REXX prino CLIST & REXX 3 Thu Oct 13, 2016 5:30 am
This topic is locked: you cannot edit posts or make replies. Sort card to replace text using cross... Susanta SYNCSORT 32 Tue Sep 13, 2016 4:17 pm
No new posts Replace function abdulrafi COBOL Programming 13 Mon Sep 12, 2016 10:12 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us