Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Loading file into memory

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
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    Post subject: Loading file into memory
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

Active Member


Joined: 08 May 2006
Posts: 992
Location: Dublin, Ireland / Edinburgh, Scotland

PostPosted: Fri Aug 28, 2009 3:13 pm    Post subject:
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

Site Director


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

PostPosted: Fri Aug 28, 2009 8:29 pm    Post subject:
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: 2502
Location: Atlanta, Georgia, USA

PostPosted: Fri Aug 28, 2009 10:15 pm    Post subject: Reply to: Loading file into memory
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    IBMMAINFRAMES.com Support Forums -> CICS All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Export flat file data into excel sheet murali.andaluri DFSORT/ICETOOL 2 Mon Mar 20, 2017 5:39 pm
No new posts Formatting VB File Learncoholic DFSORT/ICETOOL 3 Mon Mar 20, 2017 12:29 pm
No new posts Updating a VSAM file with DISP=OLD sheersh JCL & VSAM 8 Tue Mar 14, 2017 6:14 pm
No new posts loading a Modified Mapset Susanta CICS 2 Tue Mar 14, 2017 5:43 pm
No new posts SORT VSAM file with each field one by... maxsubrat DFSORT/ICETOOL 6 Tue Mar 14, 2017 1:07 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us