Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref

Author Message
philipraju
Warnings : 1

New User

Joined: 16 Apr 2006
Posts: 29

 Posted: Sun Jun 18, 2006 10:47 pm    Post subject: Cobol Interview Questions Hi, Can any body gives answers of below questions.... 1.How many time "philip " displays para-a Perfoem para-b until x>10 para-b display "philip" Exit 2..How many time "philip " displays para-a Perfoem para-b until x>10 para-b display "philip" continue 3.How many time "philip " displays para-a Perfoem para-b until x>10 para-b display "philip" stop run 4.How many time "philip " displays para-a Perfoem para-b until x>10 para-b display "philip" next setntence 5.regarding DISP parameter disp=new to already created DS,what will happens, disp=old to not created DS,what will happens, disp=shr to does not existed DS,what will happens,

khamarutheen

Active Member

Joined: 23 Aug 2005
Posts: 680
Location: NJ

Posted: Mon Jun 19, 2006 1:29 pm    Post subject: Interview Question

 Quote: 1.How many time "philip " displays para-a Perfoem para-b until x>10 para-b display "philip" Exit

Ans : It's infinity since value of x is not incremented any where....

 Quote: 2..How many time "philip " displays para-a Perfoem para-b until x>10 para-b display "philip" continue

Ans: It's also infinity times.

 Quote: 3.How many time "philip " displays para-a Perfoem para-b until x>10 para-b display "philip" stop run

Ans : 1 Time since at stop run the program ends.

 Quote: 4.How many time "philip " displays para-a Perfoem para-b until x>10 para-b display "philip" next setntence

Ans : Infinity.
Rupesh.Kothari

Member of the Month

Joined: 27 Apr 2005
Posts: 464

Posted: Mon Jun 19, 2006 1:40 pm    Post subject: Re: Cobol Interview Questions

Hi,

 Quote: 5.regarding DISP parameter disp=new to already created DS,what will happens, disp=old to not created DS,what will happens, disp=shr to does not existed DS,what will happens,

In all the case job will abended saying JCL error.

HTH

Regards
Rupesh
philipraju
Warnings : 1

New User

Joined: 16 Apr 2006
Posts: 29

 Posted: Mon Jun 19, 2006 1:53 pm    Post subject: Hi khamarutheen, if the value of x=11,what will be the output in these conditions
philipraju
Warnings : 1

New User

Joined: 16 Apr 2006
Posts: 29

 Posted: Mon Jun 19, 2006 1:55 pm    Post subject: Hi Rupesh.Kothari, Can u gives the details of the abend JCl error codes
guptae

Moderator

Joined: 14 Oct 2005
Posts: 1190
Location: Bangalore,India

 Posted: Mon Jun 19, 2006 2:25 pm    Post subject: Hi philipraju If x=11 in that case for all 4 condition it wont satisfy the condition hence philip won't display at all
khamarutheen

Active Member

Joined: 23 Aug 2005
Posts: 680
Location: NJ

Posted: Mon Jun 19, 2006 2:46 pm    Post subject:

Philip,

 Quote: Can u gives the details of the abend JCl error codes

 Quote: if the value of x=11,what will be the output in these conditions

Where you are meaning the value. R u saying in condition. If so the value of x is not assigned or initialized anywhere then how can we get the value in the condition at x=11. If so you assign in para2 x=11, 11>10 it will satisfy . Till the value of x is incremented the condition will not met.
 All times are GMT + 6 Hours
 Page 1 of 1

Search our Forum:

 Topic Author Forum Replies Posted Similar Topics How to display offset thru cobol prog... tvinodkumar7 CICS 1 Sun Apr 22, 2018 8:42 pm Linkage editor is part of COBOL, z/OS... ankit.jain COBOL Programming 4 Fri Apr 20, 2018 4:17 pm Difference between EQUAL and EQUAL TO... jithinraghavan COBOL Programming 3 Thu Apr 19, 2018 2:22 am Call COBOL or PLI with a click from w... vaibhav gs All Other Mainframe Topics 1 Mon Apr 16, 2018 7:29 pm COBOL MVS options BiswajitDG COBOL Programming 8 Fri Apr 06, 2018 12:35 am

 © 2003-2017 IBM MAINFRAME Software Support Division
 Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us