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: 1187
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

Please download our product Error Descriptor and check it out.

 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 IEW2456E error when link-editing a C ... Senthilraj JCL & VSAM 0 Fri Oct 13, 2017 3:12 pm Assembler Macro Copybook converted to... Ziquilix PL/I & Assembler 4 Tue Sep 26, 2017 3:07 am Extract all "IF" Statements... Adarsh Damodaran CLIST & REXX 1 Wed Sep 06, 2017 9:28 am ALPHABETIC check in COBOL vidyaa COBOL Programming 8 Thu Aug 17, 2017 7:13 pm XML Parse for COBOL 5.2 Bhanu Praveen COBOL Programming 1 Sat Jul 08, 2017 8:58 pm

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