View previous topic :: View next topic
|
Author |
Message |
philipraju Warnings : 1 New User
Joined: 16 Apr 2006 Posts: 29
|
|
|
|
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, |
|
Back to top |
|
|
khamarutheen
Active Member
Joined: 23 Aug 2005 Posts: 677 Location: NJ
|
|
|
|
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. |
|
Back to top |
|
|
Rupesh.Kothari
Member of the Month
Joined: 27 Apr 2005 Posts: 463
|
|
|
|
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 |
|
Back to top |
|
|
philipraju Warnings : 1 New User
Joined: 16 Apr 2006 Posts: 29
|
|
|
|
if the value of x=11,what will be the output in these conditions |
|
Back to top |
|
|
philipraju Warnings : 1 New User
Joined: 16 Apr 2006 Posts: 29
|
|
|
|
Can u gives the details of the abend JCl error codes |
|
Back to top |
|
|
guptae
Moderator
Joined: 14 Oct 2005 Posts: 1208 Location: Bangalore,India
|
|
|
|
Hi philipraju
If x=11 in that case for all 4 condition it wont satisfy the condition hence
philip won't display at all |
|
Back to top |
|
|
khamarutheen
Active Member
Joined: 23 Aug 2005 Posts: 677 Location: NJ
|
|
|
|
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. |
|
Back to top |
|
|
|