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 StreamWeaver language reference chetanambi Compuware & Other Tools 1 Wed Jul 05, 2017 12:50 pm
No new posts How to generate a new unique Input fi... for1ranjith CLIST & REXX 11 Sat Jul 01, 2017 12:09 pm
No new posts IP Address of workstation martin9 CICS 3 Fri Jun 23, 2017 7:39 pm
No new posts Need help in REXX CALL program Raje1002 CLIST & REXX 5 Wed Apr 19, 2017 11:18 pm
No new posts RC 20 for Address ISPEXEC "ISRED... pkmurali CLIST & REXX 3 Sun Apr 16, 2017 11:30 pm


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