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: 995
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 Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 10 Tue May 16, 2017 2:20 pm
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts Issue with NDM process to transmit ES... chetanambi All Other Mainframe Topics 6 Wed May 03, 2017 10:52 am
No new posts File processing vishwakotin Mainframe Interview Questions 9 Fri Apr 28, 2017 11:38 am
No new posts Occurrence of various strings within ... TS70363 JCL & VSAM 1 Thu Apr 27, 2017 8:18 pm


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