Introduction of Calling Quick Screens as Functions

Jon Hawks hawksj@yahoo.com
Mon, 24 May 2004 22:35:56 -0700 (PDT)


--0-2111171573-1085463356=:47135
Content-Type: text/plain; charset=us-ascii

Try this, and for the hard-core's, please excuse the simplicity. I copied it from one of our regular jobs we run in batch using quick.
 
quick auto=qk-batch-1 term=vt220  (if you're on an Open/VMS your site might need this)
 
Screen qk-batch-1
file customer  designer
file invoices    designer
file payments designer 
 
Procedure Internal Special-payments
 begin
  some great stuff here
    gets 
    lets
    puts
   end
Procedure internal regular-payments
 begin
  some other great stuff here
  get an invoice
  get the payment
  lets reconcile
  puts
   end
procedure cust-run
 begin
   while retrieving customer sequential 
    begin
       if cust-type = "regular joe"
        do internal regular-payments
       if cust-type = "special"
        do internal special-payments
       end
procedure initial
  begin
     do internal cust-run
     return
    end
build

"chuck.reinke" <chuck.reinke@sbcglobal.net> wrote:
I believe the practice arose many years ago on ancient HP systems where
programmers often ran out of stack space. A GHOST screen, as a sub-process,
was a technique for gaining additional system resources. Eventually some
programming logic supported the technique as well as the idea of shared
subroutines.

Chuck

----- Original Message ----- 
From: "Darren Reely" 
To: 

Sent: Monday, May 24, 2004 6:10 PM
Subject: Introduction of Calling Quick Screens as Functions


> We were wondering today when the concept was introduced allowing coders
> to call quick screens as hidden functions. The code I'm maintaining
> seems to have been created as early as April 1992.
>
> While we're on the subject. What is the best way to set up the screen
> statement? Apparently the GHOST option is not _required_ when calling
> the screen.
>
> Thanks for the interest.
>
> Darren
>
>
> = = = = = = = = = = = = = = = = = = = = = = = = = = = =
> Mailing list: powerh-l@lists.sowder.com
> Subscribe: "subscribe" in message body to
powerh-l-request@lists.sowder.com
> Unsubscribe: "unsubscribe 
" in message body to
powerh-l-request@lists.sowder.com
> http://lists.sowder.com/mailman/listinfo/powerh-l
> This list is closed, thus to post to the list you must be a subscriber.


= = = = = = = = = = = = = = = = = = = = = = = = = = = =
Mailing list: powerh-l@lists.sowder.com
Subscribe: "subscribe" in message body to powerh-l-request@lists.sowder.com
Unsubscribe: "unsubscribe 
" in message body to powerh-l-request@lists.sowder.com
http://lists.sowder.com/mailman/listinfo/powerh-l
This list is closed, thus to post to the list you must be a subscriber.


--0-2111171573-1085463356=:47135
Content-Type: text/html; charset=us-ascii

<DIV>Try this, and for the hard-core's, please excuse the simplicity. I copied it from one of our regular jobs we run in batch using quick.</DIV>
<DIV>&nbsp;</DIV>
<DIV>quick auto=qk-batch-1 term=vt220&nbsp; (if you're on an Open/VMS your site might need this)</DIV>
<DIV>&nbsp;</DIV>
<DIV>Screen qk-batch-1</DIV>
<DIV>file customer&nbsp; designer</DIV>
<DIV>file invoices&nbsp;&nbsp;&nbsp; designer</DIV>
<DIV>file payments designer </DIV>
<DIV>&nbsp;</DIV>
<DIV>Procedure Internal Special-payments</DIV>
<DIV>&nbsp;begin</DIV>
<DIV>&nbsp; some great stuff here</DIV>
<DIV>&nbsp;&nbsp;&nbsp; gets </DIV>
<DIV>&nbsp;&nbsp;&nbsp; lets</DIV>
<DIV>&nbsp;&nbsp;&nbsp; puts</DIV>
<DIV>&nbsp;&nbsp; end</DIV>
<DIV>Procedure internal regular-payments</DIV>
<DIV>&nbsp;begin</DIV>
<DIV>&nbsp; some other great stuff here</DIV>
<DIV>&nbsp; get an invoice</DIV>
<DIV>&nbsp; get the payment</DIV>
<DIV>&nbsp; lets reconcile</DIV>
<DIV>&nbsp; puts</DIV>
<DIV>&nbsp;&nbsp; end</DIV>
<DIV>procedure cust-run</DIV>
<DIV>&nbsp;begin</DIV>
<DIV>&nbsp;&nbsp; while retrieving customer sequential&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp; begin</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if cust-type = "regular joe"</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; do internal regular-payments</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if cust-type = "special"</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; do internal special-payments</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; end</DIV>
<DIV>procedure initial</DIV>
<DIV>&nbsp; begin</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp; do internal cust-run</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp; return</DIV>
<DIV>&nbsp;&nbsp;&nbsp; end</DIV>
<DIV>build<BR><BR><B><I>"chuck.reinke" &lt;chuck.reinke@sbcglobal.net&gt;</I></B> wrote:</DIV>
<BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">I believe the practice arose many years ago on ancient HP systems where<BR>programmers often ran out of stack space. A GHOST screen, as a sub-process,<BR>was a technique for gaining additional system resources. Eventually some<BR>programming logic supported the technique as well as the idea of shared<BR>subroutines.<BR><BR>Chuck<BR><BR>----- Original Message ----- <BR>From: "Darren Reely" <DARREN.REELY@LATTICESEMI.COM><BR>To: <POWERH-L@LISTS.SOWDER.COM><BR>Sent: Monday, May 24, 2004 6:10 PM<BR>Subject: Introduction of Calling Quick Screens as Functions<BR><BR><BR>&gt; We were wondering today when the concept was introduced allowing coders<BR>&gt; to call quick screens as hidden functions. The code I'm maintaining<BR>&gt; seems to have been created as early as April 1992.<BR>&gt;<BR>&gt; While we're on the subject. What is the best way to set up the screen<BR>&gt; statement? Apparently
 the GHOST option is not _required_ when calling<BR>&gt; the screen.<BR>&gt;<BR>&gt; Thanks for the interest.<BR>&gt;<BR>&gt; Darren<BR>&gt;<BR>&gt;<BR>&gt; = = = = = = = = = = = = = = = = = = = = = = = = = = = =<BR>&gt; Mailing list: powerh-l@lists.sowder.com<BR>&gt; Subscribe: "subscribe" in message body to<BR>powerh-l-request@lists.sowder.com<BR>&gt; Unsubscribe: "unsubscribe <PASSWORD>" in message body to<BR>powerh-l-request@lists.sowder.com<BR>&gt; http://lists.sowder.com/mailman/listinfo/powerh-l<BR>&gt; This list is closed, thus to post to the list you must be a subscriber.<BR><BR><BR>= = = = = = = = = = = = = = = = = = = = = = = = = = = =<BR>Mailing list: powerh-l@lists.sowder.com<BR>Subscribe: "subscribe" in message body to powerh-l-request@lists.sowder.com<BR>Unsubscribe: "unsubscribe <PASSWORD>" in message body to powerh-l-request@lists.sowder.com<BR>http://lists.sowder.com/mailman/listinfo/powerh-l<BR>This list is closed, thus to post to the list you must be a
 subscriber.</BLOCKQUOTE><BR><BR>
--0-2111171573-1085463356=:47135--