×
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.
Hi All,
My company uses the OPEN/CLOSE on all update operations in order to
avoid locking. I am still curious about the way the IO
COUNT on the DSPJOB, for the file being updated (MKTLF022) is fluctuating
wildly up and down --WHILE-- it is still on the FIRST
record of the (NEWSIC) National Account # driving file.
Please, see code below:
C*
C* READ NEWSIC FILE.
C*
C *IN10
DOWEQ*OFF
C
SETOF
11
C
READ NEWSIC
10 <--Natl Acct drive file
C *IN10
IFEQ *OFF
like this.
C*
NA# NASIC
C* READ MKTLF022 BY NA# FIELD.
10000 20022
C*
25000 14458
C
OPEN MKTLF022
C NA#
SETLLMKTLF022
C*
C *IN11
DOWEQ*OFF
C NA#
READEMKTLF022
11
C *IN11
IFEQ *OFF
C CSTUS
IFEQ 'A'
C* PROCESS AREA.
C
MOVE NASIC CSIC
C
MOVE 'R' CCRFLG
C
MOVE SYSDTE CCRDAT
C
MOVE SYSTIM CCRTME
C
MOVE PGMNME CCRUSR
C 1
ADD COUNT COUNT 60
C
UPDATMKTL022
C
EXCPTLINE
C
ENDIF
C
ENDIF
C
ENDDO
C
CLOSEMKTLF022
C*
C
ENDIF
C
ENDDO
C*
C
SETON
LR
This is very pain-in-the-assish, as I like to understand why a certain
thing is happening, and it doesn't make any sense that while it is on
record number 1 of the NEWSIC file that there would be any fluctuation
(other than ascending) on the file being updated (MKTLF022)
If you know let me know.
Thanks!
--
~~~
(0 0)
Tim & Dana Truax... and Caleb 5 years old.
--ooO--(_)--Ooo--------------------------------------------
As an Amazon Associate we earn from qualifying purchases.
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.