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
 

 

Why Newcopy is required when we have Phase-in?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
View previous topic :: :: View next topic  
Author Message
DIXINSH

New User


Joined: 26 Apr 2016
Posts: 2
Location: India

PostPosted: Thu Apr 28, 2016 9:47 am    Post subject: Why Newcopy is required when we have Phase-in?
Reply with quote

We all know, we use NEWCOPY to refresh the program however if module is in use i.e rescount is not equal to 0. NEWCOPY will fail and that's why we have PHASE-IN which performs a REFRESH PROGRAM function to inform the loader domain that a new version of the program is cataloged and that this version of the named program must be used in all future ACQUIRE requests. Now when I can live happily with PHASE-IN why NEWCOPY still exits?
Back to top
View user's profile Send private message

Rohit Umarjikar

Senior Member


Joined: 21 Sep 2010
Posts: 1609
Location: NY,USA

PostPosted: Thu Apr 28, 2016 12:58 pm    Post subject:
Reply with quote

Welcome!
You would have to do a bit of a research before getting into it as IBM has documented everything on this here.
quick is newcopy has to be issued in the same region where program resides but for PHASEIN you tell cics which cicsplex to go and cpsm will take further and does newcopy.
Back to top
View user's profile Send private message
DIXINSH

New User


Joined: 26 Apr 2016
Posts: 2
Location: India

PostPosted: Thu Apr 28, 2016 3:09 pm    Post subject: Reply to: Why Newcopy is required when we have Phase-in?
Reply with quote

Thanks for the reply. When the cics region is part of CICSPlex then to perform any function we need to set context and scope which tells which cicsplex and cics region the required function need to perform so for newcopy as well you need to tell. And the doc you shared is for TX series. I am asking for z/os platform
Back to top
View user's profile Send private message
Abid Hasan

New User


Joined: 25 Mar 2013
Posts: 65
Location: India

PostPosted: Thu Apr 28, 2016 4:07 pm    Post subject:
Reply with quote

From CICS TS 5.2 System Programming Reference (SC34-7294-00):

Quote:

COPY(cvda)
Specifies that a new copy of the program is to be used the next time that the
module is requested. LINK, XCTL, LOAD, ENABLE, and BMS commands can cause a
module request. You can choose to refresh the module only if it is not currently
in use (NEWCOPY), or to phase in the new version of the module for all
future requests (PHASEIN).
You cannot specify the COPY option for any module that is currently loaded
with the HOLD option, or for any program that is defined as remote.
CICS does not load the module at the time you issue the command, but it does
ensure that a copy is available. If you specified the SHARED option and the
module is in the link-pack area, the LPA copy satisfies this requirement.
Otherwise, CICS searches the DFHRPL or dynamic LIBRARY concatenations,
and returns an IOERR exception if it cannot locate a copy there.
For Java programs that run in a JVM server, you cannot use the NEWCOPY or
PHASEIN options of this command to refresh the program. To implement a
new version of the program, replace the old version of the CICS bundle with
an updated version. For more information, see Updating OSGi bundles in a
JVM server.
For PROGRAM resources that were defined and installed in a CICS bundle,
you cannot use the NEWCOPY or PHASEIN options of this command to
refresh the program. To implement a new version of the program, replace the
old version of the CICS bundle with an updated version. If the CICS bundle
was deployed as part of an application or with an application binding, update
the whole application.
This option has the following CVDA values:
NEWCOPY
The module is to be refreshed only if it is not currently in use;
otherwise CICS returns an INVREQ exception instead. You can
determine whether a module is in use from the RESCOUNT option in
an INQUIRE PROGRAM command. A value of zero means that the program
is not in use.
PHASEIN
The refresh is to occur whether or not the module is in use. If it is, the
copy or copies in use remain until they are no longer in use. All
requests that occur after the refresh use the new copy.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7904
Location: Bellevue, IA

PostPosted: Thu Apr 28, 2016 5:41 pm    Post subject:
Reply with quote

NEWCOPY came first. IBM does not remove things without a good reason to maintain backward compatibility, so NEWCOPY will probably be around for a good long time after everyone starts using PHASEIN.
Back to top
View user's profile Send private message
Rohit Umarjikar

Senior Member


Joined: 21 Sep 2010
Posts: 1609
Location: NY,USA

PostPosted: Thu Apr 28, 2016 8:57 pm    Post subject:
Reply with quote

Concept is same on Zos too.
Quote:
Now when I can live happily with PHASE-IN why NEWCOPY still exits?

Because there many be IBM customer who still on older version where PHASEIN doesn't work, I think ,this is introduced in 4.1 release.
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 -> CICS All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts FTP help required amitc23 All Other Mainframe Topics 3 Thu Apr 28, 2016 12:02 pm
No new posts Tricky sort logic required pgopi92 DFSORT/ICETOOL 3 Mon Jan 25, 2016 3:29 pm
No new posts Help required on sort kalakuntlavenkat DFSORT/ICETOOL 11 Sun Nov 15, 2015 8:55 am
No new posts Formatting a output to required form ... LOKESH DAIVAM All Other Mainframe Topics 2 Thu Aug 13, 2015 12:14 pm
No new posts TELON WITH DB2 DEBUGGING SETUP REQUIRED rathnamreddy ABENDS & Debugging 1 Sat Jul 18, 2015 11:01 am


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