Subject: | |
From: | |
Reply To: | |
Date: | Fri, 13 Apr 2001 15:15:14 -0400 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
In COBOL, with a 'dynamic' subroutine, the values of variables declared in
the subroutine are not preserved between different calls to the subroutine.
Each time the subroutine is called, variables with VALUE clauses are set to
that value. Those without VALUE clauses have undefined values.
With the other kind, the values are retained between calls. The VALUE
clauses are only relevant the first time the subroutine is called in each
program.
If you are familiar with C, a non-dynamic subprogram is like having all your
function variables declared 'static'.
----- Original Message -----
From: "Leonard S. Berkowitz" <[log in to unmask]>
To: <[log in to unmask]>
Sent: Friday, April 13, 2001 2:51 PM
Subject: Dynamic vs. Subprogram
> What is the difference?
>
> Thanks.
>
> Leonard
> ===================
> Leonard S. Berkowitz
> Perot Health Care Systems
> (Harvard Pilgrim Health Care account)
> voice: 617-509-1212
> fax: 617-509-3737
> pager: 781-226-2431
>
> * To join/leave the list, search archives, change list settings, etc *
> * please visit http://raven.utc.edu/archives/hp3000-l.html *
>
* To join/leave the list, search archives, change list settings, etc *
* please visit http://raven.utc.edu/archives/hp3000-l.html *
|
|
|