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
 

 

Cobol interview question

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions
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    Post subject: Cobol interview question
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

Senior Member


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

PostPosted: Mon May 17, 2010 5:25 pm    Post subject:
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    Post subject: Reply to: Cobol interview question
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: 1224
Location: Israel

PostPosted: Tue May 18, 2010 1:04 am    Post subject:
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

Senior Member


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

PostPosted: Tue May 18, 2010 7:14 pm    Post subject: Re: Reply to: Cobol interview question
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: 1224
Location: Israel

PostPosted: Thu May 20, 2010 8:57 pm    Post subject: Reply to: Cobol interview question
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

Senior Member


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

PostPosted: Thu May 20, 2010 9:15 pm    Post subject:
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    Post subject: Reply to: Cobol interview question
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

Senior Member


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

PostPosted: Fri May 21, 2010 5:50 pm    Post subject:
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    Post subject: Reply to: Cobol interview question
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    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Executing OO COBOL program invoking J... Virendra Shambharkar COBOL Programming 2 Tue Jan 10, 2017 6:37 pm
No new posts OO COBOL compile error Virendra Shambharkar COBOL Programming 3 Tue Jan 10, 2017 6:05 pm
No new posts Need Suggestion on COBOL program vickey_dw COBOL Programming 5 Thu Jan 05, 2017 10:55 pm
This topic is locked: you cannot edit posts or make replies. RANDOM Function in COBOL swapnil781 COBOL Programming 2 Tue Nov 15, 2016 6:17 pm
No new posts Regarding COBOL Stored Procedure opti... selvamsrinivasan85 DB2 4 Fri Nov 04, 2016 8:57 pm


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