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

What is NEWCOPY in CICS


IBM Mainframe Forums -> CICS
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
vbhat

New User


Joined: 29 Apr 2005
Posts: 38

PostPosted: Fri Apr 29, 2005 2:39 pm
Reply with quote

what is the new copy in cics?
Back to top
View user's profile Send private message
priya

Moderator


Joined: 24 Jul 2003
Posts: 568
Location: Bangalore

PostPosted: Fri Apr 29, 2005 3:29 pm
Reply with quote

Used to UPDATE the load module in the CICS LoadLibrary.

CECI SET PROGRAM abcd NEWCOPY
Back to top
View user's profile Send private message
Ram_k

New User


Joined: 28 Apr 2005
Posts: 5
Location: Chennai

PostPosted: Fri Apr 29, 2005 5:05 pm
Reply with quote

Hi,

New copy is just to bring in the recent loadmodule into cics region..
Back to top
View user's profile Send private message
maverick05

New User


Joined: 14 Apr 2005
Posts: 54
Location: Earth

PostPosted: Sat May 07, 2005 8:35 pm
Reply with quote

Hi Priya,

I think its CEMT SET PROGRAM(PROGRAM-NAME)NEWCOPY
butnot CECI......

Thanks
Venkat
Back to top
View user's profile Send private message
shymalasridevi

New User


Joined: 03 May 2005
Posts: 16

PostPosted: Mon May 09, 2005 11:26 am
Reply with quote

we will use to newcopy along with CEMT transaction to update our loadlib
af ter doing some changes in ur pgm

syntax

CEMT SET prg(pgm name) NE
Back to top
View user's profile Send private message
jwell rymbei

New User


Joined: 14 Dec 2005
Posts: 22
Location: India

PostPosted: Tue May 16, 2006 3:26 pm
Reply with quote

Hi,
I am trying to do a new copy CEMT SET PROG (ABCD) NEW.
I am getting response not normal and proganme name (ABCD) not
found. This programe (ABCD) is a new program. Do we need to add
any entries in any tables. I don't have much new knwoledge on CICS.
Can any body tell me what do I need to look.

Thanks,
Jwell
Back to top
View user's profile Send private message
arunjosephaj

New User


Joined: 21 Mar 2006
Posts: 20
Location: India

PostPosted: Tue May 16, 2006 4:58 pm
Reply with quote

To Jwell:
You have to enter the program details using the CEDA transaction into PCT or Program Control Table. You may also have to declare the TransID details to use tht program.
CEDA DEFINE PROG(program-name) GROUP..etc..

To Others:
NEWCOPY will give an error if the program is currently runnig..
PHASEIN wont give tht error but moves the program after it terminates in different phases..
Back to top
View user's profile Send private message
gskulkarni

New User


Joined: 01 Mar 2006
Posts: 70

PostPosted: Thu May 18, 2006 3:51 pm
Reply with quote

You know what, all of this could have been figured out if you just had taken troubles to read manuals before logging into forum and posting questions and waiting for their answers. So simple a question? i can't beleiev you had to post a question in forum for it!
Back to top
View user's profile Send private message
manoj_june1973

New User


Joined: 20 May 2006
Posts: 8

PostPosted: Sat May 20, 2006 4:52 am
Reply with quote

i have a transaction name, how i will know the program name associated to that transaction.
Back to top
View user's profile Send private message
morrisjmm

New User


Joined: 15 May 2006
Posts: 3
Location: Pennsylvania, USA

PostPosted: Sat May 20, 2006 8:57 am
Reply with quote

Just a note here, If your CICS region is setup to do auto-install you need not define the program to the regions CSD. Also you will get the not found on the CEMT newcopy if the program has not been executed since the CICS region has started.

To find the name of the program the transaction is to execute enter
CEMT INQ TRAN(4-char-tran=id)
Back to top
View user's profile Send private message
manoj_june1973

New User


Joined: 20 May 2006
Posts: 8

PostPosted: Tue May 23, 2006 11:45 am
Reply with quote

HI I HAVE A QUESTION ON NEWCOPY .
IF I MODIFY A CICS PROGAM AND RECOMPILE AND PUT THE LOAD MODULE IN THE CICS LOAD LIB. THEN IS IT REQUIRED TO TAKE NEW COPY USING CEMT IN THE CICS ? IF YES WHY, I ALREADY COPY THE THE MODIFIED LOAD MODULE TO CICS LOAD LIB.
Back to top
View user's profile Send private message
gskulkarni

New User


Joined: 01 Mar 2006
Posts: 70

PostPosted: Tue May 23, 2006 2:21 pm
Reply with quote

After being loaded once any subsequent reload will be from the library location now stored in the internal CICS tables. Using NEWCOPY sets a flag in the internal table to tell CICS to go back to the library directory for the next load of the program, and thus get the new copy of the program. (If the program is being used conversationally the old copy will be used until each current conversation finishes, new conversations will use the new program)

Long and short of this is, once the program is loaded in cics library and executed for the first time in CICS, until next cics region recycle, the program is loaded in cache (or temporary memory like bufferpool, if u want to simplyfy ur understanding). All subsequent calls to program will refer to the load module loaded in this cache. Doing newcopy will suspend this cache load module and cics will fetch a fresh copy of that program from its load library.

And that is why, even if you recompile the program and load it to cics load lib, for cics to get this latest version, NEWCOPY is required. Otherwise whenever prog is called in CICS its old version will be picked up from cache.

However, this problem seldom occurs if your shop uses changeman as version controller. The ChangeMan job to promote teh component to cics region automatically does a NEWCOPY.
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 -> CICS

 


Similar Topics
Topic Forum Replies
No new posts Using API Gateway from CICS program CICS 0
No new posts Calling an Open C library function in... CICS 1
No new posts How to 'Ping' a CICS region in JCL CICS 2
No new posts Parallelization in CICS to reduce res... CICS 4
No new posts How to avoid duplicating a CICS Web S... CICS 0
Search our Forums:

Back to Top