• Subject: RE: Pros & Cons
  • From: Brian Johnson <brian@xxxxxxxxxxxxxxx>
  • Date: Mon, 26 Oct 98 18:00:00 -0500
  • >Received: from Connect2 Message Router by helps.helpsystems.com via Connect2-UUCP v1.10; Mon, 26 Oct 98 18:06:33 -0500
  • Organization: HELP/Systems


No need to keep the record locked if you use RTNDTA keyword in the DSPF   
DDS:

DOW
CHAIN (no lock)
EXFMT
CHAIN (with lock)
READ (re-read display format)
UPDAT
ENDDO



 -----Original Message-----
From: Buck Calabro
Sent: Monday, October 26, 1998 17:14
To: brian; 'MIDRANGE-L@midrange.com'
Subject: RE: Pros & Cons

On Monday, October 26, 1998 7:42 PM, Tim-Bar [SMTP:timbar@blazenet.net]
wrote:
> When creating a display file for a file maintenance program, is it
> better to reference the physical file fields or create fields with
> different names? If you use different screen field names you have to
> move the file fields into those fields to display on the screen and   
then
> move the screen fields back into the file fields before updating the
> record format. This seems like a lot of extra work. Is there any reason
> to do it this way?

Record locking.

In order for the "DSPF has PF names" to operate, you need to

DOW
CHAIN
EXFMT
UPDAT
ENDDO

If the workstation operator leaves her desk for lunch with that record on   

the screen, that record is locked for an hour.

If you rename the DSPF fields, there is no need to lock the record:

DOW
CHAIN (no lock)
MOVE DB to DSPF
EXFMT
CHAIN (lock)
MOVE DSPF to DB
UPDAT
ENDDO

Buck Calabro
Commsoft, Albany, NY
mailto:mcalabro@commsoft.net

+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to   
MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator:   
david@midrange.com
+---

+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---


As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.