View previous topic :: View next topic |
Author |
Message |
mdisulaiman Beginner
Joined: 14 Nov 2003 Posts: 17 Topics: 10
|
Posted: Sun Nov 30, 2003 7:52 am Post subject: newcopy |
|
|
hai all,
what is new copy,how to create a new copy in cics.
bye _________________ sulaiman |
|
Back to top |
|
 |
slade Intermediate
Joined: 07 Feb 2003 Posts: 266 Topics: 1 Location: Edison, NJ USA
|
Posted: Sun Nov 30, 2003 6:26 pm Post subject: |
|
|
Hi sulaiman,
The newcopy subparam is used to notify CICS that you have a new copy of the subject program and you want that copy loaded when the next load is performed. A newcopy is not required if the CICS region running your load mod was restarted AFTER you link edited the new version of the pgm.
CICS keeps a list of the PDS track/block addresses where each load module is loaded from. Newcopy updates this address if you relink your pgm first. If you don't perform a newcopy the old version of the pgm is loaded.
Regards, Jack. |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
Posted: Mon Dec 01, 2003 6:53 am Post subject: |
|
|
mdisulaiman,
When CICS executes a program , it brings a copy of the load module from the load library into the Dynamic Storage Area in the CICS region. CICS then maintains an address pointer to that area of storage so it can find the program whenever it needs to be executed.
When you linkedit a new version of the program, the CEMT new copy command tells CICS to bring in a fresh copy of the new load module into the storage Area and to reset the address pointer.
You can set a newcopy using CEMT
Code: |
CEMT SET PROGRAM(YOUR PGM NAME) NEWC
|
Starting from CICS/ESA 4.1 and higher you can issue phasein
Code: |
CEMT SET PROGRAM(YOUR PGM NAME) PHASEIN
|
Hope this helps...
cheers
kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
 |
mayuresh.tendulkar Beginner

Joined: 25 Apr 2003 Posts: 31 Topics: 6 Location: Pune
|
Posted: Mon Dec 01, 2003 8:09 am Post subject: |
|
|
Hello mdisulaiman,
You can also do it this way:
where, MYPROG is your program's name
Hope this helps
Regards
Mayuresh Tendulkar |
|
Back to top |
|
 |
Mike Chantrey Intermediate
Joined: 10 Sep 2003 Posts: 234 Topics: 1 Location: Wansford
|
Posted: Mon Dec 01, 2003 11:20 am Post subject: |
|
|
Note that NEWC is not an IBM supplied transaction. It is the default name of the newcopy transaction associated with the Compuware XPEDITER/CICS product; or it may be used at some sites for other purposes such as home-written newcopy programs. |
|
Back to top |
|
 |
gans79 Beginner
Joined: 31 Aug 2005 Posts: 51 Topics: 27
|
Posted: Mon Dec 26, 2005 8:41 am Post subject: |
|
|
Hi ,
i tried the above ex to issue a new copy, but it did not work
but this opton worked .
CECI SET PROGRAM(YOUR PGM NAME) NEWC
can someone tell what is the right procedure ..
thanks |
|
Back to top |
|
 |
German Castillo Beginner

Joined: 23 Dec 2005 Posts: 83 Topics: 2 Location: Caracas, Venezuela
|
Posted: Mon Dec 26, 2005 1:52 pm Post subject: |
|
|
Hello gans79,
All of the above mentioned procedures should work, unless your shop has enabled security in either transaction, and... you do not happen to have that security level.
Anyway CEMT & CECI are two CICS transaction whith very different purposes, even if you can mimic some of the CEMT functions trough CECI.
Type in either function by themselves and you will be faced to choose among their several options, you will figure it out by yourself, very quickly CEMT allow you to Inquire, set or perform very uselfull functions, newcopy among them, just be carefull, since you can also shutdown your CICS region also. Incidentally you may force a newcopy in two ways with the CEMT transaction. The first one, is already exposed, by using Cemt set..... While the second one is executing cemt INQuire PROG(...), next you will have to tab into the proper place and write in 'New' as a keyword parameter.
The Ceci Transaction is used to invoke CICS command interpreter, which means that ANY command level function (That are usually done inside an application programs) can be issued, among them the SET command that you have alredy stated in your post, this indeed works, but you have just discovered one of the ways to do a new copy programatically . Just remember that anything you are able to do in your programs, can be done with the command interpreter . And if you do not have access to execute the CEMT transaction, you have just found a way around it! _________________ Best wishes,
German Castillo |
|
Back to top |
|
 |
