IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Loading file into memory


IBM Mainframe Forums -> CICS
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
vivekss97

New User


Joined: 15 Feb 2009
Posts: 3
Location: Chennai, India

PostPosted: Fri Aug 28, 2009 12:10 pm
Reply with quote

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. icon_question.gif
Back to top
View user's profile Send private message
Garry Carroll

Senior Member


Joined: 08 May 2006
Posts: 1193
Location: Dublin, Ireland

PostPosted: Fri Aug 28, 2009 3:13 pm
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Fri Aug 28, 2009 8:29 pm
Reply with quote

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
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2501
Location: Atlanta, Georgia, USA

PostPosted: Fri Aug 28, 2009 10:15 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CICS

 


Similar Topics
Topic Forum Replies
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts Access to non cataloged VSAM file JCL & VSAM 18
No new posts Need help for File Aid JCL to extract... Compuware & Other Tools 23
Search our Forums:

Back to Top