<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from text --><style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<div>
<div>You could do this by passing in the stuff you need to edit and a flag to indicate the result of the edit. The main screen would set the stuff to be edited, call the ghost screen. The ghost screen would do the edits and set the status flag and then exit.
The calling screen would then take whatever action is appropriate based on the value of the status flag.</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div id="x_composer_signature">
<div dir="auto" style="font-size:85%; color:#575757">Sent from my Bell Samsung device over Canada's largest network.</div>
</div>
<div><br>
</div>
<div><br>
</div>
<div>-------- Original message --------</div>
<div>From: tadjodha@stlucianic.org </div>
<div>Date: 2016-10-13 3:30 PM (GMT-06:00) </div>
<div>To: powerh-l@lists.sowder.com </div>
<div>Subject: Re: Ghost screen </div>
<div><br>
</div>
</div>
<font size="2"><span style="font-size:10pt;">
<div class="PlainText"><br>
Hi Thanks for the info. However if I want to do lookups on files so as to alert the user by Hiliting/Flashing/Blinking a message on the Main screen , would this help.<br>
<br>
<br>
<br>
Thanks <br>
<br>
<br>
<br>
<br>
----- Original Message -----<br>
From: "Herald Kaffka" <Herald.Kaffka@westfraser.com><br>
To: tadjodha@stlucianic.org, powerh-l@lists.sowder.com<br>
Sent: Thursday, 13 October, 2016 4:04:31 PM<br>
Subject: RE: Ghost screen<br>
<br>
<br>
<br>
<br>
Here’s an example, (This one is keeping accounting happy by preventing various control #’s from duplicating rather than due to a file limit, but the concepts are the same).
<br>
<br>
<br>
<br>
Declare the screen as normal. List/define/type any passed in variables. <br>
<br>
po/order#’s fall out by mill-id (t-pass-mill-id), do I want a Po or order # (t-x2), return the next # to the caller in t-number (Variable Names aren’t mine, working example someone did a long time ago).
<br>
<br>
<br>
<br>
Declare local files. Note that the only file in this one is a designer, (no find/change/browse processing in this screen, just do something the background and exit).
<br>
<br>
<br>
<br>
Some internal procedures that do the actual “work”. <br>
<br>
<br>
<br>
An initialize procedure which in this case is examining the input variables and calling the correct internal procedure.
<br>
<br>
If your processing is small, just chunk all the processing in the initialize procedure. (The initialize procedure is a good place to drive small ghosts).
<br>
<br>
<br>
<br>
Better to have several small, tightly focused ghosts than a big “general purpose” one that’s trying to do a bunch of unrelated
<br>
<br>
Tasks while trying to hide/autocomplete in the background. <br>
<br>
<br>
<br>
All the explicit lock/get/put processing is in here as this one is not doing find/preupdate/update/postupdate type flow,
<br>
<br>
Just initialize, do it, and get out. <br>
<br>
<br>
<br>
If you have no need to pass information back to the caller, a simple 1 line qtp call can also work in place of a ghost screen.
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
SCREEN name RECEIVING T-PASS-MILL-ID, T-X2, T-NUMBER <br>
<br>
<br>
<br>
TEMP T-PASS-MILL-ID CHAR*2 <br>
<br>
TEMP T-X2 CHAR*2 <br>
<br>
TEMP T-NUMBER ZONED*5 <br>
<br>
<br>
<br>
FILE LAST_NUMBER_CONTROL DESIGNER <br>
<br>
ACCESS VIA MILL_ID USING T-PASS-MILL-ID <br>
<br>
<br>
<br>
PROCEDURE INTERNAL GET-NEXT-ORDER <br>
<br>
BEGIN <br>
<br>
LET T-NUMBER = 0 <br>
<br>
WHILE T-NUMBER = 0 <br>
<br>
BEGIN <br>
<br>
LOCK LAST_NUMBER_CONTROL RECORD <br>
<br>
GET LAST_NUMBER_CONTROL OPT <br>
<br>
IF ACCESSOK <br>
<br>
THEN BEGIN <br>
<br>
LET T-NUMBER = LAST_ORDER_NUMBER OF LAST_NUMBER_CONTROL + 1 <br>
<br>
IF T-NUMBER = 99999 <br>
<br>
THEN LET LAST_ORDER_NUMBER OF LAST_NUMBER_CONTROL = 0 <br>
<br>
ELSE LET LAST_ORDER_NUMBER OF LAST_NUMBER_CONTROL = T-NUMBER <br>
<br>
PUT LAST_NUMBER_CONTROL <br>
<br>
END <br>
<br>
UNLOCK LAST_NUMBER_CONTROL <br>
<br>
END <br>
<br>
END <br>
<br>
<br>
<br>
PROCEDURE INTERNAL GET-NEXT-PO <br>
<br>
BEGIN <br>
<br>
LET T-NUMBER = 0 <br>
<br>
WHILE T-NUMBER = 0 <br>
<br>
BEGIN <br>
<br>
LOCK LAST_NUMBER_CONTROL RECORD <br>
<br>
GET LAST_NUMBER_CONTROL OPT <br>
<br>
IF ACCESSOK <br>
<br>
THEN BEGIN <br>
<br>
LET T-NUMBER = LAST_PO_NUMBER OF LAST_NUMBER_CONTROL + 1 <br>
<br>
IF T-NUMBER = 99999 <br>
<br>
THEN LET LAST_PO_NUMBER OF LAST_NUMBER_CONTROL = 0 <br>
<br>
ELSE LET LAST_PO_NUMBER OF LAST_NUMBER_CONTROL = T-NUMBER <br>
<br>
PUT LAST_NUMBER_CONTROL <br>
<br>
END <br>
<br>
UNLOCK LAST_NUMBER_CONTROL <br>
<br>
END <br>
<br>
END <br>
<br>
<br>
<br>
PROCEDURE INITIALIZE <br>
<br>
BEGIN <br>
<br>
IF T-X2 = "OR" <br>
<br>
THEN DO INTERNAL GET-NEXT-ORDER <br>
<br>
IF T-X2 = "PO" <br>
<br>
THEN DO INTERNAL GET-NEXT-PO <br>
<br>
<br>
<br>
RETURN <br>
<br>
END <br>
<br>
<br>
<br>
BUILD <br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
From: powerh-l-bounces+herald.kaffka=westfraser.com@lists.sowder.com [<a href="mailto:powerh-l-bounces+herald.kaffka=westfraser.com@lists.sowder.com">mailto:powerh-l-bounces+herald.kaffka=westfraser.com@lists.sowder.com</a>] On Behalf Of tadjodha@stlucianic.org
<br>
Sent: Thursday, October 13, 2016 2:26 PM <br>
To: powerh-l@lists.sowder.com <br>
Subject: Ghost screen <br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
Does any one have examples of a Ghost screen as the 31 file limit has been reached. OpenVMS 8.3 PH 8.40G Index file system?
<br>
<br>
<br>
<br>
<br>
<br>
Thanks <br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
<br>
DISCLAIMER: This transmission (including any attachments) may contain confidential information, privileged material (including material protected by the solicitor-client or other applicable privileges), or constitute non-public information.Any use of this information
by anyone other than the intended recipient is prohibited. If you have received this transmission in error, please immediately reply to the sender and delete this information from your system.Use, dissemination, distribution, or reproduction of this transmission
by unintended recipients is not authorized and may be unlawful. (Please note that it is your responsibility to scan this message for v iruses).
<br>
<br>
<br>
<br>
<br>
<br>
-------------EOP--------------- <br>
<br>
This e-mail message and any attachments are confidential. Any dissemination or use of this information by a person other than the intended recipient is unauthorized. If you are not the intended recipient, please notify me by return e-mail, do not open any attachment
and delete this communication and any copy. <br>
<br>
Thank you<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 &lt;password&gt;' in message body to powerh-l-request@lists.sowder.com<br>
<a href="http://lists.sowder.com/mailman/listinfo/powerh-l">http://lists.sowder.com/mailman/listinfo/powerh-l</a><br>
This list is closed, thus to post to the list you must be a subscriber.<br>
Add 'site:lists.sowder.com powerh-l' to your search terms to search the list archive at Google.</div>
</span></font>
</body>
</html>