Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 PLI %IF statements Pedro PL/I & Assembler 1 Tue Sep 19, 2017 12:06 am
No new posts Create procedure issues -628 when add... chandraBE DB2 1 Mon Sep 18, 2017 12:16 pm
This topic is locked: you cannot edit posts or make replies. Extract all "IF" Statements... Adarsh Damodaran CLIST & REXX 1 Wed Sep 06, 2017 9:28 am
No new posts String after '.' (period) is not copy... balaji81_k SYNCSORT 6 Wed Aug 23, 2017 9:35 pm
No new posts copying data without knowing location Arun Raj DFSORT/ICETOOL 12 Thu Jul 20, 2017 1:03 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us