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
 

 

What is NEWCOPY in CICS

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
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    Post subject: What is NEWCOPY in CICS
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    Post subject:
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    Post subject: Re: What is NEWCOPY in CICS
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    Post subject: Re: What is NEWCOPY in CICS
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    Post subject: hi
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    Post subject: response not normal while doing new copy
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    Post subject:
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    Post subject:
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    Post subject: how i will know the program name associated to that transact
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    Post subject:
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    Post subject:
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    Post subject:
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    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 Date and time format in CICS Chandru3183 CICS 2 Sat Mar 18, 2017 12:46 pm
No new posts Asynchronous CICS Processing Question moezbud CICS 0 Mon Mar 06, 2017 6:13 pm
No new posts CICS Question RE: Browse, Readnext an... moezbud CICS 7 Sun Mar 05, 2017 5:45 am
No new posts how to send just 10 rows in a CICS sc... Megha Gupta CICS 5 Thu Feb 23, 2017 6:57 pm
No new posts Mainframe Interview Questions CICS,CO... akshathan Mainframe Interview Questions 6 Thu Feb 09, 2017 6:38 pm


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