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
 

 

How to handle COPY BOOK changes.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
dp33770

New User


Joined: 04 Jul 2007
Posts: 92
Location: Hyderabad

PostPosted: Thu Sep 11, 2008 10:05 pm    Post subject: How to handle COPY BOOK changes.
Reply with quote

Dear All,
Can anyone tell me if I add a new field to an existing copybook what are the things I need to do ( In JCL,COBOL application prg, During compilation etc.) after that in order to make the new field reflected ?


Regards,
Deepak
Back to top
View user's profile Send private message

PeD

Active User


Joined: 26 Nov 2005
Posts: 456
Location: Belgium

PostPosted: Thu Sep 11, 2008 10:22 pm    Post subject:
Reply with quote

Two tracks :
- what do you have to do if you change - not a copybook - but just a line of code in your Cobol.. program

- keep in mind the use of copybooks is i.e. to be shared by several programs

Are you professional or is it a question for education?
Back to top
View user's profile Send private message
dp33770

New User


Joined: 04 Jul 2007
Posts: 92
Location: Hyderabad

PostPosted: Thu Sep 11, 2008 10:49 pm    Post subject:
Reply with quote

I have faced this question in an interview.

1. We Have to compile the program again so that the new copybook variable will get expanded in the new load module. Or else the compiler will give an unidentified variable error.


let me know if what I answerd is correct or wrong .
Back to top
View user's profile Send private message
genesis786

Active User


Joined: 28 Sep 2005
Posts: 210
Location: St Katherine's Dock London

PostPosted: Thu Sep 11, 2008 10:53 pm    Post subject:
Reply with quote

this also depends on what kind of changes you are making in the copybook.

1. compiling all the programs, DB plan, bind etc. which are using the changed copybook.

2. if you are changing the length of a field, you might need to do changes in your batch programs/procs/parms, file definitions (lrecl etc).

3. if you are changing the datatype, you will have to make changes in the programs and also may be in the front end.

really a matter of how much that copybook is exposed.
Back to top
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Thu Sep 11, 2008 10:54 pm    Post subject:
Reply with quote

The chages to the copy book would have no affect unless the programs that use it are recompiled. If the changes cause a record length change then there may be jcl and utility changes also.
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Thu Sep 11, 2008 11:50 pm    Post subject:
Reply with quote

Hi,
Quote:
if I add a new field ..
This would lead to a JCL change as well, LRECL would be changed.
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Thu Sep 11, 2008 11:53 pm    Post subject:
Reply with quote

Hello,

Quote:
This would lead to a JCL change as well, LRECL would be changed.
Maybe, maybe not. Many systems were designed with filler in almost every record so that a field could be added without changing the lrecl.
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Thu Sep 11, 2008 11:59 pm    Post subject:
Reply with quote

Hi,

But "to add" conveys little different..probably I might have used "modification' for that..
Back to top
View user's profile Send private message
PeD

Active User


Joined: 26 Nov 2005
Posts: 456
Location: Belgium

PostPosted: Fri Sep 12, 2008 12:38 am    Post subject:
Reply with quote

And every copybook doesn't refer necessarily to the layout of an external file.

Which Configuration Management software do you use? Does it have an impact analysis module?
Back to top
View user's profile Send private message
dp33770

New User


Joined: 04 Jul 2007
Posts: 92
Location: Hyderabad

PostPosted: Fri Sep 12, 2008 10:03 am    Post subject:
Reply with quote

Thanks a lot to all of u ....as it was a interview Que I am not sure abt wht config. mgmt software thy use......
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 -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts copy SEQ to PDS and create stats steve-myers JCL & VSAM 7 Thu Apr 27, 2017 1:15 am
No new posts Copy load modules and alias vasanthz IBM Tools 5 Thu Apr 20, 2017 6:31 am
No new posts SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts HALDB data refresh/copy from producti... vineetanand2007 IMS DB/DC 1 Mon Jan 02, 2017 11:16 am
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm


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