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

How to handle COPY BOOK changes.


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
dp33770

New User


Joined: 04 Jul 2007
Posts: 91
Location: Hyderabad

PostPosted: Thu Sep 11, 2008 10:05 pm
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: 459
Location: Belgium

PostPosted: Thu Sep 11, 2008 10:22 pm
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: 91
Location: Hyderabad

PostPosted: Thu Sep 11, 2008 10:49 pm
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
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
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

Superior Member


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

PostPosted: Thu Sep 11, 2008 11:50 pm
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

Moderator Emeritus


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

PostPosted: Thu Sep 11, 2008 11:53 pm
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

Superior Member


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

PostPosted: Thu Sep 11, 2008 11:59 pm
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: 459
Location: Belgium

PostPosted: Fri Sep 12, 2008 12:38 am
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: 91
Location: Hyderabad

PostPosted: Fri Sep 12, 2008 10:03 am
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts VB to VB copy - Full length reached SYNCSORT 8
No new posts Need COBOL COPY Help in MVS Environment COBOL Programming 4
No new posts Issue after ISPF copy to Linklist Lib... TSO/ISPF 1
No new posts DB2 Table - Image copy unload IBM Tools 2
No new posts How to copy the -1 version of a membe... TSO/ISPF 4
Search our Forums:

Back to Top