Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Diff between call by address & call by reference

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions
View previous topic :: :: View next topic  
Author Message
sivatechdrive

Active User


Joined: 17 Oct 2004
Posts: 190
Location: hyderabad

PostPosted: Wed Dec 15, 2004 7:39 pm    Post subject: Diff between call by address & call by reference
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    Post subject:
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    Post subject:
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    Post subject:
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    Post subject:
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    Post subject:
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    Post subject: what is finacle?
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    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Cobol EZASOKET call to SETSOCKOPT fails Andi1982 COBOL Programming 6 Thu Oct 06, 2016 7:12 pm
No new posts Strange EXEC function call in z/VM Willy Jensen CLIST & REXX 3 Wed Oct 05, 2016 2:07 pm
This topic is locked: you cannot edit posts or make replies. Sort card to replace text using cross... Susanta SYNCSORT 32 Tue Sep 13, 2016 4:17 pm
No new posts COBOL DB2 - CALL statement - high CPU... TS70363 DB2 15 Sun Sep 11, 2016 6:07 am
No new posts execute APP if they are not ADDRESS T... italo_pm CLIST & REXX 3 Fri Aug 12, 2016 2:15 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us