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

Cobol interview question


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
maintenure

New User


Joined: 22 Sep 2008
Posts: 10
Location: bangalore

PostPosted: Mon May 17, 2010 5:08 pm
Reply with quote

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
View user's profile Send private message
Anuj Dhawan

Superior Member


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

PostPosted: Mon May 17, 2010 5:25 pm
Reply with quote

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
View user's profile Send private message
maintenure

New User


Joined: 22 Sep 2008
Posts: 10
Location: bangalore

PostPosted: Mon May 17, 2010 7:26 pm
Reply with quote

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
View user's profile Send private message
Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1353
Location: Israel

PostPosted: Tue May 18, 2010 1:04 am
Reply with quote

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
View user's profile Send private message
Anuj Dhawan

Superior Member


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

PostPosted: Tue May 18, 2010 7:14 pm
Reply with quote

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
View user's profile Send private message
Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1353
Location: Israel

PostPosted: Thu May 20, 2010 8:57 pm
Reply with quote

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
View user's profile Send private message
Anuj Dhawan

Superior Member


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

PostPosted: Thu May 20, 2010 9:15 pm
Reply with quote

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 icon_smile.gif
Back to top
View user's profile Send private message
maintenure

New User


Joined: 22 Sep 2008
Posts: 10
Location: bangalore

PostPosted: Fri May 21, 2010 9:35 am
Reply with quote

Thanks sir

Really it is not maintainable in the future as you said.

Thanks
Satheesh G
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


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

PostPosted: Fri May 21, 2010 5:50 pm
Reply with quote

You're welcome...I'm just another boy on the block, not really a Sir, Marso is, though! icon_smile.gif
Back to top
View user's profile Send private message
sambit_mech

New User


Joined: 14 Jul 2010
Posts: 13
Location: India

PostPosted: Mon Jul 19, 2010 11:24 am
Reply with quote

The asker's answer is correct. If interviewer is not satisfied, we/COBOL can't help.
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 -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 2
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
No new posts Generate random number from range of ... COBOL Programming 3
Search our Forums:

Back to Top