× 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.











Raja Rajendren <kgrajen@usa.net> on 07/13/2000 04:32:33 AM

Please respond to RPG400-L@midrange.com

To:   rpg400-l@midrange.com
cc:    (bcc: Arlene M Soderlund/NFCNA.COM)
Subject:  Multi user programming?



Suppose I'm running a program which is used to edit a record.  Now let us say
I'm in edit mode, editing a record.  And when I try to run the same program in
one more terminal and try to edit the same record, which is already used by
one more user, the system shows blank screen with "X" at the bottom.  How to
rectify this problem.  How do the network programming works.  How to lock and
unlock the records.

Can u help me in this regards,

Rajendren K. G.
TMSI. INDIA.

____________________________________________________________________


 C                     READ FILE             N  4140



Pmt  SeqNbr   Lvl  N01N02N03  Factor 1    OpCode  Factor 2    Result
 C   0226.00                              READ    TPN510N1
      Len  Dec  H/N/P  Hi  Lo  Eq  Comment
                  N        41  40



See that N it is for a no lock read on a update file, it works for all File I/O
operations including Chain.


C                     READ(N)  File                 4140


This is ILE style


When the person hits the enter key then you read/chain for the same record again
without the N in the code, move in the changes and promptly update the record.







+---
| This is the RPG/400 Mailing List!
| To submit a new message, send your mail to RPG400-L@midrange.com.
| To subscribe to this list send email to RPG400-L-SUB@midrange.com.
| To unsubscribe from this list send email to RPG400-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.