IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Diff between call by address & call by reference


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sivatechdrive

Active User


Joined: 17 Oct 2004
Posts: 191
Location: hyderabad

PostPosted: Wed Dec 15, 2004 7:39 pm
Reply with quote

a = 7
1 . evaluate true
when a > 5
perform para1
when a < 10
perform para1

so the 2 when satisfy the conditions,but the evaluate exits after excuting 1st when,how can i make execute the 2nd when also

2. diff between call by address & call by reference

3. use of comp3 (other than declaration for decimal)
Back to top
View user's profile Send private message
jz1b0c

Active User


Joined: 25 Jan 2004
Posts: 160
Location: Toronto, Canada

PostPosted: Wed Dec 15, 2004 11:29 pm
Reply with quote

a = 7
1 . evaluate true
when a > 5
perform para1
when a < 10
perform para1

so the 2 when satisfy the conditions,but the evaluate exits after excuting 1st when,how can i make execute the 2nd when also

Evaluate once the condition satisfied it exits the case structure.

if you want both to be execute , you need to change your conditions/logic
something like this
When a>5 and a<10
Back to top
View user's profile Send private message
sharan112

New User


Joined: 21 Dec 2004
Posts: 2

PostPosted: Tue Dec 21, 2004 11:58 am
Reply with quote

Masade,
You are correct, but we have to use ALSO instead AND.

call by address & call by reference -diff
Bother are same. Hope u meant to ask call by value & call by reference.
Call by Value copies the paramter to another memory and change of parameter in called pgm will not effect the value of parm in calling pgm. But in call by ref. both the pgms work with the parm in same memory location hence the change in called pgm effected in calling pgm.

use of comp3.
For efficient storage purpose.
Back to top
View user's profile Send private message
denny

New User


Joined: 25 Apr 2005
Posts: 1
Location: pune

PostPosted: Tue Apr 26, 2005 5:43 pm
Reply with quote

i also have the same opinion that in evaluate once the condition is satisfied we will come out of the evaluate statement.
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Wed May 04, 2005 7:13 am
Reply with quote

Well, since you opened this up again, Denny I might as well pitch my 2 cents. icon_biggrin.gif

If you use the ALSO approach as suggested you'll never execute para1; you'll fall thru to the NSI. An entity can't be 2 different things at the same time.

If you code it this way:
Code:

evaluate true
when a > 5
when a < 10
     perform para1
end-evaluate 


you'll execute para1 when a > 5 or when it's < 10.
Back to top
View user's profile Send private message
ashutosh719

New User


Joined: 06 Apr 2005
Posts: 12

PostPosted: Sat May 07, 2005 2:44 pm
Reply with quote

for Comp/Comp-3..refer to the bbytes they use...idea is of storage.
Back to top
View user's profile Send private message
karthiksukumar

New User


Joined: 02 May 2005
Posts: 2

PostPosted: Mon May 16, 2005 8:40 pm
Reply with quote

hai everybody
can any in tell me what is finacle. it is related to mainframe?
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
No new posts Routing command Address SDSF to other... TSO/ISPF 2
No new posts Error while running web tool kit REXX... CLIST & REXX 5
No new posts Call program, directly from panel CLIST & REXX 9
No new posts Batch call online program, EXCI task ... CICS 3
No new posts CSQBGET - Call giving completion code... COBOL Programming 3
Search our Forums:

Back to Top