Search found 8 matches

by Manohar Pandit
Wed Dec 30, 2015 11:40 am
Forum: Interview Questions.
Topic: DCLGEN and COBOL question.
Replies: 10
Views: 1146

Re: DCLGEN and COBOL question.

Can I drive a car at 300 km/hr? The answer is yes, you can. Your mileage (Yes, you read it correct, Your mileage, not of car) may vary! Is it advisable? No! per traffic rules, per common sense - no, the answer is no. Can I still do it? Yes you can. Society has police. Shops have DBAs and Tech-Leads...
by Manohar Pandit
Mon Dec 28, 2015 3:09 pm
Forum: Interview Questions.
Topic: DCLGEN and COBOL question.
Replies: 10
Views: 1146

Re: DCLGEN and COBOL question.

As such you can use a COBOL equivalent copybook instead of DCLGEN member, compiler does not stop you, pre-compiler does not stop you. But you are introducing more maintenance work for yourself,in future. Another mistake which might happen is you might end up using COPY statement for the DCLGEN equi...
by Manohar Pandit
Sun Dec 20, 2015 5:36 pm
Forum: Interview Questions.
Topic: DCLGEN and COBOL question.
Replies: 10
Views: 1146

Re: DCLGEN and COBOL question.

I guess, from carefully reading what Pandor-Box wrote, that what is being said is that if you do not use the pre-compiler generated copybook but use a hand-crafted copybook then, if the pre-compiler creates an updated copybook the change may not be noticed and therefor not made to the hand-crafted ...
by Manohar Pandit
Fri Dec 18, 2015 4:34 pm
Forum: Interview Questions.
Topic: one=one and 1=1 in SQL SELECT.
Replies: 8
Views: 1153

Re: one=one and 1=1 in SQL SELECT.

Thanks for the answers. It was really a tricky one!
by Manohar Pandit
Fri Dec 18, 2015 4:30 pm
Forum: Interview Questions.
Topic: DCLGEN and COBOL question.
Replies: 10
Views: 1146

Re: DCLGEN and COBOL question.

Pandora-Box wrote:Also what if you need to change the DCLGEN member value there is a possibility the direct declarations could be missed in direct declarations
I am sorry what are you saying? I did not understand this.
by Manohar Pandit
Sat Dec 12, 2015 10:05 pm
Forum: Interview Questions.
Topic: DCLGEN and COBOL question.
Replies: 10
Views: 1146

Re: DCLGEN and COBOL question.

I could not ask this way to an interviewer. But I think answer is that it saves from copying all the contents manually.
by Manohar Pandit
Mon Nov 23, 2015 3:17 pm
Forum: Interview Questions.
Topic: DCLGEN and COBOL question.
Replies: 10
Views: 1146

DCLGEN and COBOL question.

Another which I face goes like this, if i have a DCLGEN member called DCLMEM. I will use this in my program as EXEC SQL INCLUDE DCLMEM END-EXEC. Q1. Can we write the equivalent of the DCLGEN DCLMEM in cobol terms instead of using EXEC SQL INCLUDE DCLMEM END-EXEC. Q2. If yes, then what is the differe...
by Manohar Pandit
Mon Nov 23, 2015 3:12 pm
Forum: Interview Questions.
Topic: one=one and 1=1 in SQL SELECT.
Replies: 8
Views: 1153

one=one and 1=1 in SQL SELECT.

Hi, I was give thie query: select * from emp where 1=1 and select * from emp where one=one and the qustion asked was - If we have some details in a DB2 table and we use a query as listed what will be the result? I replied the answer will be same...but they said I'm wrong. Can someone please help me ...

Go to advanced search