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

Copying statements from one procedure to another


IBM Mainframe Forums -> CA Products
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
harpreet9

New User


Joined: 24 Oct 2006
Posts: 9
Location: delhi

PostPosted: Mon Oct 29, 2007 2:53 pm
Reply with quote

Hi,
Can anyone please let me know that is there a way in the coolgen where I can copy a few lines from one procedure to another?
I mean suppose there are two procedures as A1 and A2, and I need to copy some part of code in A1 to A2.
Please help
thanks
bye
Back to top
View user's profile Send private message
Bharath Bhat

Active User


Joined: 20 Mar 2008
Posts: 283
Location: chennai

PostPosted: Fri Mar 21, 2008 6:10 pm
Reply with quote

Hi,

You can copy the whole thing from A1 to A2 but not some parts icon_confused.gif
Steps
Open the procedure A1
Right click on the name of the Proc at the begening of the code (i.e. just before Imports)
click on Diagram>copy
You will get another screen with which you can continue.
Back to top
View user's profile Send private message
pbc3199

New User


Joined: 28 Sep 2007
Posts: 7
Location: Malaysia

PostPosted: Thu May 22, 2008 11:10 am
Reply with quote

Not really sure on coolgen, but in advantage gen and allfusion gen, we can copy some parts of coding using xcopy.
Back to top
View user's profile Send private message
skgupta81

New User


Joined: 11 Nov 2008
Posts: 27
Location: Canada

PostPosted: Mon May 11, 2009 4:40 pm
Reply with quote

Through XCOPY one can copy statements from one proc/CAB to another proc/CAB.

1: click on the place where you want to copy the lines in destination proc
2: select the part of code which you want to copy from source proc
3: click on XCOPY button.
4: Choose a destination proc
5: your code will be copied.

Cons: the code will create all the views automatically which have been used in those statements.
So be careful when you do XCOPY.
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 -> CA Products

 


Similar Topics
Topic Forum Replies
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
No new posts Panvalet - 9 Character name - Issue c... CA Products 6
No new posts Invoke stored procedure via batch JCL. DB2 2
No new posts Calling COBOL DB2 program from a COBO... COBOL Programming 2
No new posts Relate COBOL statements to EGL statement All Other Mainframe Topics 0
Search our Forums:

Back to Top