View previous topic :: View next topic
|
Author |
Message |
vivekss97
New User
Joined: 15 Feb 2009 Posts: 3 Location: Chennai, India
|
|
|
|
I want to load a file into memory. I am acquiring required amount of memory using getmain. But I don't have any idea of how to load data from file to this acquired memory. |
|
Back to top |
|
|
Garry Carroll
Senior Member
Joined: 08 May 2006 Posts: 1193 Location: Dublin, Ireland
|
|
|
|
Why do it this way? Why not use CICS Datatables?
If you really want to do it manually, just read the records and assign each into the next available area in the memory you have acquired, incrementing through the memory as you go.
Garry. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
I want to load a file into memory. |
It might be easier to code, but is not a good approach. . .
Suggest you consider a different approach (unless the file only contains 10 records or so). |
|
Back to top |
|
|
Bill O'Boyle
CICS Moderator
Joined: 14 Jan 2008 Posts: 2501 Location: Atlanta, Georgia, USA
|
|
|
|
If this is a read-only file (which is what is being assumed), get together with your Systems folks and ensure that they place this file into an LSR pool, especially if it's high-use.
Other than what Garry had spoken of, regarding data-tables (best choice for read-only), LSR is the second best (read-only or not).
CISZ modification might be in order as well.
Bill |
|
Back to top |
|
|
|