HP3000-L Archives

March 1995, Week 5

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
"Paul H. Christidis" <[log in to unmask]>
Reply To:
Date:
Tue, 28 Mar 1995 09:50:57 PST
Content-Type:
text/plain
Parts/Attachments:
text/plain (34 lines)
On Fri, 24 Mar 1995 15:26:08 GMT Gary Peck said:
>>Does anyone have any experience writing COBOL programs that use
>>subprograms.  The problem I have is that our univeristy bought a
>>degree audit program that was originally written for an IBM mainframe
>>that has the main driver program and 101 subprograms that are called
>>looking at anyway to possible speed processing up.
 
[del]
 
>The most straightforward approach would be to use "nested" programs and
>declare your Image areas GLOBAL in the driver program.  This way you can
>include the subprograms after the main, and refer to the globals in the
>driver.  The database will already be opened (and defined, etc) to the
>subprogram and you can follow "traditional" subprogram structure instead
>of the old standalone-except-LINKAGE-variables COBOL method.
 
>>If anyone has any ideas on how I could speed up the performance, or If it
>>is even possible to open the database once in the subprogram and keep it
>>open for future processing your help would be greatly appreciated.
 
>Don't think that way.  Look into the nested programming techniques in
>the newer COBOL-II/iX manual -- it was a fairly recent addition (well, a
>few years ago).  It is a welcome breath of fresh air for this musty
>language.
 
In his original post Gary indicated that he is dealing with 150,000 lines
of code. Personally I would NOT want to have a 'nested' program of that
size.
 
 
>[\] Jeff Kell, [log in to unmask]
 
Paul H. Christidis, [log in to unmask]

ATOM RSS1 RSS2