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
 

 

Copying statements from one procedure to another

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CA Products
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    Post subject: Copying statements from one procedure to another
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    Post subject: Reply to: Copying statements from one procedure to another
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    Post subject:
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    Post subject: Reply to: Copying statements from one procedure to another
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    IBMMAINFRAMES.com Support Forums -> CA Products All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Copying Panvalet members to PDS LOGESHWARAN K CA Products 4 Mon Mar 06, 2017 10:45 am
No new posts Calling procedure with multiple entri... steve-myers PL/I & Assembler 5 Fri Jan 27, 2017 3:33 pm
No new posts Regarding COBOL Stored Procedure opti... selvamsrinivasan85 DB2 4 Fri Nov 04, 2016 8:57 pm
No new posts Access SQLCA fields inside a stored p... gangapd DB2 6 Thu Oct 27, 2016 10:20 am
No new posts Is possible to call subprogram from c... cmsmoon COBOL Programming 3 Fri Aug 05, 2016 6:46 pm


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