gans79 Beginner
Joined: 31 Aug 2005 Posts: 51 Topics: 27
|
Posted: Mon Dec 26, 2005 11:18 pm Post subject: |
|
|
hi german,
Thanx for ur response, ur explanation was amazing !!
gans79 |
|
Back to top |
|
 |
gans79 Beginner
Joined: 31 Aug 2005 Posts: 51 Topics: 27
|
Posted: Thu Jan 19, 2006 1:31 am Post subject: |
|
|
Hi,
I have made chnges to a map,
i do i take a new copy of the map in cics ??
thanks
ganesh |
|
Back to top |
|
 |
ofer71 Intermediate
Joined: 12 Feb 2003 Posts: 358 Topics: 4 Location: Israel
|
Posted: Thu Jan 19, 2006 4:02 am Post subject: |
|
|
By the way, for CICS with AUTOINSTALL, you don't have to issue NEWCOPY everytime you link-edit your program.
O.
________
DR-Z400
Last edited by ofer71 on Sat Feb 05, 2011 11:29 am; edited 1 time in total |
|
Back to top |
|
 |
German Castillo Beginner

Joined: 23 Dec 2005 Posts: 83 Topics: 2 Location: Caracas, Venezuela
|
Posted: Thu Jan 19, 2006 10:16 am Post subject: |
|
|
Hello gans79
CICS sees map as he sees programs.... just another ppt entry, therefore you can NC a map the same way you NC a program.
ofer71 wrote: | By the way, for CICS with AUTOINSTALL, you don't have to issue NEWCOPY everytime you link-edit your program.
O. |
This is not enterily true
When a program is first loaded, the PPT entry is updated with the TTR of the load module in the load library, there are two ways to update this 'POINTER', one is on the Initial Load, as a result of BLDL/STOWs on the CICS Program Control Manager(easily noticeable, since CICS will be aware of a blank/zero entry here) or as a result of a NC, in which case a similar procedure is accomplished, thus overwriting the previous content of the TTR pointer. This Pointer is used any time CICS decides to bring to DSA the LOAD module, saving a set of BLDL/STOWS in the process and this is done quite often, since CICS may DELETE DSA entries with usage count of Zero if he ever needs to. For CICS to be aware of NC modules he will have to be monitoring constantly all the PPT entries and matching them againist its current value, this is a time consuming process, overhead oriented and one that certainly CICS doesn't have the luxury to do.
But there are exceptions to the original quote. If the PPT entry (Program) hasn't been used, you can compile it however any amount of times you desire and... you don't need to NC it, for the above mentioned reason, Moreover if the program is in use you may not even be able to NC it!, until either all the applications using the program (and locking it) finish or you disable the program as many times as program uses are "in the air"
To finish I will point out that change control appllications, like CHGMAN after the link-edit may add an extra step to NC the program just promoted, thus saving the time for the user to do so. _________________ Best wishes,
German Castillo |
|
Back to top |
|
 |
ofer71 Intermediate
Joined: 12 Feb 2003 Posts: 358 Topics: 4 Location: Israel
|
Posted: Thu Jan 19, 2006 4:14 pm Post subject: |
|
|
We have a NEWCOPY step at the end of all our compilation jobs. We use EXCI through REXX that calls a COBOL with CICS SPI.
O.
________
hash honey oil |
|
Back to top |
|
 |
|
|