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

Natural Subprogram and Subroutine


IBM Mainframe Forums -> Java & MQSeries
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ManjuMainframes

New User


Joined: 10 Mar 2009
Posts: 2
Location: Pune

PostPosted: Fri Apr 10, 2009 12:48 pm
Reply with quote

Hi Guys,

Can anyone describe the difference between Subprogram and Subroutine in Natural?

Thanks,
Manju.
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Fri Apr 10, 2009 12:52 pm
Reply with quote

This is a basic question. It has been answered here before, but the best place to find an answer would be Software AG's fine manuals.

O.
Back to top
View user's profile Send private message
ManjuMainframes

New User


Joined: 10 Mar 2009
Posts: 2
Location: Pune

PostPosted: Fri Apr 10, 2009 1:05 pm
Reply with quote

Ya question seems to be basic and i saw it in the forum discussed. But i am not answered from that discussion anyways. I already referred Software AG's manuals and everything. But not really cleared.

Thanks for the reply O :-)
Manju.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Fri Apr 10, 2009 7:44 pm
Reply with quote

Hello,

Quote:
I already referred Software AG's manuals and everything. But not really cleared.
If you post what you found that was not clear, someone will be able to clarify. . .
Back to top
View user's profile Send private message
Ralph Zbrog

New User


Joined: 21 Nov 2009
Posts: 58
Location: California

PostPosted: Fri Dec 11, 2009 2:22 pm
Reply with quote

Of course there are relatively minor syntactical differences, but the big difference is in the access to the caller's GDA.

A CALLNAT typically has a parameter list by which data is passed into and out of the subprogram. Passing these data fields incurs overhead. Subprograms are intended to be "black boxes", unaware of the caller's environment, and unaware of the caller's GDA.

An external subroutine has access to the caller's GDA. If all the caller's data that is required by the subroutine is defined in the caller's GDA, then no parameter list is necessary, and no overhead is incurred from passing parameters.

If elements of the caller's GDA are required by a subprogram, those elements must be passed as parameters to the subprogram.
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 -> Java & MQSeries

 


Similar Topics
Topic Forum Replies
No new posts How to go into a subprogram in IBM De... IBM Tools 5
No new posts IMS DB using Natural Language IMS DB/DC 0
No new posts Parallel Sysplex - subprogram execution CICS 7
No new posts Negative value - packed field - Natur... Java & MQSeries 0
No new posts Call Natural program with rexx CLIST & REXX 2
Search our Forums:

Back to Top