View previous topic :: View next topic
|
Author |
Message |
dp33770
New User
Joined: 04 Jul 2007 Posts: 91 Location: Hyderabad
|
|
|
|
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 |
|
|
PeD
Active User
Joined: 26 Nov 2005 Posts: 459 Location: Belgium
|
|
|
|
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 |
|
|
dp33770
New User
Joined: 04 Jul 2007 Posts: 91 Location: Hyderabad
|
|
|
|
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 |
|
|
genesis786
Active User
Joined: 28 Sep 2005 Posts: 210 Location: St Katherine's Dock London
|
|
|
|
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 |
|
|
Craq Giegerich
Senior Member
Joined: 19 May 2007 Posts: 1512 Location: Virginia, USA
|
|
|
|
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 |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Hi,
Quote: |
if I add a new field .. |
This would lead to a JCL change as well, LRECL would be changed. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Hi,
But "to add" conveys little different..probably I might have used "modification' for that.. |
|
Back to top |
|
|
PeD
Active User
Joined: 26 Nov 2005 Posts: 459 Location: Belgium
|
|
|
|
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 |
|
|
dp33770
New User
Joined: 04 Jul 2007 Posts: 91 Location: Hyderabad
|
|
|
|
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 |
|
|
|