View previous topic :: View next topic
|
Author |
Message |
maintenure
New User
Joined: 22 Sep 2008 Posts: 10 Location: bangalore
|
|
|
|
In a cobol program two copy books are used.
But these two copy books are present in both PROD copylib as well TEST copy lib.
But during compilation of the cobol program i want the one copy book from (old version)Prod copylib and another from (new version)test copylib.As i mentioned both copy books are in both prod and test copylib.
It was a interview question in value source technologies.But i answered that use one copylib that contains versions need for both copy books.The interviewes is not satisfied.
Is there any possiblility of getting this solved in other way?
Thanks in advance
Satheesh G |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
The very first question you should have asked is - do you want to know about version control tool/s? Is your question related to them, then is it about Change Man or endeavour?
Once you get the answer for that and if it turned out to be "change man" I(Anuj) could give you a direct answer, however, in general you could say at the time of staging/compiling you will pick the versions of your choice for copybooks.
Hope this helps. |
|
Back to top |
|
|
maintenure
New User
Joined: 22 Sep 2008 Posts: 10 Location: bangalore
|
|
|
|
Sir,
The interviewer is not interested in version control tool.During compile using IGYCRCTL in JCL itself.
I worked for around 3 months in a project where changeman is the version control tool.I am aware that we can give only the copy books changed while staging.
But now i am using endeavour.Please help me is there any similiar way we can do it endeavour.
Thanks
Satheesh G
[/quote] |
|
Back to top |
|
|
Marso
REXX Moderator
Joined: 13 Mar 2006 Posts: 1353 Location: Israel
|
|
|
|
You can tell the cobol compiler which version of the copy you want to use by specifying the library name in the copy statement.
See this paragraph and this one, both from the COBOL Language Reference.
Never used that before but I knew it existed. I'll have to check in depth tomorrow at work... |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
maintenure wrote: |
The interviewer is not interested in version control tool.During compile using IGYCRCTL in JCL itself. |
Version control tools are just an easy interface for compile/link-edit your programs - in "back-end" they also generate the JCL using the IGYCRCTL.
Martial,
Do you think, there will still be sites which are following the rules told in first-link of your post, I just wonder! |
|
Back to top |
|
|
Marso
REXX Moderator
Joined: 13 Mar 2006 Posts: 1353 Location: Israel
|
|
|
|
Luckily enough, this is an interview question.
It most certainly won't work when compiling from a version control tool, so I hope nobody uses this option. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Yup, that's what I thought. Because having a "hard coded" reference in a program for some library did not sound like a "future compatible" code...
Take care |
|
Back to top |
|
|
maintenure
New User
Joined: 22 Sep 2008 Posts: 10 Location: bangalore
|
|
|
|
Thanks sir
Really it is not maintainable in the future as you said.
Thanks
Satheesh G |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
You're welcome...I'm just another boy on the block, not really a Sir, Marso is, though! |
|
Back to top |
|
|
sambit_mech
New User
Joined: 14 Jul 2010 Posts: 13 Location: India
|
|
|
|
The asker's answer is correct. If interviewer is not satisfied, we/COBOL can't help. |
|
Back to top |
|
|
|