Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Natural Subprogram and Subroutine

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Java & MQSeries
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    Post subject: Natural Subprogram and Subroutine
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: 2360
Location: Israel

PostPosted: Fri Apr 10, 2009 12:52 pm    Post subject:
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    Post subject: Reply to: Natural Subprogram and Subroutine
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

Site Director


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

PostPosted: Fri Apr 10, 2009 7:44 pm    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> Java & MQSeries All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Reg:Displaying the particular month o... bhavana yalavarthi All Other Mainframe Topics 4 Sat Jul 08, 2017 8:13 pm
This topic is locked: you cannot edit posts or make replies. Natural ADABAS Opening with CTS enikhilk Mainframe Jobs 0 Wed Nov 30, 2016 5:37 pm
No new posts Casting a Binary Number to Numeric in... Bob Steinkraus Java & MQSeries 6 Tue Aug 09, 2016 5:58 pm
No new posts Is possible to call subprogram from c... cmsmoon COBOL Programming 3 Fri Aug 05, 2016 6:46 pm
No new posts Natural/Adabas - Migration/Replatform Virendra Shambharkar Java & MQSeries 5 Tue Apr 05, 2016 2:37 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us