Walt Mankowski on 5 Oct 2017 17:25:04 -0700


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] Cobol: was Topic for North this month


On Thu, Oct 05, 2017 at 08:07:38PM -0400, Steve Litt wrote:
> On Thu, 5 Oct 2017 12:12:19 -0400
> Walt Mankowski <waltman@pobox.com> wrote:
> 
> > We still need a speaker for North on Tuesday.  I haven't done my COBOL
> > and punch cards talk there yet. Any interest?
> 
> I always liked Cobol, except for the fact that every variable was a
> global variable, which drove me away.
> 
> Did Cobol ever get local variables inside procedures or whatever their
> subroutines are called?

Yes, but it's a little tricky because Cobol uses different terminology
than modern languages. Cobol's equivalent of functions or subroutines
are called "subprograms". Variables declared in the local-storage
section of the data division are dynamically allocated and initialized
each time the subprogram is run, much like local variables in
functions are.

Walt

Attachment: signature.asc
Description: PGP signature

___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug