× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



I have two uses for data areas:

1) Store run time data for two applications. The two applications are slightly different, so each has a data area. Some items: remote system user name and pasword, telephone number (ancient, but works for these two applications). Also, a vendor supplied end of day processing program has a modification in it to populate the data area with a run date. That date is used to access a third system and download selected files, by date. Never thought to use a PF for this, and the end of day program is in CL, and is a whopper. Making that thing do anything that could cause it to hang at midnight is not good.

2) Due to HIPAA regulations, the vendor modified a program to not include data that was needed by a select few people. I added a data area, named same as program, that contains the prefixes of display stations that are allowed to see protected data. Those few people really did not like the change the vendor made, as the removed data was needed for them to do their jobs. That just didn't seem right to create the overhead of a PF for what amounts to 16 bytes that is read at the start of the program and not updated.

Vendor uses LOTS of data areas for different scratchpad activities.

John McKee

John McKee
-----Original message-----
From: Ken Sims mdrg8066@xxxxxxxxxxx
Date: Fri, 13 May 2011 16:10:39 -0500
To: midrange-l@xxxxxxxxxxxx
Subject: Re: DataArea vs. Tables

Hi Birgitta -

On Fri, 13 May 2011 17:17:02 +0200, "Birgitta Hauser"
<Hauser@xxxxxxxxxxxxxxx> wrote:

I’m just curious, are you using data areas (heavily) or not?

In addition to things already mentioned by others, I use data areas
for locking functions. Unlike some objects, data areas support all
locking levels: *SHRRD, *SHRUPD, *SHRNUP, etc.

For example, I'll use a data area to make sure that there aren't two
instances of the same NEP job running simultaneously.

The job allocates the data area *EXCLRD (not *EXCL because that
interferes with backups).

If a second instance is started, it can't get the *EXCLRD lock and
exits.

(The submit process also tries to get the lock, then releases it.)

Ken
Opinions expressed are my own and do not necessarily represent the views
of my employer or anyone in their right mind.
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.



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.