+ Reply to Thread
Results 1 to 6 of 6

Thread: Keeping a COBOL program and file resident in memory

  1. #1

    Default Keeping a COBOL program and file resident in memory

    Check the SETOBJACC command. Terry

  2. #2

    Default Keeping a COBOL program and file resident in memory

    Do not use the STOP RUN verb to end the program. Instead either use GOBACK or EXIT PROGRAM. This will keep the program resident. Dave

  3. #3
    Guest.Visitor Guest

    Default Keeping a COBOL program and file resident in memory

    Everyone has to get a fresh copy of working storage; how would this be handled on the 400? bobh

  4. #4
    Guest.Visitor Guest

    Default Keeping a COBOL program and file resident in memory

    Bob, you're correct. But there is some benefit ON A "LOCAL" level or just for the one user. About 4 or 5 yrs ago, I attended one of John Sears' seminars about COBOL/400 performance and design issues. Amongst so many minor details that can lead to better performance, if I remember correctly STOP RUN causes a full "flush" from memory of the WORKING STORAGE. The actual MI of the code can stay in memory for all CALLers to use so that a new copy is not fetched on each CALL. Without STOP RUN, variables in WORKING STORAGE that do not have a VALUE initializing the contents, can retain their contents on subsequent calls (and these programs can execute faster without the initialization instructions happenning on each CALL). But this is on each USERs own session. HTH Phil

  5. #5
    Guest.Visitor Guest

    Default Keeping a COBOL program and file resident in memory

    There are some downsides to SETOBJACC for files. The file may be larger than the actual memory available, leading to constant thrashing of parts in & out of memory if access of records is in different areas of the object that are currently in memory. The file may not even be loaded if it is larger than the available memory. I believe it is a copy of the file and UPDATES don't happen in REAL-TIME to the real object on disk. If the job for the SETOBJACC is not the only one running on the system, another job may cause the file to be taken in & out of memory as each session is attended to by the CPU. Your mileage may vary. HTH Phil

  6. #6
    Guest.Visitor Guest

    Default Keeping a COBOL program and file resident in memory

    Does anyone know how to keep a COBOL program resident in memory so that if it is called several times, it is not re loaded from disk? Also, is there a way of keeping a physical file resident in memory?

+ Reply to Thread

Similar Threads

  1. Keep a file in memory
    By Terry Winchester in forum IBM i (OS/400, i5/OS)
    Replies: 1
    Last Post: 09-25-2003, 08:00 AM
  2. Pin a database file into memory
    By JohnFox in forum General
    Replies: 1
    Last Post: 10-04-2002, 06:28 AM
  3. Replies: 7
    Last Post: 12-14-2001, 12:01 PM
  4. Call a Java program from a COBOL program?
    By Guest.Visitor in forum Application Software
    Replies: 0
    Last Post: 01-01-1995, 02:00 AM
  5. Call a Java program from a Cobol Program?
    By Guest.Visitor in forum Programming
    Replies: 0
    Last Post: 01-01-1995, 02:00 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts