What is the difference between External subroutine and
subprogram?

Answer Posted / arya

An External Subroutine has got access to the Caller's GDA
where in the subprogram does not have.

The subprogram is like blackboxes as they are not aware of
the caller's environemnt. They take only the parameters and
process it and return the values. e.g. One natural
subprogram can be called through middle tiers like Entirex
and Vitria from a different environment(Lets say a dot net
or java developed web interface).However a similar
interface can not call a natural external subroutine.

As far as calling is concerned you use callnat for
subprogram and perform for external subroutine.

Is This Answer Correct ?    32 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a hyperdescriptor? How does it work?

629


How to receive data passed through jcl parm parameter in a natural program?

555


Explain how to move cursor to a particular field when position is not known?

534


Can we see the copy book length using file-aid?

498


Explain adabas basic concepts. Like inverted list, address converter ,data storage?

558






Explain how many work file we can code in jcl?

570


Explain how to ftp the natural program to desktop? (From mainframe to pc), is it possible?

591


Explain control variable in online screens?

556


How to create 1 ddm that fetches 3 adabas files simultaneously?

535


What is cobol coding sheet?

722


Explain how to receive data passed through jcl parm parameter in a natural program? How data definition is defined in the program?

612


In a Natural program i used the below code for report FORMAT LS=132 PS=60 And down the line I want to change either LS/PS like FORMAT LS=120 PS=50, is it possible? How it will work?

1440


Tell me what type of files we can process thru file-aid?

534


Can you explain control variable in online screens?

554


What happens when you issue a escape routine in a program? Will there be any compilation /run time erro?

550